joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6e43
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push edi
mov word [ebp - 0x210], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [ebp + 0x10], 0
je 0x4e6e83
push 4
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e6c0e
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.005378e2
add esp, 8
push 0x5bd2ec
lea ecx, [ebp - 0x210]
push ecx
call fcn.005378b8
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.005378b8
add esp, 8
push 0x5bd2f0
lea ecx, [ebp - 0x210]
push ecx
call fcn.005378b8
add esp, 8
lea edx, [ebp - 0x460]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e6ef5
xor eax, eax
jmp 0x4e708f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x4e7080
lea edx, [ebp - 0x460]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4e705c
push 0x5bd2f8
lea ecx, [ebp - 0x434]
push ecx
call fcn.00537cf5
add esp, 8
test eax, eax
je 0x4e6f53
push 0x5bd2fc
lea edx, [ebp - 0x434]
push edx
call fcn.00537cf5
add esp, 8
test eax, eax
jne 0x4e6f55
jmp 0x4e6ef9
mov eax, dword [ebp - 0x460]
and eax, 0x10
test eax, eax
je 0x4e6fdd
mov word [ebp - 0x668], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x666]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x668]
push edx
call fcn.005378b8
add esp, 8
push 0x5bd304
lea eax, [ebp - 0x668]
push eax
call fcn.005378b8
add esp, 8
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x668]
push edx
call fcn.005378b8
add esp, 8
lea eax, [ebp - 0x668]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004e6e43
add esp, 0xc
test eax, eax
jne 0x4e6fdb
xor eax, eax
jmp 0x4e708f
jmp 0x4e705a
mov word [ebp - 0x870], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x86e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x870]
push ecx
call fcn.005378e2
add esp, 8
push 0x5bd308
lea edx, [ebp - 0x870]
push edx
call fcn.005378b8
add esp, 8
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x870]
push ecx
call fcn.005378b8
add esp, 8
push 2
push 0
lea edx, [ebp - 0x870]
push edx
lea eax, [ebp - 0x870]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e6c0e
add esp, 0x14
test eax, eax
je 0x4e705a
xor eax, eax
jmp 0x4e708f
jmp 0x4e707b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4e706d
mov byte [ebp - 4], 0
jmp 0x4e707b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4e708f
jmp 0x4e6ef9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4e88fa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576df2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x40060]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x40050]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e8969
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x18]
jmp 0x4e89c6
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4e89ad
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x1c]
jmp 0x4e89c6
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4e990d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40060]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x14]
push edx
push 2
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40050]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e9979
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x18]
jmp 0x4e99ee
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
jne 0x4e9999
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x10], eax
jmp 0x4e99aa
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4e99d5
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x1c]
jmp 0x4e99ee
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e99fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40060]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x40050]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e9a73
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x20]
jmp 0x4e9ac8
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0054d328
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e9b9e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x834]
mov ecx, dword [eax + 0x40060]
mov dword [ebp - 0x82c], ecx
lea edx, [ebp - 0x820]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x82c]
push eax
mov ecx, dword [ebp - 0x834]
mov edx, dword [ecx + 0x40050]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e9c0f
or eax, 0xffffffff
jmp 0x4e9cca
mov eax, dword [0x5be480]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, 1
test ecx, ecx
je 0x4e9c9e
mov dword [ebp - 0x14], 0x800
push 0
push 0
lea edx, [ebp - 0x10]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x81c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x4e9c65
jmp 0x4e9c9e
lea ecx, [ebp - 0x81c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0054d4bf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x830], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x830]
push edx
mov ecx, dword [ebp + 8]
call fcn.0054c5b3
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x4e9c1e
mov ecx, dword [ebp - 0x820]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x828], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0054d328
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9cda
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576fb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea edx, [ebp + 0xc]
push edx
call fcn.0054d095
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x3c]
call fcn.004e99fe
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
je 0x4e9d92
cmp dword [ebp - 0x14], 9
je 0x4e9d92
cmp dword [ebp - 0x14], 0xa
je 0x4e9d92
cmp dword [ebp - 0x14], 0
je 0x4e9d92
cmp dword [ebp - 0x14], 0xb
je 0x4e9d92
cmp dword [ebp - 0x14], 3
je 0x4e9d92
mov dword [ebp - 0x28], 0x5bd310
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x28]
jmp 0x4e9e76
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x40060]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x40050]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4e9df2
mov dword [ebp - 0x2c], 0x5bd310
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x2c]
jmp 0x4e9e76
push 0x5bd628
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00537cf5
add esp, 8
mov dword [ebp - 0x38], eax
xor edx, edx
cmp dword [ebp - 0x38], 0
sete dl
and edx, 0xff
test edx, edx
je 0x4e9e26
push 0x5ce70c
lea ecx, [ebp + 0xc]
call fcn.0054d4bf
lea eax, [ebp - 0x18]
push eax
push 0x5cc704
lea ecx, [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov dword [ebp - 0x30], 0x5cc704
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ea1b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57701f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40060]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40050]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ea240
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x20]
jmp 0x4ea294
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4ea266
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4eab99
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40060]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x18]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x40050]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4eac30
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0054d328
mov eax, dword [ebp - 0x1c]
jmp 0x4eacb6
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 1]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4eac66
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x41068], 0
jne 0x4eac7c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0054d328
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0054d328
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4eaf0e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5771a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x40060]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x14]
push edx
push 0x20006
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40050]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4eaf90
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x18]
jmp 0x4eaff7
push 4
lea eax, [ebp + 0x10]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4eafb3
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x41068], 0
jne 0x4eafc9
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0054d328
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ec2e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x4000c], 0
je 0x4ec3be
cmp dword [0x5bd3a8], 0
je 0x4ec374
push 0
push 0
push 0x20000
mov ecx, dword [ebp - 0xc]
add ecx, 8
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x4000c]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x20008
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 8
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x40008]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ec368
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
je 0x4ec372
mov dword [0x5cc700], 0x7c
jmp 0x4ec3be
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x4000c]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x20008
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40008]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ec3b4
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x4000c]
shl eax, 1
cmp eax, dword [ebp - 4]
je 0x4ec3be
mov dword [0x5cc700], 0x7c
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x4000c], 0
mov esp, ebp
pop ebp
ret
Function at 0x4ec9aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x418], ecx
lea eax, [ebp - 0x414]
push eax
push 2
push 0
push 0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ec9da
jmp 0x4ecc1f
mov ecx, 1
test ecx, ecx
je 0x4ecc05
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x418]
call fcn.004ed6f9
test eax, eax
jne 0x4ec9ff
jmp 0x4ecc05
mov ecx, dword [ebp - 0x418]
call fcn.004ed88e
push 0x5c
mov ecx, dword [ebp - 0x418]
call fcn.004ed8ae
test eax, eax
je 0x4eca24
mov dword [ebp - 4], str..classes
jmp 0x4eca2c
mov eax, dword [0x5844d8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x410], 1
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x4eca7d
mov eax, dword [ebp - 4]
mov cx, word [eax]
mov word [ebp - 0x41a], cx
mov dx, word [ebp - 0x41a]
push edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x418]
call fcn.004ed8ae
test eax, eax
jne 0x4eca7b
mov dword [ebp - 0x410], 0
jmp 0x4eca7d
jmp 0x4eca36
cmp dword [ebp - 0x410], 0
je 0x4eca99
push 0x5c
mov ecx, dword [ebp - 0x418]
call fcn.004ed8ae
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x4ecbec
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x418]
call fcn.004ed6f9
test eax, eax
je 0x4ecb13
mov edx, dword [ebp - 0xc]
and edx, 0xffff
cmp edx, 0x20
je 0x4ecae2
mov ax, word [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x418]
call fcn.004ed93b
test eax, eax
je 0x4ecae4
jmp 0x4ecb13
cmp dword [ebp - 8], 0x1ff
jb 0x4ecaf9
mov dword [ebp - 0x410], 0
jmp 0x4ecb13
mov ecx, dword [ebp - 8]
mov dx, word [ebp - 0xc]
mov word [ebp + ecx*2 - 0x40c], dx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4ecaad
cmp dword [ebp - 0x410], 0
je 0x4ecbec
mov ecx, dword [ebp - 8]
mov word [ebp + ecx*2 - 0x40c], 0
mov ecx, dword [ebp - 0x418]
call fcn.004ed660
push 0x3d
mov ecx, dword [ebp - 0x418]
call fcn.004ed8ae
test eax, eax
je 0x4ecb56
push 0x20
mov ecx, dword [ebp - 0x418]
call fcn.004ed8ae
mov dword [ebp - 8], 0
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x418]
call fcn.004ed6f9
test eax, eax
je 0x4ecbb5
mov ax, word [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x418]
call fcn.004ed93b
test eax, eax
je 0x4ecb86
jmp 0x4ecbb5
cmp dword [ebp - 8], 0x3fff
jb 0x4ecb9b
mov dword [ebp - 0x410], 0
jmp 0x4ecbb5
mov ecx, dword [ebp - 8]
mov dx, word [ebp - 0xc]
mov word [ecx*2 + 0x5c3ef8], dx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4ecb5d
cmp dword [ebp - 0x410], 0
je 0x4ecbec
mov ecx, dword [ebp - 8]
mov word [ecx*2 + 0x5c3ef8], 0
mov edx, dword [ebp - 8]
shl edx, 1
push edx
push 0x5c3ef8
push 1
lea eax, [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
cmp dword [ebp - 0x410], 0
jne 0x4ecc00
mov ecx, dword [ebp - 0x418]
call fcn.004ed69a
jmp 0x4ec9da
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4ed6f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x4000c]
cmp edx, dword [ecx + 0x40014]
jne 0x4ed83b
cmp dword [0x5cc6f8], 1
jne 0x4ed767
push 0
lea eax, [ebp - 4]
push eax
push 0x10000
mov ecx, dword [ebp - 0x10]
add ecx, 0x20008
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40008]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed754
xor eax, eax
jmp 0x4ed887
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40014], eax
jmp 0x4ed7c6
push 0
lea edx, [ebp - 4]
push edx
push 0x10000
mov eax, dword [ebp - 0x10]
add eax, 8
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40008]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed794
xor eax, eax
jmp 0x4ed887
push 0x10000
mov eax, dword [ebp - 0x10]
add eax, 0x20008
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 8
push edx
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x40014], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4000c], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4001c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4001c], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40018], 0
je 0x4ed81a
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
mov eax, dword [ecx + 0x4001c]
xor edx, edx
div dword [esi + 0x40018]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x64
jbe 0x4ed818
mov dword [ebp - 8], 0x64
jmp 0x4ed821
mov dword [ebp - 8], 0x64
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40020]
cmp eax, dword [ebp - 8]
je 0x4ed83b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x40020], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x4000c]
cmp edx, dword [ecx + 0x40014]
jl 0x4ed853
xor eax, eax
jmp 0x4ed887
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x4000c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov cx, word [eax + ecx*2 + 0x20008]
mov word [edx], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x4000c]
add eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x4000c], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4