joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x486ea8
call fcn.0047d240
mov dword [ebp - 0x10], eax
push pe_nt_image_headers32
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x486e3b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x486e12
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0
mov ecx, 0x61a6f0
call fcn.0040be30
push eax
push 0x16f
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x20]
call fcn.0040bd20
push eax
call fcn.0040bd60
add esp, 0x10
xor eax, eax
jmp 0x486f16
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x486e39
push 0x175
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.0049c040
test eax, eax
je 0x486e39
int3
jmp 0x486ea8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x486e5e
push 0x17d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.0049c040
test eax, eax
je 0x486e5e
int3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x486ea8
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x486e9d
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0
mov ecx, 0x61a6f0
call fcn.0040be30
push eax
push 0x183
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x28]
call fcn.0040bd20
push eax
call fcn.0040bd60
add esp, 0x10
jmp 0x486ea8
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x486e5e
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x486ed1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x486ef0
cmp dword [ebp - 0xc], 0
je 0x486ef0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0045f000
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4c], 0
je 0x486f13
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [eax]
mov eax, dword [edx + 0xa8]
call eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48a680
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00489b70
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
call fcn.0046dc00
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x48a70b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x48a6e2
mov eax, dword [ebp - 8]
add eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004625e0
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x48a6ff
push 0x100
push 0xff
mov ecx, dword [ebp + 0x10]
call fcn.0042a540
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.0042a660
jmp 0x48a73c
mov ecx, dword [ebp + 0x10]
call fcn.004088a0
push eax
push 0xffffffffffffffff
push 0x14d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x48a73c
mov ecx, dword [ebp + 0x10]
call fcn.004088a0
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.004ee140
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48e360
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x616870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
je 0x48e3b2
mov ecx, dword [ebp - 0x14]
or ecx, 0x1000000
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x1c]
call fcn.0040bb90
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x40
mov edx, dword [ebp - 0x18]
shl edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004625e0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0042a660
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x18]
je 0x48e3c8
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00429a80
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408860
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4de5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
je 0x4de5c1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
jmp 0x4de61c
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4de5e5
call fcn.004747b0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4de604
call fcn.004747b0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4de61c
call fcn.004747b0
call fcn.004eadc0
cmp dword [eax + 0x3c], 0
je 0x4de636
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004de550
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004de400
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x5c], 0
je 0x4de666
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x5c], 0
cmp dword [ebp - 4], 0
je 0x4de67b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f3fb0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
jne 0x4f3fd2
push 0x62
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.0049c040
test eax, eax
je 0x4f3fd2
int3
cmp dword [ebp + 0xc], 0
jne 0x4f3fe9
push 0x63
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.0049c040
test eax, eax
je 0x4f3fe9
int3
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x54], 0
je 0x4f4083
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004f3f30
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4f4013
mov eax, dword [ebp + 0x10]
jmp 0x4f40b6
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4f407c
cmp dword [ebp - 4], 4
je 0x4f4060
push 0x71
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.0049c040
test eax, eax
je 0x4f4060
int3
cmp dword [ebp - 0xc], 4
je 0x4f4077
push 0x72
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.0049c040
test eax, eax
je 0x4f4077
int3
mov eax, dword [ebp - 0x14]
jmp 0x4f40b6
mov eax, dword [ebp + 0x10]
jmp 0x4f40b6
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x68], 0
jne 0x4f409d
push 0x79
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.0049c040
test eax, eax
je 0x4f409d
int3
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x500420
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x616870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00429ad0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x5004ae
call fcn.004eaff0
cmp eax, 1
jne 0x5004ae
lea ecx, [ebp - 0x10]
push ecx
push str.SoftwareClasses_
lea edx, [ebp - 0x14]
push edx
call fcn.0047a970
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00429b80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408860
mov dword [ebp + 8], OleUIInsertObjectA
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.004088a0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00408860
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5004f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baa10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x616870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00429ad0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x50057e
call fcn.004eaff0
cmp eax, 1
jne 0x50057e
lea ecx, [ebp - 0x10]
push ecx
push str.SoftwareClasses_
lea edx, [ebp - 0x14]
push edx
call fcn.0047a970
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00429b80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408860
mov dword [ebp + 8], OleUIInsertObjectA
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004088a0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00408860
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5005d0
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5baa40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x616870]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00429ad0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x50065e
call fcn.004eaff0
cmp eax, 1
jne 0x50065e
lea ecx, [ebp - 0x10]
push ecx
push str.SoftwareClasses_
lea edx, [ebp - 0x14]
push edx
call fcn.0047a970
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00429b80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408860
mov dword [ebp + 8], OleUIInsertObjectA
lea ecx, [ebp - 0x10]
call fcn.004088a0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00408860
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x544870
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x616870]
jne 0x54487a
repz ret
jmp fcn.0055e7a0

Function at 0x54c6e0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x54c6ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x54c706
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x54c71d
mov ecx, dword [ebp - 4]
push ecx
call fcn.0054c960
add esp, 4
or eax, 0xffffffff
jmp 0x54c71f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x551360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x551398
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00547550
add esp, 0x14
cmp eax, 1
jne 0x551398
int3
cmp dword [ebp - 8], 0
jne 0x5513d9
call fcn.0054cba0
mov dword [eax], 0
call fcn.0054cb70
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.00549390
add esp, 0x14
mov eax, 0x16
jmp 0x5514b1
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x551409
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00547550
add esp, 0x14
cmp eax, 1
jne 0x551409
int3
cmp dword [ebp - 0xc], 0
jne 0x551447
call fcn.0054cba0
mov dword [eax], 0
call fcn.0054cb70
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.00549390
add esp, 0x14
mov eax, 0x16
jmp 0x5514b1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x551472
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054c960
add esp, 4
call fcn.0054cb70
mov eax, dword [eax]
jmp 0x5514b1
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x55147e
xor eax, eax
jmp 0x5514b1
mov eax, dword [ebp - 4]
and eax, 1
je 0x5514af
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x5514af
call fcn.0054cba0
mov dword [eax], 5
call fcn.0054cb70
mov dword [eax], 0xd
call fcn.0054cb70
mov eax, dword [eax]
jmp 0x5514b1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40704c], 1
mov dword [0x407050], 1
mov dword [0x407054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x4018b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.004028c8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.004028c8
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x402484
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4024a3
mov eax, 0
jmp 0x4024e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4024c6
mov eax, 0
jmp 0x4024e7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4024e2
mov eax, 0
jmp 0x4024e7
mov eax, 1
leave
ret
Function at 0x4024e9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402548
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402540
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402540
mov eax, dword [ebp - 4]
jmp 0x40255c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40251d
mov eax, 0
leave
ret
Function at 0x405712
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7c9], 0
mov byte [ebp - 0x7c8], 0x9c
mov byte [ebp - 0x7c7], 0x90
mov byte [ebp - 0x7c6], 0x93
mov byte [ebp - 0x7c5], 0x81
mov byte [ebp - 0x7c4], 0x90
mov byte [ebp - 0x7c3], 0xac
mov byte [ebp - 0x7c2], 0xee
mov byte [ebp - 0x7c1], 0xa4
mov byte [ebp - 0x7c0], 0xac
mov byte [ebp - 0x7bf], 0xac
inc ecx
clc
invalid
jmp [esi + eax*8 - 0x7bd7b]
inc eax
push 0xb
lea eax, [ebp - 0x7cc]
push eax
call fcn.004038cc
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040382d
add esp, 0xc
jmp 0x405834

Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc
Function at 0x403e44
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ce753
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x6c0bc0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Attempting_to_load_configs_from_stub...
call fcn.004015a6
and dword [esp + 0x4c], 0
push 2
or dword [esp + 0x50], 0xffffffff
call fcn.0040b216
lea eax, [esp + 0x18]
push eax
call fcn.00412b39
mov dword [esp + 0x48], 1
mov edi, dword [ebx + 4]
add edi, 0xbdc
lea esi, [esp + 0x18]
call fcn.00404054
mov eax, dword [edi + 0x20]
mov edi, dword [ebx + 4]
add edi, 0xbdc
mov dword [esp + 0x38], eax
call fcn.0040bb5c
push ecx
push ecx
xor edi, edi
mov eax, esp
inc edi
mov dword [esp + 0x18], esp
mov dword [eax], 0x62cc74
mov dword [eax + 4], edi
mov byte [esp + 0x50], 2
mov byte [esp + 0x50], 1
call fcn.004018f2
mov esi, eax
test esi, esi
je 0x403f03
cmp dword [0x6caacc], 0
jle 0x403f03
and dword [0x6caa74], 0xfffffffe
push ecx
lea eax, [ebx + 0xb8]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.004049a2
mov byte [esp + 0x4c], 3
mov ecx, dword [ebx + 4]
add ecx, 4
mov byte [esp + 0x4c], 1
call fcn.00412eb8
mov ecx, dword [ebx + 4]
call fcn.00415c77
mov ecx, dword [ebx + 4]
add ecx, 0x7e8
call fcn.00418e73
test esi, esi
je 0x403f4d
push edi
xor eax, eax
call fcn.0040192e
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xbfc], ecx
mov esi, dword [ebx + 4]
add esi, 0xbdc
lea edi, [esp + 0x18]
call fcn.0040bb5c
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Finished_attempting_to_load_configs_from_stub.
call fcn.004015a6
mov byte [esp + 0x4c], 4
push 2
mov byte [esp + 0x50], 1
call fcn.0040b216
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.stubinfo.ini
call fcn.004015a6
mov byte [esp + 0x4c], 5
lea ecx, [ebx + 0xc]
mov eax, dword [ecx]
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push edx
call dword [eax + 0x68]
mov byte [esp + 0x50], 6
mov byte [esp + 0x50], 1
lea esi, [esp + 0x14]
call fcn.0040d17c
pop ecx
pop ecx
mov byte [esp + 0x48], 7
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.AlreadyRunning
mov edi, str.StubInfo
push edi
call esi
test eax, eax
jne 0x404026
push dword [esp + 0xc]
push eax
push str.PostbackSent
push edi
call esi
push dword [esp + 0xc]
mov dword [esp + 0x14], eax
push 0
push str.LogSent
push edi
call esi
cmp dword [esp + 0x10], 0
mov esi, eax
ja 0x40401b
push dword [ebx + 4]
call fcn.00416f09
test esi, esi
ja 0x404026
mov esi, ebx
call fcn.00404093
mov byte [esp + 0x48], 1
lea ecx, [esp + 0xc]
call fcn.00401752
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00412b86
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret