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

Disassembly:
push 0xffffffffffffffff
push 0x439878
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.00410194
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40806f
push 0x80004005
call fcn.00401330
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 0x4080d1
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.00401ce0
mov esi, dword [esp + 0x18]
add esp, 0xc
push edi
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
jmp 0x4080e9
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x14]
jb 0x4080e9
ja 0x4080e7
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x10]
jbe 0x4080e9
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 0x40810d
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 0x4083a0
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4398e8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
push 0x43b830
lea ecx, [esp + 0x10]
movzx esi, al
call fcn.00402ae0
xor edi, edi
mov dword [esp + 0x54], edi
cmp esi, 6
jb 0x4083f7
push 5
push str.runas
lea ecx, [esp + 0x14]
call fcn.00401900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x408455
cmp dword [esp + 0x64], edi
je 0x408455
mov ecx, dword [esp + 0x48]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40847d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret
Function at 0x40a900
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x310
mov eax, dword [0x449cd0]
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.0041ec20
push 0x208
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0041ec20
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 0x40a970
push esi
mov ecx, 9
mov esi, str.:InetPub_ftprootTiprayLdTermlog
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.0041fe87
add esp, 4
lea edi, [esp + 0x10]
dec edi
pop esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a998
mov dx, word [0x43b574]
lea eax, [esp + 0xc]
mov word [edi], dx
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a9b0
mov ecx, dword [str.LdCab.log]
mov edx, dword [0x43be84]
mov dword [eax], ecx
mov cx, word [0x43be88]
mov dword [eax + 4], edx
lea edx, [esp + 0xc]
push edx
mov word [eax + 8], cx
call fcn.00407b50
add esp, 4
cmp eax, 0xfa000
jbe 0x40a9f3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.00402ae0
mov ecx, dword [esp + 0x314]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041d4f4
add esp, 0x310
ret 4

Function at 0x40b290
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.0041ec20
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 0x40b7f1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0040f5ec
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 0x40b770
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 0x40b8e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x439e1b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
call fcn.00410194
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b933
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
push 0x104
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x12c], 0
call fcn.0041ec20
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00408030
add esp, 0xc
test eax, eax
jne 0x40b9bc
lea eax, [esp + 0xc]
push str.The_disk_free_space_is_to_small_
push eax
xor edi, edi
call fcn.00401ce0
mov esi, dword [esp + 0x14]
add esp, 8
push edi
push esi
mov ecx, 0x44b3c5
call fcn.0040aa20
lea eax, [esi - 0x10]
mov dword [esp + 0x120], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041d4f4
add esp, 0x118
ret
Function at 0x40dd70
Capabilities:
Access peb ldr_data
Create directory
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43a000
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x449cd0]
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.00402ae0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x2c], 0
call fcn.00408270
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 0x40ddf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 0x43b574
lea ecx, [esp + 0x18]
call fcn.00407e80
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40de07
mov ecx, dword [esp + 0x10]
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
cmp esi, eax
jge 0x40de72
mov edi, edi
test esi, esi
jl 0x40dea9
cmp esi, eax
jg 0x40dea9
cmp byte [esi + ecx], 0x5c
jne 0x40de6a
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401af0
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 0x40de66
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 0x40de20
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 0x40de96
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.00401330
int3
Function at 0x40e8c0
Capabilities:
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43a0bb
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push esi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x10]
call fcn.0040b6a0
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0xc]
mov dword [esp + 0xe0], 0
mov dword [0x44b3c0], eax
test edx, edx
jne 0x40e918
xor eax, eax
jmp 0x40e929
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e920
sub eax, esi
push eax
push edx
mov ecx, 0x44b3b4
call fcn.00401900
mov edx, dword [esp + 0xec]
test edx, edx
jne 0x40e944
xor eax, eax
jmp 0x40e959
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e950
sub eax, esi
push eax
push edx
mov ecx, 0x44b3b8
call fcn.00401900
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x40e7f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.__DoUnCompress
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0xc]
call fcn.0040f8eb
lea ecx, [esp + 0xc]
mov dword [esp + 0xe0], 0xffffffff
call fcn.004010e0
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xdc
ret

