joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408dd0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x43bc18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408e0f
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x30], 0
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x408e71
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.GetDiskFreeSpaceEx_failed_with_error_code__d
push eax
call fcn.00401f40
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
jmp 0x408e89
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x14]
jb 0x408e89
ja 0x408e87
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x10]
jbe 0x408e89
xor edi, edi
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x409140
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x43e84c
lea ecx, [esp + 4]
call fcn.00402d40
mov eax, dword [esp]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4091c1
cmp dword [esp + 0x4c], 0
je 0x4091c1
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4091e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x40
ret
Function at 0x40ba80
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebx
mov ebx, dword [esp + 0x318]
push edi
push 0x100
lea eax, [esp + 0x218]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.00421360
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00421360
add esp, 0x18
push 0x100
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x214]
lea edi, [esp + 0xc]
mov byte [esp + 0xc], al
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40baf0
push esi
mov ecx, 9
mov esi, str.:InetPub_ftprootTiprayLdReadlog
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.004224fc
add esp, 4
lea edi, [esp + 0x10]
dec edi
pop esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bb18
mov dx, word [0x43e584]
lea eax, [esp + 0xc]
mov word [edi], dx
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40bb30
mov ecx, dword [str.LdCab.log]
mov edx, dword [0x43f0a0]
mov dword [eax], ecx
mov cx, word [0x43f0a4]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
push edx
mov word [eax + 8], cx
call fcn.004088c0
add esp, 4
cmp eax, 0xfa000
jbe 0x40bb73
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.00402d40
mov ecx, dword [esp + 0x314]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041f914
add esp, 0x310
ret 4
Function at 0x40ca70
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.00421360
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x40cfe1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00411bf5
mov eax, dword [esi + 0x98]
push 0x640000
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x40cf60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov dword [esi + 0x74], eax
pop esi
pop ecx
ret

Function at 0x40d0d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43c5ab
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
call fcn.004125a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d123
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x230], 0
call fcn.00421360
add esp, 0xc
push 0x208
lea edx, [esp + 0x14]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00408dd0
add esp, 0xc
test eax, eax
jne 0x40d1ac
lea eax, [esp + 0xc]
push str.The_disk_free_space_is_to_small_
push eax
xor edi, edi
call fcn.00401f40
mov esi, dword [esp + 0x14]
add esp, 8
push edi
push esi
mov ecx, 0x44e3c9
call fcn.0040be50
lea eax, [esi - 0x10]
mov dword [esp + 0x224], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041f914
add esp, 0x21c
ret
Function at 0x40f5c0
Capabilities:
Access peb ldr_data
Create directory
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43c4a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00402d40
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x2c], 0
call fcn.00409010
add esp, 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x43e584
lea ecx, [esp + 0x18]
call fcn.00408c30
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f657
mov ecx, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jge 0x40f6c2
mov edi, edi
test esi, esi
jl 0x40f6f9
cmp esi, eax
jg 0x40f6f9
cmp byte [esi + ecx], 0x5c
jne 0x40f6ba
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401d50
mov edi, dword [esp + 0x18]
push 0
push edi
call ebx
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f6b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
inc esi
cmp esi, eax
jl 0x40f670
lea eax, [ecx - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0x80070057
call fcn.004011d0
int3
Function at 0x410620
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43c5eb
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push esi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x10]
call fcn.0040ce90
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0xc]
mov dword [esp + 0xe0], 0
mov dword [0x44e3c0], eax
test edx, edx
jne 0x410678
xor eax, eax
jmp 0x410689
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410680
sub eax, esi
push eax
push edx
mov ecx, 0x44e3b4
call fcn.00401960
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x4106a4
xor eax, eax
jmp 0x4106b9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4106b0
sub eax, esi
push eax
push edx
mov ecx, 0x44e3b8
call fcn.00401960
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x410550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
call fcn.00411ef4
lea ecx, [esp + 0xc]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401170
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xdc
ret
Function at 0x410a40
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8008
call fcn.00421330
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x8004], eax
push ebx
mov ebx, dword [esp + 0x8014]
push esi
mov esi, dword [esp + 0x8014]
mov dword [esp + 8], 0
call fcn.004125a5
test eax, eax
jne 0x410a83
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebp, eax
push 0x43e570
push esi
add ebp, 0x10
call fcn.00436380
mov edi, eax
add esp, 8
test edi, edi
je 0x410b25
push 0x43e590
push ebx
call fcn.00420f7d
mov esi, eax
add esp, 8
test esi, esi
je 0x410b1c
push esi
mov dword [esp + 0x14], 1
call fcn.00420b94
add esp, 4
test eax, eax
jne 0x410b13
push 0x8000
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.004368f0
add esp, 0xc
test eax, eax
jle 0x410b13
push esi
push eax
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.00420b12
add esp, 0x10
test eax, eax
je 0x410b0b
push esi
call fcn.00420b94
add esp, 4
test eax, eax
je 0x410ad0
jmp 0x410b13
mov dword [esp + 0x10], 0
push esi
call fcn.00420934
add esp, 4
push edi
call fcn.00436d60
add esp, 4
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
test edx, edx
jg 0x410b43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x800c]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.0041f914
add esp, 0x8008
ret
Function at 0x411150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor edx, edx
push edi
mov dword [esi], edx
mov dword [esi + 4], edx
xor eax, eax
mov dword [esi + eax*4 + 8], eax
inc eax
cmp eax, 0x100
jl 0x411162
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
xor edi, edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], 0x40
movzx edx, byte [edx + ebp]
mov eax, dword [ecx - 8]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x4111a2
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx - 8], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
mov eax, dword [ecx - 4]
mov dword [esp + 0x18], edx
movzx edx, byte [edx + ebp]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x4111d4
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx - 4], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
mov eax, dword [ecx]
mov dword [esp + 0x18], edx
movzx edx, byte [edx + ebp]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x411205
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], edx
movzx edx, byte [edx + ebp]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x411236
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [esi + edi*4 + 8]
mov dword [ecx + 4], edx
mov dword [esi + edi*4 + 8], eax
mov eax, dword [esp + 0x18]
inc eax
cdq
idiv ebx
add ecx, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x18], edx
jne 0x411187
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4112f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c6ab
mov eax, dword fs:[0]
push eax
mov eax, 0x8010
call fcn.00421330
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x800c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0x8024]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8038]
mov esi, dword [esp + 0x8034]
mov ebp, dword [esp + 0x803c]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
call fcn.004125a5
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x411368
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x43e570
push esi
mov dword [esp + 0x8034], edi
call fcn.00420f7d
mov edi, eax
add esp, 8
test edi, edi
jne 0x4113ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea ecx, [esp + 0x1c]
push str.RC4File_fopen_srcfile__s__Fail__d_
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x24]
add esp, 0x10
push edi
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
mov dword [esp + 0x18], 1
jmp 0x41148d
push 0x43e590
push ebx
call fcn.00420f7d
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x411416
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push str.RC4File_fopen_destfile__s__Fail__d_
push ecx
call fcn.00401f40
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebx
push edx
mov ecx, 0x44e3c9
call fcn.0040be50
mov dword [esp + 0x18], 2
jmp 0x411477
push edi
call fcn.00420b94
add esp, 4
test eax, eax
jne 0x411477
push edi
push 0x8000
lea eax, [esp + 0x28]
push 1
push eax
call fcn.00420e9c
mov ecx, dword [esp + 0x8050]
push ecx
mov esi, eax
push ebp
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00411270
push ebx
push esi
lea eax, [esp + 0x48]
push 1
push eax
call fcn.00420b12
add esp, 0x30
cmp esi, eax
jne 0x41146f
push edi
call fcn.00420b94
add esp, 4
test eax, eax
je 0x411423
jmp 0x411477
mov dword [esp + 0x18], 3
push edi
call fcn.00420934
add esp, 4
test ebx, ebx
je 0x41148d
push ebx
call fcn.00420934
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x802c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8024]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x800c]
xor ecx, esp
call fcn.0041f914
add esp, 0x801c
ret
Function at 0x41212c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x412150
cmp dword [edi + 0x54], 0
jne 0x412150
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041b93e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004120ed
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4134e5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x44ccd0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x413583
push 0x44010c
push 4
push eax
call fcn.0042352d
push eax
call fcn.004010e0
add esp, 0x10
push ebx
push edi
call fcn.00422ebe
mov edi, dword [eax]
call fcn.00422ebe
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00421560
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00422ebe
cmp dword [eax], ebx
je 0x41359a
call fcn.00422ebe
push dword [eax]
call fcn.004124b7
pop ecx
jmp 0x4135a1
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x41352b
jmp 0x413628
call fcn.00422ebe
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x413624
cmp dword [ebp - 0x11c], esi
jae 0x413624
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00421360
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x413613
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x413613
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x413613
push ebx
push ebx
push esi
jmp 0x41361c
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x413626
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041f914
leave
ret
Function at 0x41a42d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41a474
call fcn.0041b93e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a474
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41a490
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00419fa7
mov esi, eax
test edi, edi
je 0x41a48e
test ebx, ebx
je 0x41a48e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41f914
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ccd0]
jne 0x41f91e
repz ret
jmp fcn.00425648

Function at 0x431740
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00426549
and dword [ebp - 4], 0
cmp dword [0x450c64], 0
mov ebx, eax
jne 0x4317f1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4318a2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x443024
push edi
call esi
test eax, eax
je 0x4318a2
push eax
call fcn.004264d7
mov dword [esp], 0x443014
push edi
mov dword [0x450c64], eax
call esi
push eax
call fcn.004264d7
mov dword [esp], 0x443000
push edi
mov dword [0x450c68], eax
call esi
push eax
call fcn.004264d7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x450c6c], eax
call esi
push eax
call fcn.004264d7
pop ecx
mov dword [0x450c74], eax
test eax, eax
je 0x4317f1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004264d7
pop ecx
mov dword [0x450c70], eax
mov eax, dword [0x450c70]
cmp eax, ebx
je 0x431849
cmp dword [0x450c74], ebx
je 0x431849
push eax
call fcn.00426552
push dword [0x450c74]
mov esi, eax
call fcn.00426552
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431849
test edi, edi
je 0x431849
call esi
test eax, eax
je 0x431840
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431840
test byte [ebp - 0xc], 1
jne 0x431849
or dword [ebp + 0x10], 0x200000
jmp 0x431882
mov eax, dword [0x450c68]
cmp eax, ebx
je 0x431882
push eax
call fcn.00426552
pop ecx
test eax, eax
je 0x431882
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431882
mov eax, dword [0x450c6c]
cmp eax, ebx
je 0x431882
push eax
call fcn.00426552
pop ecx
test eax, eax
je 0x431882
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450c64]
call fcn.00426552
pop ecx
test eax, eax
je 0x4318a2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4318a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436610
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x436684
test edi, edi
je 0x43662c
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.00422ebe
mov edx, 0x4000
mov ecx, edi
mov dword [eax], 0
mov eax, dword [esi + 0x40]
sar edx, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push edx
push 1
push eax
call fcn.00420e9c
add esp, 0x10
test eax, eax
jne 0x436669
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x436669
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 4]
add edx, eax
mov dword [esi + 4], edx
mov eax, edx
mov edx, dword [esi + 0x44]
cmp eax, 2
mov dword [esi], edx
jae 0x436684
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
mov edx, dword [0x443140]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, edx
jne 0x4367a0
mov ecx, dword [0x443144]
xor edx, edx
mov dl, byte [eax + 1]
cmp edx, ecx
jne 0x4367a0
mov ecx, dword [esi + 4]
add eax, 2
add ecx, 0xfffffffe
push esi
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.004367b0
push esi
mov edi, eax
call fcn.004367b0
add esp, 8
cmp edi, 8
mov ebx, eax
jne 0x436795
test bl, 0xe0
jne 0x436795
mov edi, 6
push esi
call fcn.004367b0
add esp, 4
dec edi
jne 0x4366e3
test bl, 4
je 0x436726
push esi
call fcn.004367b0
push esi
mov edi, eax
call fcn.004367b0
shl eax, 8
add edi, eax
add esp, 8
mov eax, edi
dec edi
test eax, eax
je 0x436726
push esi
call fcn.004367b0
add esp, 4
cmp eax, 0xffffffff
je 0x436726
mov ecx, edi
dec edi
test ecx, ecx
jne 0x436711
test bl, 8
je 0x43674a
push esi
call fcn.004367b0
add esp, 4
test eax, eax
je 0x43674a
cmp eax, 0xffffffff
je 0x43674a
push esi
call fcn.004367b0
add esp, 4
test eax, eax
jne 0x436738
test bl, 0x10
je 0x43676e
push esi
call fcn.004367b0
add esp, 4
test eax, eax
je 0x43676e
cmp eax, 0xffffffff
je 0x43676e
push esi
call fcn.004367b0
add esp, 4
test eax, eax
jne 0x43675c
test bl, 2
je 0x436784
mov edi, 2
push esi
call fcn.004367b0
add esp, 4
dec edi
jne 0x436778
mov edx, dword [esi + 0x3c]
pop edi
neg edx
sbb edx, edx
and edx, 0xfffffffd
mov dword [esi + 0x38], edx
pop esi
pop ebx
ret
mov dword [esi + 0x38], 0xfffffffd
pop edi
pop esi
pop ebx
ret
mov dword [esi + 0x58], 1
pop edi
pop esi
pop ebx
ret

Function at 0x4367b0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4367c1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x43680e
call fcn.00422ebe
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00420e9c
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x436809
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x436820
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret