joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4886c8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x488765
push ebx
push esi
call fcn.004887b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00488611
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x488712
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x488764
push edi
push eax
call fcn.00483304
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x488732
call fcn.004829bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x488763
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00488611
add esp, 0x20
test eax, eax
jne 0x488751
push edi
call fcn.004829bd
jmp 0x488759
push ebx
call fcn.004829bd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x488768
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x488779
pop esi
ret
push ebx
push edi
push esi
call fcn.004887b6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00483304
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4887a1
push ebx
push esi
push edi
call fcn.0046e7f0
add esp, 0xc
push 0
call fcn.004829bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4887f8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488a61

Function at 0x489019
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00489024

Function at 0x489484
Capabilities:
Hash data using murmur3
Read file via mapping

Disassembly:
push 0x10
push 0x4be940
call fcn.0046cac0
cmp dword [ebp + 8], 0x2000
jb 0x489428
call fcn.0047b65b
push 9
pop esi
mov dword [eax], esi
call fcn.00482a90
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
mov dword [ebp - 0x1c], esi
push 7
call fcn.00481973
pop ecx
mov dword [ebp - 4], esi
mov edi, esi
mov eax, dword [0x4c1030]
pushal
pushfd
mov esi, eax
call fcn.0046c5ed
rol esi, 0x1c
mov esi, 0x5d68883
neg ebx
add ecx, esi
xor eax, 0x352c4b00
dec ebx
sub al, 0x35
mov esi, eax
call fcn.00412c31
and esi, edi
mov ebx, edx
test eax, ecx
jb 0x489457
mov dword [0x4c17e4], esi
xor esi, esp
inc edx
add edx, edi
mov esi, esp
or esi, edi
mov edi, dword [0x4bf48a]
xor ebx, ecx
not eax
xor edi, edx
neg eax
dec ecx
mov esi, eax
not eax
mov ecx, 0x195dc0

Function at 0x489490
Capabilities:
Hash data using murmur3
Read file via mapping

Disassembly:
not ebx
neg edx
xchg eax, esi
or dword [0x4c1838], 0x6325293
shr esi, 0xf
or edi, dword [0x4bf368]
shr esi, 5
xchg edi, eax
inc ebx
neg eax
Function at 0x4894b3
Capabilities:
Hash data using murmur3
Read file via mapping

Disassembly:
xchg eax, edx
not edx
shl esi, 0x10
dec edx
loop fcn.00489490
mov ecx, 0xfc2c60
mov ebx, dword [0x4bf52e]
inc esi
xchg eax, eax
inc eax
test eax, eax
jo 0x4894b1
xchg esi, eax
call fcn.0046c5ed
xchg esi, edx
neg eax
shl edx, 0x17
xchg eax, eax
loop 0x4894c0
or ecx, dword [0x4bf97a]
mov eax, 0xf611d18
mov ecx, 0x8819dc
mov dword [0x4c17f0], 0x156e2390
inc esi
shr esi, 0x12
neg esi
not eax
call fcn.00402b3e
inc eax
call fcn.0046c395
dec edi
test eax, 0x1faa39c0
jo 0x48957d
loop 0x4894f0
rol esi, 5
xor esi, eax
shl esi, 0xb
not esi
rol esi, 0x1d
mov ebx, edi
ror esi, 0x14
xor ecx, eax
rol ecx, 0x1f
inc esi
xor esi, eax
add edi, esp
push 0
ror esi, 0x14
sub ecx, dword [0x4bfac5]
call fcn.0046c395
inc eax
call fcn.00401f2e
ror ecx, 3
add esi, eax
sub esi, esi
neg eax
inc ebx
rol ecx, 0x1f
sub ebx, eax
mov ebx, 0x75f
neg ebx
dec esp
add cl, al
ret

Function at 0x489560
Capabilities:
Hash data using murmur3
Read file via mapping

Disassembly:
xor esi, edi
ror esi, 0xf
xor edi, ebx
sub dword [0x4c15b6], 0x28885dd0
xchg esi, eax
xor dword [0x4c1684], edi
xor esi, dword [0x4c1ae4]
rol ebx, 8
xchg edi, eax
not eax
xor ecx, dword [0x4c1924]
add esi, eax
dec ecx
sub esi, dword [0x4c1b4e]
call fcn.00401f2e
neg edx
add edx, esp
neg eax
mov dword [0x4c135c], esi
call fcn.004056d9
sub ecx, dword [0x4c1e38]
mov dword [0x4c14b4], edx
neg eax
sub edx, esp
neg edx
inc ecx
sub esi, eax
not eax
xchg edi, eax
ror ebx, 8
or dword [0x4c1550], ebx
xchg esi, eax
xor edi, ebx
rol esi, 0xf
xor esi, edi
neg ebx
push ebx
xchg esi, eax
ror edi, 0xe
call fcn.00405d94
ror eax, 1
sub edi, dword [0x4c1f7c]
call fcn.00402db1
inc eax
mov dword [0x4c1498], esi
xor edi, edx
xor edi, dword [0x4c1c44]
xor edx, 0x12d1bcb9
xor eax, 0xd8d56fc
dec edi
sub esi, ebx
and dword [0x4c17f0], edx
not esi
inc esi
mov dword [0x4c18b0], ecx
dec edx
call fcn.00404423
xor esi, eax
xor esi, eax
call fcn.00402f91
inc edx
mov dword [0x4c12a4], ecx
dec esi
not esi
sub dword [0x4c1444], ecx
add esi, ebx
inc edi
Function at 0x489798
Capabilities:
Hash data using murmur3
Read file via mapping

Disassembly:
inc dword [ecx - 0x48040409]
adc eax, 0xc874c081
scasd eax, dword es:[edi]
adc ebp, eax
test byte [edi - 0xffc0009], al

Function at 0x489996
Capabilities:
Hash data using murmur3
Read file via mapping

Disassembly:
push es
arpl word [edx - 0x3c17b8ec], ax
in al, 0xf7
inc ecx
invalid

Function at 0x48a90c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048a917
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4a3054], 1
mov dword [0x4a3050], 1
mov dword [0x4a304c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4a300c], eax
mov eax, dword [0x4a3060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4a3074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4a305c]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x457ad4], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x407500
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x407560
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4a3068]
test esi, esi
jle 0x407680
mov eax, dword [0x4a306c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x407594
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x407617
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x407580
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4076a7
mov eax, dword [0x4a306c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x4a306c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x407687
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x407610
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x407620
add dword [0x4a3068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4a306c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x407610
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40759e
mov eax, dword [0x4a306c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x407bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4a3084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4a307c]
sub esp, 4
test ebx, ebx
je 0x407c15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x407c0e
test esi, esi
je 0x407c0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x407bf0
mov dword [esp], 0x4a3084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407f50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x407f75
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x407f80
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x407f75
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x407fc8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x407fbe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x407fca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x407fb0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10027f70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [0x10071160], 0xa
mov edx, dword [0x1007115c]
setl al
mov esi, edx
xor esi, 1
mov edi, edx
sub edi, esi
sub edi, esi
mov ecx, edx
or ecx, 1
add ecx, edi
add ecx, esi
sub ecx, edx
add ecx, 1
imul ecx, edx
and ecx, 1
mov edx, dword [0x10069dd4]
mov esi, dword [0x10069dd8]
mov edi, edx
and edi, esi
mov ebx, edx
or ebx, esi
not ebx
add ebx, ebx
lea edi, [ebx + edi*2]
xor edx, esi
not edx
add edx, edx
sub edi, edx
cmp ecx, edi
sete cl
or cl, al
add cl, 1
test cl, 1
jne 0x10027f80
mov eax, 1
pop esi
pop edi
pop ebx
ret 0xc
Function at 0x1005634d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1005638c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005638c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005638c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1005638c
cmp dword [ecx + 0x74], 0xe
jbe 0x1005638c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10059040
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100590dd
push ebx
push esi
call fcn.10059009
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10058f9d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005908a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100590dc
push edi
push eax
call fcn.10056fdd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100590aa
call fcn.1005702b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100590db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10058f9d
add esp, 0x20
test eax, eax
jne 0x100590c9
push edi
call fcn.1005702b
jmp 0x100590d1
push ebx
call fcn.1005702b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005934a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060668
push 0x10060660
push str.FlsAlloc
push 0x1f
call fcn.10059266
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005937e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f120]
call esi
jmp 0x10059384
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100593c8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060678
push 0x10060670
push str.FlsGetValue
push 0x21
call fcn.10059266
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100593ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10059407
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060680
push 0x10060678
push str.FlsSetValue
push 0x22
call fcn.10059266
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10059441
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005f120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005ea80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005eaad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005eaad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013cc
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 9
mov esi, edx
mov edi, ecx
push str.hardware
push esi
call fcn.0040a27e
add esp, 0xc
test eax, eax
jne 0x401527
mov edx, esi
mov ecx, edi
call fcn.0040119f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401414
sub ecx, edx
push str.Hardware_information:__n
push ecx
push esi
call fcn.004026bd
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.0040119f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40143a
push dword [ebp - 0x28]
sub ecx, edx
push str.__OEM_ID:__u_n
push ecx
push esi
call fcn.004026bd
add esp, 0x10
mov edx, esi
mov ecx, edi
call fcn.0040119f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401463
push dword [ebp - 0x14]
sub ecx, edx
push str.__Number_of_processors:__u_n
push ecx
push esi
call fcn.004026bd
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401483
push dword [ebp - 0x24]
sub ecx, edx
push str.__Page_size:__u_n
push ecx
push esi
call fcn.004026bd
add esp, 0x10
mov edx, esi
mov ecx, edi
call fcn.0040119f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4014ac
push dword [ebp - 0x10]
sub ecx, edx
push str.__Processor_type:__u_n
push ecx
push esi
call fcn.004026bd
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4014cc
push dword [ebp - 0x20]
sub ecx, edx
push str.__Minimum_application_address:__lx_n
push ecx
push esi
call fcn.004026bd
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4014ec
push dword [ebp - 0x1c]
sub ecx, edx
push str.__Maximum_application_address:__lx_n
push ecx
push esi
call fcn.004026bd
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40150c
push dword [ebp - 0x18]
sub ecx, edx
push str.__Active_processor_mask:__u_n
push ecx
push esi
call fcn.004026bd
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402511
mov esp, ebp
pop ebp
ret
Function at 0x4019a5
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x414341
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], ebx
call fcn.0040194b
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0xa4], ebx
call fcn.0040216f
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x80]
mov edx, eax
mov dword [esp], 0x41a6d4
call fcn.0040212d
pop ecx
xor edi, edi
lea ecx, [esp + 0x4c]
push ebx
inc edi
push edi
call fcn.00401d77
push ebx
push edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa8], 4
call fcn.00401d77
cmp dword [esp + 0x90], 0x10
lea eax, [esp + 0x7c]
push ebx
cmovae eax, dword [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0xf
pop ebp
test eax, eax
je 0x401a8c
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x84]
mov dword [esp + 0x38], ebp
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401ce3
lea eax, [esp + 0x1c]
mov ebx, edi
jmp 0x401a9d
push 0x41a52e
lea ecx, [esp + 0x38]
call fcn.00401b1c
push 2
pop ebx
and dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], ebp
push eax
mov byte [esi], 0
call fcn.00401b55
or ebx, 4
test bl, 2
je 0x401ac6
push 0
push edi
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffd
call fcn.00401d77
test bl, 1
je 0x401ad7
push 0
push edi
lea ecx, [esp + 0x24]
call fcn.00401d77
push 0
push edi
lea ecx, [esp + 0x84]
call fcn.00401d77
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00402511
add esp, 0x90
ret

Function at 0x4023c0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
lea eax, [edi + 2]
push eax
call fcn.0040323b
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 0x10
jb 0x4023ee
mov esi, dword [esi]
push esi
lea eax, [edi + 1]
push eax
push ebx
call fcn.00403302
mov word [ebx + edi], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
add esp, 0xc
mov eax, 0x614
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov word [ebp - 8], 0
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x12], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ebx
mov esi, eax
call fcn.004032fd
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00402511
mov esp, ebp
pop ebp
ret
Function at 0x402470
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41a728
push 0x7066
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor ecx, ecx
test esi, esi
je 0x4024d2
lea esp, [esp]
movzx edx, byte [ecx + edi]
mov dl, byte [edx + 0x41d2f0]
mov byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jb 0x4024c0
cmp dword [ebx + 0x14], 0x10
jb 0x4024da
mov ebx, dword [ebx]
push 0x41a72c
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0040341b
push dword [ebp - 8]
push 1
push esi
push edi
call fcn.004035b9
push dword [ebp - 8]
call fcn.004036a7
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00402511
mov esp, ebp
pop ebp
ret
Function at 0x40e1b4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407b84
mov dword [ebp - 0x14], eax
cmp dword [0x41e330], esi
jne 0x40e2a7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e234
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e387
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e387
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e387
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41e330], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41e334], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41e338], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e340], eax
test eax, eax
je 0x40e2a4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e33c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e2cc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e2bf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e2e1
push 4
pop eax
jmp 0x40e389
cmp dword [ebp - 0x14], esi
je 0x40e2e1
push dword [0x41e330]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e2c6
mov eax, dword [0x41e33c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e33f
cmp dword [0x41e340], edi
je 0x40e33f
push eax
call ebx
push dword [0x41e340]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e33f
test eax, eax
je 0x40e33f
call ecx
test eax, eax
je 0x40e334
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e334
test byte [ebp - 8], 1
jne 0x40e33f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e36f
mov eax, dword [0x41e334]
cmp eax, edi
je 0x40e36c
push eax
call ebx
test eax, eax
je 0x40e36c
call eax
mov esi, eax
test esi, esi
je 0x40e36c
mov eax, dword [0x41e338]
cmp eax, edi
je 0x40e36c
push eax
call ebx
test eax, eax
je 0x40e36c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41e330]
call ebx
test eax, eax
je 0x40e387
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e389
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402511
mov esp, ebp
pop ebp
ret