Function at 0x40e9c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8008
call fcn.0041ebf0
mov eax, dword [0x449cd0]
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.00410194
test eax, eax
jne 0x40ea03
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
push ebp
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ebp, eax
push 0x43b560
push esi
add ebp, 0x10
call fcn.00433fa0
mov edi, eax
add esp, 8
test edi, edi
je 0x40eaa5
push 0x43b580
push ebx
call fcn.0041e83b
mov esi, eax
add esp, 8
test esi, esi
je 0x40ea9c
push esi
mov dword [esp + 0x14], 1
call fcn.0041e452
add esp, 4
test eax, eax
jne 0x40ea93
push 0x8000
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.00434510
add esp, 0xc
test eax, eax
jle 0x40ea93
push esi
push eax
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0041e3d0
add esp, 0x10
test eax, eax
je 0x40ea8b
push esi
call fcn.0041e452
add esp, 4
test eax, eax
je 0x40ea50
jmp 0x40ea93
mov dword [esp + 0x10], 0
push esi
call fcn.0041e1f2
add esp, 4
push edi
call fcn.00434980
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 0x40eac3
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.0041d4f4
add esp, 0x8008
ret
Function at 0x40ed50
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 0x40ed62
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 0x40eda2
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 0x40edd4
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 0x40ee05
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 0x40ee36
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 0x40ed87
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40eef0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a0eb
mov eax, dword fs:[0]
push eax
mov eax, 0x8010
call fcn.0041ebf0
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x800c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449cd0]
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.00410194
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40ef68
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x43b560
push esi
mov dword [esp + 0x8034], edi
call fcn.0041e83b
mov edi, eax
add esp, 8
test edi, edi
jne 0x40efca
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.00401ce0
mov edx, dword [esp + 0x24]
add esp, 0x10
push edi
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
mov dword [esp + 0x18], 1
jmp 0x40f08d
push 0x43b580
push ebx
call fcn.0041e83b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40f016
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.00401ce0
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebx
push edx
mov ecx, 0x44b3c5
call fcn.0040aa20
mov dword [esp + 0x18], 2
jmp 0x40f077
push edi
call fcn.0041e452
add esp, 4
test eax, eax
jne 0x40f077
push edi
push 0x8000
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0041e75a
mov ecx, dword [esp + 0x8050]
push ecx
mov esi, eax
push ebp
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0040ee70
push ebx
push esi
lea eax, [esp + 0x48]
push 1
push eax
call fcn.0041e3d0
add esp, 0x30
cmp esi, eax
jne 0x40f06f
push edi
call fcn.0041e452
add esp, 4
test eax, eax
je 0x40f023
jmp 0x40f077
mov dword [esp + 0x18], 3
push edi
call fcn.0041e1f2
add esp, 4
test ebx, ebx
je 0x40f08d
push ebx
call fcn.0041e1f2
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 0x40f0b8
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.0041d4f4
add esp, 0x801c
ret
Function at 0x40fb23
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 0x40fb47
cmp dword [edi + 0x54], 0
jne 0x40fb47
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00419620
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.0040fae4
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 0x417fd9
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 0x418020
call fcn.00419620
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418020
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41803c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417b53
mov esi, eax
test edi, edi
je 0x41803a
test ebx, ebx
je 0x41803a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d4f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449cd0]
jne 0x41d4fe
repz ret
jmp fcn.00423248
Function at 0x42f360
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.00424079
and dword [ebp - 4], 0
cmp dword [0x44dc4c], 0
mov ebx, eax
jne 0x42f411
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42f4c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43fb64
push edi
call esi
test eax, eax
je 0x42f4c2
push eax
call fcn.00424007
mov dword [esp], 0x43fb54
push edi
mov dword [0x44dc4c], eax
call esi
push eax
call fcn.00424007
mov dword [esp], 0x43fb40
push edi
mov dword [0x44dc50], eax
call esi
push eax
call fcn.00424007
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dc54], eax
call esi
push eax
call fcn.00424007
pop ecx
mov dword [0x44dc5c], eax
test eax, eax
je 0x42f411
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424007
pop ecx
mov dword [0x44dc58], eax
mov eax, dword [0x44dc58]
cmp eax, ebx
je 0x42f469
cmp dword [0x44dc5c], ebx
je 0x42f469
push eax
call fcn.00424082
push dword [0x44dc5c]
mov esi, eax
call fcn.00424082
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42f469
test edi, edi
je 0x42f469
call esi
test eax, eax
je 0x42f460
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42f460
test byte [ebp - 0xc], 1
jne 0x42f469
or dword [ebp + 0x10], 0x200000
jmp 0x42f4a2
mov eax, dword [0x44dc50]
cmp eax, ebx
je 0x42f4a2
push eax
call fcn.00424082
pop ecx
test eax, eax
je 0x42f4a2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42f4a2
mov eax, dword [0x44dc54]
cmp eax, ebx
je 0x42f4a2
push eax
call fcn.00424082
pop ecx
test eax, eax
je 0x42f4a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dc4c]
call fcn.00424082
pop ecx
test eax, eax
je 0x42f4c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42f4c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x434230
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 0x4342a4
test edi, edi
je 0x43424c
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.00420abe
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.0041e75a
add esp, 0x10
test eax, eax
jne 0x434289
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x434289
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 0x4342a4
mov dword [esi + 0x58], eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
mov edx, dword [0x43fc80]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, edx
jne 0x4343c0
mov ecx, dword [0x43fc84]
xor edx, edx
mov dl, byte [eax + 1]
cmp edx, ecx
jne 0x4343c0
mov ecx, dword [esi + 4]
add eax, 2
add ecx, 0xfffffffe
push esi
mov dword [esi + 4], ecx
mov dword [esi], eax
call fcn.004343d0
push esi
mov edi, eax
call fcn.004343d0
add esp, 8
cmp edi, 8
mov ebx, eax
jne 0x4343b5
test bl, 0xe0
jne 0x4343b5
mov edi, 6
push esi
call fcn.004343d0
add esp, 4
dec edi
jne 0x434303
test bl, 4
je 0x434346
push esi
call fcn.004343d0
push esi
mov edi, eax
call fcn.004343d0
shl eax, 8
add edi, eax
add esp, 8
mov eax, edi
dec edi
test eax, eax
je 0x434346
push esi
call fcn.004343d0
add esp, 4
cmp eax, 0xffffffff
je 0x434346
mov ecx, edi
dec edi
test ecx, ecx
jne 0x434331
test bl, 8
je 0x43436a
push esi
call fcn.004343d0
add esp, 4
test eax, eax
je 0x43436a
cmp eax, 0xffffffff
je 0x43436a
push esi
call fcn.004343d0
add esp, 4
test eax, eax
jne 0x434358
test bl, 0x10
je 0x43438e
push esi
call fcn.004343d0
add esp, 4
test eax, eax
je 0x43438e
cmp eax, 0xffffffff
je 0x43438e
push esi
call fcn.004343d0
add esp, 4
test eax, eax
jne 0x43437c
test bl, 2
je 0x4343a4
mov edi, 2
push esi
call fcn.004343d0
add esp, 4
dec edi
jne 0x434398
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 0x4343d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4343e1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x43442e
call fcn.00420abe
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0041e75a
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x434429
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x434440
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