joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015b1f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1015b200
xor esi, esi
mov eax, 0x811c9dc5
sub edx, ecx
je 0x1015b252
movzx ecx, byte [edi + esi]
inc esi
xor ecx, eax
imul eax, ecx, 0x1000193
cmp esi, edx
jb 0x1015b212
cmp eax, 0x7c4a5426
ja 0x1015b26c
je 0x1015b2c3
cmp eax, 0x39c98ba1
ja 0x1015b257
je 0x1015b2c3
cmp eax, 0x2eb1674
je 0x1015b2c3
cmp eax, 0x19acc50e
je 0x1015b2c3
cmp eax, 0x2a5bf553
je 0x1015b2c3
xor al, al
pop edi
pop esi
ret
cmp eax, 0x3a712436
je 0x1015b2c3
cmp eax, 0x43d6266e
je 0x1015b2c3
cmp eax, 0x4d7aa8c1
jmp 0x1015b250
cmp eax, 0xcb7412ac
ja 0x1015b29a
je 0x1015b2c3
cmp eax, 0x9d08c4c8
ja 0x1015b28c
je 0x1015b2c3
cmp eax, 0x7f11af2d
je 0x1015b2c3
cmp eax, 0x84ea2fe5
jmp 0x1015b250
cmp eax, 0xa7eab73f
je 0x1015b2c3
cmp eax, 0xc941ff64
jmp 0x1015b250
cmp eax, 0xe80bc214
ja 0x1015b2b1
je 0x1015b2c3
cmp eax, 0xd614ea2e
je 0x1015b2c3
cmp eax, 0xe1525a25
jmp 0x1015b250
cmp eax, 0xee7a29e8
je 0x1015b2c3
cmp eax, 0xf8573d98
sete al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x1015b2d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1015b2e0
xor esi, esi
sub edx, ecx
mov ecx, 0x811c9dc5
je 0x1015b325
movzx eax, byte [edi + esi]
inc esi
xor eax, ecx
imul ecx, eax, 0x1000193
cmp esi, edx
jb 0x1015b2f2
cmp ecx, 0x5978b32e
ja 0x1015b32a
je 0x1015b33e
cmp ecx, 0x1b20e275
je 0x1015b33e
cmp ecx, 0x3cb8abb3
je 0x1015b33e
cmp ecx, 0x4c849f3c
je 0x1015b33e
xor al, al
pop edi
pop esi
ret
cmp ecx, 0x97113ea7
je 0x1015b33e
cmp ecx, 0xa8d619ea
sete al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret

Function at 0x1015b350
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1015b360
xor esi, esi
sub edx, ecx
mov ecx, 0x811c9dc5
je 0x1015b3db
movzx eax, byte [edi + esi]
inc esi
xor eax, ecx
imul ecx, eax, 0x1000193
cmp esi, edx
jb 0x1015b372
cmp ecx, 0x92bbd4c5
ja 0x1015b3be
je 0x1015b3b8
cmp ecx, 0x40401f1c
je 0x1015b3b8
cmp ecx, 0x688917bf
je 0x1015b3b8
cmp ecx, 0x74386b5b
jne 0x1015b3db
mov eax, dword [0x10339cfc]
push str.SpellbookFlying_n
push eax
mov ecx, dword [eax]
call dword [ecx + 0x60]
add esp, 8
mov al, 1
pop edi
pop esi
pop ecx
ret
cmp ecx, 0xdd7b05fd
je 0x1015b3b8
cmp ecx, 0xe5a5eadf
je 0x1015b3b8
cmp ecx, 0xf51a72ab
sete al
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x1015d0e2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1015d0be
pop esi
leave
ret 8
Function at 0x401258
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004012e0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x401290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push 7
push dword [ebp - 4]
call sub.kernel32.dll_SetConsoleMode
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp + 8]
sub edx, 1
add edx, 1
cmp byte [edx], 0
je 0x4012d4
cmp byte [edx], 0xd
jne 0x4012c4
mov byte [edx], 0
mov eax, dword [ebp - 8]
sub eax, 2
leave
ret 8
Function at 0x1000101f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x107e2110]
jne 0x10001029
repz ret
jmp fcn.100012ab

Function at 0x10004e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x107e2110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100013b1
and dword [ebp - 0x14], 0
cmp dword [0x107e5224], 0
mov dword [ebp - 0x18], eax
jne 0x10004ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10004f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10004f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x107e5224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x107e5228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x107e522c], eax
call edi
push eax
call esi
mov dword [0x107e5234], eax
test eax, eax
je 0x10004ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x107e5230], eax
mov eax, dword [0x107e5230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x10004f1d
cmp dword [0x107e5234], ecx
je 0x10004f1d
push eax
call esi
push dword [0x107e5234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10004f1d
test ebx, ebx
je 0x10004f1d
call edi
test eax, eax
je 0x10004f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10004f14
test byte [ebp - 8], 1
jne 0x10004f1d
or dword [ebp + 0x10], 0x200000
jmp 0x10004f50
mov eax, dword [0x107e5228]
cmp eax, dword [ebp - 0x18]
je 0x10004f50
push eax
call esi
test eax, eax
je 0x10004f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004f50
mov eax, dword [0x107e522c]
cmp eax, dword [ebp - 0x18]
je 0x10004f50
push eax
call esi
test eax, eax
je 0x10004f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x107e5224]
call esi
test eax, eax
je 0x10004f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10004f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000101f
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7435091b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x779e7f08
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403348
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405428
test esi, esi
jne 0x40337e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405518
jmp 0x40339c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031ec
mov edi, eax
test esi, esi
je 0x40339c
cmp dword [ebx], 0
je 0x40339c
dec esi
jmp 0x403385
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4033d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4a0008], 0x8088405
inc edx
mov dword [ebx + 0x4a0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4043f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40448c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40446c
xor eax, eax
push ebp
push 0x404465
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4044a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40446c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4a0024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4052a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a304c], 0
je 0x405309
cmp word [0x4a3220], 0xd7b2
jne 0x4052d1
cmp dword [0x4a3228], 0
jbe 0x4052d1
mov eax, 0x4a321c
call dword [0x4a3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405330
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0030], 0
jne 0x405325
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406cf4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406d77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406d77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406f40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406e00
xor eax, eax
push ebp
push 0x406df9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406b30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406dde
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406f60
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406dde
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406f1a
cmp byte [ebp - 0xd], 0
jne 0x406e47
cmp byte [ebp - 0x12], 0
je 0x406f1a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406e60
dec ebx
cmp byte [ebx], 0x2e
je 0x406e6f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406e5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406f1a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406eac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f1a
cmp byte [ebp - 0xd], 0
je 0x406f1a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406f1a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4098a2
test eax, edx
je 0x4098a5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409865
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40988b
add ecx, 4
js 0x40987b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409888
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4098b1
test edx, edx
jne 0x409858
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a1e9
test al, 0x10
je 0x40a1ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004058b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a20d
test al, 0x10
jne 0x40a211
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d294
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d2cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405518
jmp 0x40d2d6
mov eax, ebx
mov edx, esi
call fcn.0040547c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d2e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d302
movzx eax, byte [esp]
jmp 0x40d304
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d994
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d80c
mov eax, dword [0x4a27a0]
cmp byte [eax], 0
je 0x40da10
mov eax, dword [0x4a24e4]
call fcn.00403814
call fcn.0040304c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a838
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40da58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40da46
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a247c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a57f8]
call fcn.00406ad8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e304
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e3da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004054c0
lea eax, [ebp - 4]
call fcn.00405910
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e3c4
mov eax, ebx
call fcn.00402ef0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e3bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e3a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e3ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e3a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3c4
mov eax, dword [ebp - 0x10]
call fcn.00402f0c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3e1
lea eax, [ebp - 4]
call fcn.00405428
ret
Function at 0x416884
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40feb4]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x416a25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a0ae4], 0
jne 0x4168df
mov ecx, dword [0x4a23b8]
mov dl, 1
mov eax, dword [0x408af8]
call fcn.0040db18
call fcn.00404e70
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403a84
mov eax, ebx
call fcn.00405d94
mov dword [ebp - 0x24], eax
mov esi, 0x416a34
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.004070d4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405da4
test eax, eax
jle 0x4169c8
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4169b4
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405698
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x41695a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004056b0
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x416970
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004056b0
mov eax, dword [ebp - 0x54]
call fcn.004058b8
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405698
mov eax, dword [ebp - 0x58]
call fcn.004058b8
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4169b6
xor eax, eax
test al, al
je 0x4169c1
mov ebx, 0x15
jmp 0x4169cd
mov ebx, 0x10
jmp 0x4169cd
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4a0ae4]
call fcn.004166a8
mov eax, dword [ebp - 4]
call fcn.004166a8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004070ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a2c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.0040544c
lea eax, [ebp - 0xc]
mov edx, dword [0x40feb4]
call fcn.00405f94
ret
Function at 0x421bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a7a00
cmp dword [edi], 0
jne 0x421c2c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a79fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a0b58
mov ecx, 2
call fcn.004030ec
mov edx, 0x421b88
lea eax, [esi + 5]
call fcn.00421ba8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421ba8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x421c01
mov dword [0x4a79fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x422a54
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x422bbe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004054c0
mov eax, dword [ebp - 4]
call fcn.004224d4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x422aa6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00405960
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004230f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x422b7b
xor eax, eax
push ebp
push 0x422b74
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00422680
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00422bec
test al, al
je 0x422b52
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405518
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x422b52
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.004058b8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x422b4c
mov eax, dword [ebp - 8]
call fcn.004058b8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405620
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00422a54
dec ebx
cmp ebx, 0xffffffff
jne 0x422b05
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422b7b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00422680
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.004058b8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0042266c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422bc5
lea eax, [ebp - 0x3c]
call fcn.00405428
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040544c
ret

Function at 0x422bec
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403a84
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4a28f0]
cmp byte [edx + 0xc], 0
je 0x422c50
mov edx, dword [0x4a28dc]
cmp dword [edx], 2
jne 0x422c50
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret