joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41000f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x4000
push 0x40
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x41ce58], eax
test eax, eax
je 0x4100d2
mov ecx, 0xfeff
xor edi, edi
mov word [eax], cx
xor eax, eax
inc eax
mov dword [0x41ce5c], 0x2000
mov dword [0x41ce60], eax
mov dword [0x41ce2c], eax
mov dword [0x41ce30], edi
mov dword [0x41ce64], 0x401de8
call fcn.004100f4
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4100bc
mov ecx, dword [0x41ce60]
lea eax, [ebp - 4]
push edi
push eax
add ecx, ecx
mov dword [ebp - 4], edi
push ecx
push dword [0x41ce58]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4100b3
mov dword [0x41ce30], 0x8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4100c6
mov dword [0x41ce30], 0x8a
push dword [0x41ce58]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x41ce30]
mov eax, ecx
sub eax, 0x90
je 0x4100e7
dec eax
sub eax, 1
jne 0x4100ec
mov ecx, 0xd5
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41020b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x18
push 0x41a438
call fcn.0041a21c
mov ebx, edx
mov dword [ebp - 0x20], ebx
mov edi, ecx
push 0x1fa5
call fcn.0040b7bc
pop ecx
mov esi, eax
test esi, esi
je 0x41023d
mov ecx, esi
call fcn.004108a4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebx
call fcn.004108a4
call fcn.00410f35
mov ecx, edi
call fcn.0041061a
mov ecx, edi
call fcn.00410719
mov ecx, edi
call fcn.00410342
cmp dword [0x41ce30], 0
jne 0x410339
xor edx, edx
mov ebx, edx
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x410275
sub esi, ecx
sar esi, 1
lea eax, [esi + 0x400]
mov dword [ebp - 4], edx
add eax, eax
call fcn.0041a3b0
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
push dword [ebp - 0x20]
lea edx, [esi + 0x400]
mov ecx, eax
call fcn.00404881
mov eax, dword [ebp - 0x24]
lea esi, [eax + esi*2]
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
call fcn.00410f35
jmp 0x41030b
mov eax, ebx
inc ebx
push 0x3ff
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x410339
lea eax, [ebp - 0x20]
push eax
push 9
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41030b
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.0041020b
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x41ce2c], 0
jne 0x4102ce
jmp 0x410339
lea esp, [ebp - 0x38]
call fcn.0041a264
ret
Function at 0x410342
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x818], eax
cmp dword [0x41ce2c], ebx
je 0x41054b
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push ecx
push 0
lea ecx, [ebp - 0x80c]
mov edi, ebx
push ecx
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x41c628
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc ebx
test eax, eax
jne 0x41054b
push 0x1fa8
call fcn.0040b7bc
mov esi, eax
pop ecx
test esi, esi
je 0x4103ca
mov ecx, esi
call fcn.004108a4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push 0x401df0
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00402540
add esp, 0x10
lea ecx, [ebp - 0x808]
call fcn.004108a4
call fcn.00410f35
push 0x1fa9
call fcn.0040b7bc
mov esi, eax
pop ecx
test esi, esi
je 0x410413
mov ecx, esi
call fcn.004108a4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x814], 0
je 0x410428
mov ecx, 0x41c628
call fcn.004108a4
jmp 0x410447
push 0x1fad
call fcn.0040b7bc
mov esi, eax
pop ecx
test esi, esi
je 0x410447
mov ecx, esi
call fcn.004108a4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00410f35
mov ecx, dword [ebp - 0x80c]
call fcn.00410820
push 0x1faa
mov edi, eax
call fcn.0040b7bc
mov esi, eax
pop ecx
test esi, esi
je 0x410478
mov ecx, esi
call fcn.004108a4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0040b7bc
pop ecx
test eax, eax
je 0x41048a
mov ecx, eax
call fcn.0041080d
call fcn.00410f35
cmp dword [ebp - 0x80c], 1
je 0x4104ae
cmp dword [ebp - 0x80c], 2
je 0x4104ae
cmp dword [ebp - 0x80c], 7
je 0x4104ae
xor ecx, ecx
jmp 0x4104b1
push 2
pop ecx
mov eax, dword [ebp - 0x810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x410541
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
push 0
push 0x41c628
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41051b
lea eax, [ebp - 0x810]
mov edx, esi
push eax
lea ecx, [ebp - 0x80c]
call fcn.0040bd9d
test eax, eax
jne 0x41051b
push dword [ebp - 0x80c]
mov edx, dword [ebp - 0x810]
mov ecx, esi
call fcn.0041055c
jmp 0x410525
mov dword [0x41ce30], 0x92
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x41ce2c], 0
mov eax, dword [ebp - 0x818]
jne 0x410370
jmp 0x41054b
mov dword [0x41ce30], 0x90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x411083
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x818], ecx
mov esi, edx
push edi
cmp dword [0x41b098], ebx
je 0x411226
xor edi, edi
inc edi
push edi
push dword [0x41b0c0]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00402540
add esp, 0x10
lea eax, [ebp - 0x814]
push eax
push 0
push eax
push 0
lea eax, [ebp - 0x810]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411128
inc edi
cmp edi, 0x64
jb 0x4110b4
cmp edi, 0x64
jne 0x41118c
lea eax, [edi + 0x46]
push 0x10
push 0xa8
movzx eax, ax
push eax
push dword [ebp - 0x818]
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x14
jmp 0x411226
cmp esi, 2
jbe 0x411156
cmp esi, 3
je 0x411152
cmp esi, 4
je 0x41114b
cmp esi, 7
je 0x411156
cmp esi, 0xb
jne 0x41115f
and dword [ebp - 0xc], ebx
and dword [ebp - 8], ebx
push 8
jmp 0x41115e
and dword [ebp - 0xc], ebx
push 4
jmp 0x41115e
xor ebx, ebx
jmp 0x41115f
xor eax, eax
mov word [ebp - 0xc], ax
push 2
pop ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push 0
lea eax, [ebp - 0x810]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4110f8
mov eax, 0xa9
jmp 0x411104
xor edi, edi
mov dword [ebp - 0x854], 3
push edi
push edi
push 0x1004
push dword [0x41b084]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x840], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], edi
cmp esi, 1
je 0x4111dc
cmp esi, 2
je 0x4111dc
mov dword [ebp - 0x838], 5
cmp esi, 7
jne 0x4111e6
mov dword [ebp - 0x838], 4
lea eax, [ebp - 0x854]
push eax
push edi
push 0x104d
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411226
mov ecx, dword [0x41b084]
lea eax, [ebp - 0xc]
push esi
push ebx
push eax
mov edx, edi
call fcn.00412046
mov ecx, dword [0x41b084]
mov edx, edi
call fcn.00412395
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x411237
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x818], ecx
push esi
xor esi, esi
mov dword [ebp - 0x814], ebx
xor eax, eax
inc esi
mov dword [0x45e21c], eax
cmp dword [ebx + 0x20], eax
je 0x4113f5
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x804]
push edi
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x854]
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x83c], 0x400
push 0x1073
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x20]
xor ebx, ebx
cmp word [eax], bx
jne 0x4112bb
push 0x4b
pop edi
mov esi, ebx
jmp 0x4113d1
lea ecx, [ebp - 0x810]
push ecx
push ebx
push ecx
push ebx
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop edi
mov esi, ebx
cmp eax, edi
je 0x4112e3
push 0x4a
pop edi
jmp 0x4113d1
lea eax, [ebp - 0x80c]
push eax
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x808], 1
je 0x411322
cmp dword [ebp - 0x808], edi
je 0x411322
cmp dword [ebp - 0x808], 7
je 0x411322
mov edi, ebx
mov eax, dword [ebp - 0x80c]
add eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4113ca
push 0x49
pop edi
lea eax, [ebp - 0x80c]
push eax
push ebx
lea eax, [ebp - 0x808]
push eax
push 0
lea eax, [ebp - 0x804]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4113c1
lea eax, [ebp - 0x80c]
mov edx, ebx
push eax
lea ecx, [ebp - 0x808]
call fcn.0040bd9d
test eax, eax
jne 0x4113c1
push dword [ebp - 0x80c]
push ebx
push dword [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x814]
push dword [eax + 0x20]
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4113c1
lea eax, [ebp - 0x804]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4113c1
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4113cd
push 0x76
pop edi
test esi, esi
jne 0x4113f4
lea eax, [ebp - 0x804]
movzx ecx, di
push eax
push 0x10
push 0x48
push ecx
push dword [ebp - 0x818]
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x18
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x411b74
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x41b084]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x810], ebx
push edi
push edi
push 0x1032
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
dec eax
neg eax
push 0x34
sbb eax, eax
and eax, 0xfffffffe
add eax, 0x34
push 0x33
movzx eax, ax
push eax
push ebx
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x14
cmp eax, 6
jne 0x411cc5
push edi
push edi
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
or ebx, 0xffffffff
mov dword [ebp - 0x80c], edi
push 2
push ebx
jmp 0x411c7e
test edi, edi
je 0x411c28
and dword [ebp - 0x844], 0
lea eax, [ebp - 0x808]
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x84c]
push eax
push edi
push 0x1073
push esi
mov dword [ebp - 0x834], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x411c31
xor eax, eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x808]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x411c6f
test edi, edi
je 0x411c5c
push eax
push edi
push 0x1008
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x411c7b
push 1
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.00412046
xor ebx, ebx
jmp 0x411c7b
mov dword [ebp - 0x80c], 1
mov ebx, edi
push 2
push ebx
push 0x100c
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411bf1
push 0
push 1
push 0xb
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x80c], 0
je 0x411cc5
push 0x10
push 0x58
push 0x59
push dword [ebp - 0x810]
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x4125d7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0xffffffffffffffff
push 0x100c
push dword [0x41b084]
xor edi, edi
mov dword [ebp - 0x80c], ecx
mov ebx, edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [ebp - 0x84c], edi
lea eax, [ebp - 0x804]
mov dword [ebp - 0x83c], 0x400
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x854]
push eax
push esi
push 0x1073
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
jne 0x412652
xor eax, eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x810]
push eax
push edi
lea eax, [ebp - 0x808]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4126a1
cmp eax, 2
jne 0x412693
cmp word [ebp - 0x804], bx
je 0x4126a1
mov esi, dword [ebp - 0x80c]
push 0x72
pop edi
jmp 0x412795
cmp dword [ebp - 0x808], 1
je 0x4126c0
cmp dword [ebp - 0x808], 2
je 0x4126c0
cmp dword [ebp - 0x808], 7
je 0x4126c0
mov ecx, edi
jmp 0x4126c3
push 2
pop ecx
mov eax, dword [ebp - 0x810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x814], esi
test esi, esi
je 0x412785
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push edi
lea eax, [ebp - 0x804]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41271f
lea eax, [ebp - 0x810]
mov edx, esi
push eax
lea ecx, [ebp - 0x808]
call fcn.0040bd9d
cmp eax, 2
jne 0x412744
cmp word [ebp - 0x804], bx
jne 0x41276b
mov eax, dword [ebp - 0x814]
xor ecx, ecx
mov dword [ebp - 0x808], 1
mov word [eax], cx
mov eax, edi
test eax, eax
jne 0x41276b
push dword [ebp - 0x808]
mov esi, dword [ebp - 0x80c]
mov ecx, esi
mov edx, dword [ebp - 0x814]
push 1
push dword [ebp - 0x810]
call fcn.00417a33
jmp 0x412777
mov esi, dword [ebp - 0x80c]
xor ebx, ebx
push 0x72
pop edi
inc ebx
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x412791
mov esi, dword [ebp - 0x80c]
xor ebx, ebx
push 0x76
pop edi
inc ebx
test ebx, ebx
je 0x4127b3
lea eax, [ebp - 0x804]
push eax
push 0x10
push 0x70
movzx eax, di
push eax
push esi
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x419f74
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41a478
call fcn.0041a288
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x419fd4
cmp eax, 0xffffffff
je 0x419fd4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x419fcd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x419fcd
cmp edx, 0x10000000
jae 0x419fcd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x419fca
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0041a2cd
ret 4

Function at 0x41a020
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41a05e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41a056
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41a060
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41a046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41a130
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x41a146
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x41a161
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401541
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00408126
sub esp, 0x10
test eax, eax
jne 0x4016a1
mov eax, dword [ebp - 0x22c]
test byte [ebp + 0x10], 2
je 0x4015d7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x228], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x228]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x401642
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015ff
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401541
sub esp, 0xc
test eax, eax
jne 0x401659
lea edx, [ebp - 0x222]
xor eax, eax
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401659
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015e5
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4016a1
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], 3
call fcn.00408678
push edx
test eax, eax
jne 0x40168b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ecx
push ecx
jmp 0x4016a1
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403fd5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test eax, eax
js 0x404011
add eax, dword [0x41b998]
xor edx, edx
mov dword [0x42fa58], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403e03
push esi
mov esi, eax
test eax, eax
js 0x404127
lea eax, [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00407f55
sub esp, 0xc
test eax, eax
jne 0x404055
mov esi, 0xfffffffd
jmp 0x404127
mov eax, dword [ebp - 0xc]
add dword [0x42fa58], 4
mov dword [esp], eax
call fcn.00403e03
mov esi, eax
push ecx
test eax, eax
js 0x404127
mov eax, dword [ebp - 0xc]
test ebx, ebx
jne 0x4040e2
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x404127
mov edx, 0x4000
cmp eax, edx
cmovg eax, edx
mov dword [ebp - 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42b9c0
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00407f55
sub esp, 0xc
test eax, eax
je 0x40404b
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x42b9c0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00407f99
sub esp, 0xc
test eax, eax
je 0x404122
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
add dword [0x42fa58], eax
add esi, eax
jmp 0x404079
xor edx, edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
cmp dword [ebp + 0x14], eax
cmovle eax, dword [ebp + 0x14]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40404b
mov esi, dword [ebp - 0x10]
add dword [0x42fa58], esi
jmp 0x404127
mov esi, 0xfffffffe
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x407b18
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
xor ecx, ecx
mov ebp, esp
sub esp, 0x48
mov dword [0x4381e0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x20], 0x4381e0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407b84
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x407b88
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], edx
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x407dfe
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407e2c
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407e37
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407dfe
push ecx
cmp eax, 0xffffffff
je 0x407e8c
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x407e84
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x407e7d
test byte [ebp + 0xc], 4
jne 0x407e8c
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407e8c
mov eax, 1
jmp 0x407e8e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407e61
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407e97
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x407eb2
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
xor ecx, ecx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc