joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009200f
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101e3ef8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x1009203e
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1009206b
cmp dword [0x101eacf4], 0
jne 0x1009206b
lea eax, [esi - 0x41]
cmp eax, 0x19
jbe 0x10092067
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jb 0x10092067
push esi
call fcn.10165f4a
pop ecx
jmp 0x100920d8
mov eax, esi
jmp 0x100920d8
xor eax, eax
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
call fcn.10029014
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov al, byte [ebp - 0x10c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x107], 0
call dword [sym.imp.USER32.dll_CharUpperA]
movsx eax, byte [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1014e1c5
leave
ret 4
Function at 0x100d6069
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x101e3ef8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push pe_nt_image_headers32
xor edi, edi
push edi
push esi
call fcn.10155860
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.10163f93
push eax
call fcn.100060e0
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x10196834]
je 0x100d61d3
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100d61e7
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100d61e7
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x100d6102
mov eax, edi
jmp 0x100d6131
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100d611f
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.100d5e64
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x100d6128
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.100d6329
test eax, eax
je 0x100d6156
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.100d5cf0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100d615a
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.100d6329
test eax, eax
je 0x100d6181
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.100d5cf0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100d6185
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.100d6329
test eax, eax
je 0x100d61ad
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.100d5cf0
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x100d61af
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x100d61c1
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x100d61d3
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014e1c5
leave
ret 4
xor eax, eax
jmp 0x100d61d6
Function at 0x10100579
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x1010062d
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x10100629
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10100629
cmp dword [ebx], eax
jne 0x10100629
mov eax, dword [ebx + 4]
sub eax, 1
je 0x101005f8
sub eax, 1
je 0x101005c6
sub eax, 1
jne 0x10100629
mov edi, 0x428e
jmp 0x101005fd
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x101005fd
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x1018b994]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x101005fd
add edi, 3
jmp 0x101005fd
mov edi, 0x3ea0
push edi
call fcn.10018cff
test eax, eax
je 0x1010062d
push edi
push eax
mov ecx, 0x101ec4bc
call fcn.100182d5
test eax, eax
je 0x1010062d
mov eax, dword [0x101ec4bc]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x10100622
call fcn.1001774b
int3

Function at 0x1010a42c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.101665c1
pop ecx
test eax, eax
jne 0x1010a46e
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10015fc0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1010a434
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x10139b6f
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x1017fe4f
call fcn.1014ed9c
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x10139c4f
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x10139c4f
cmp edi, 0x43
je 0x10139bb4
cmp edi, 0x2d
jne 0x10139c4f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10139c4f
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.10019156
push eax
lea ecx, [ebp - 0x10]
call fcn.10017994
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.10002310
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.10018501
mov esi, dword [ebp - 0x14]
push ebx
mov ecx, esi
call fcn.100272f4
call fcn.1014ed65
ret 4

Function at 0x1016e995
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1016e80b
Function at 0x5159b872
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x5159b940
mov eax, 0x94
call fcn.5159c15c
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5159b96e
mov ecx, dword [esi + 0x10]
mov dword [0x515a5684], ecx
mov eax, dword [esi + 4]
mov dword [0x515a5690], eax
mov edx, dword [esi + 8]
mov dword [0x515a5694], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x515a5688], esi
jne 0x5159d404
shl eax, 8
add eax, edx
push 0
mov dword [0x515a568c], eax
call fcn.5159c278
test eax, eax
pop ecx
je 0x5159b96e
call fcn.5159bab1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x515a57c8], eax
call fcn.5159bd44
mov dword [0x515a5680], eax
call fcn.5159baec
test eax, eax
jl 0x5159d415
call fcn.5159c361
test eax, eax
jl 0x5159b972
call fcn.5159be72
test eax, eax
jl 0x5159b972
call fcn.5159c695
test eax, eax
jne 0x5159b972
inc dword [0x515a567c]
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x5159b935
cmp dword [0x515a567c], eax
jle 0x5159b96e
dec dword [0x515a567c]
cmp dword [0x515a5698], eax
jne 0x5159b962
call fcn.5159b996
call fcn.5159ba8c
call fcn.5159b97c
jmp 0x5159b935
xor eax, eax
jmp 0x5159b938
call fcn.5159ba8c
jmp 0x5159d415
or esi, 0x8000
mov dword [0x515a5688], esi
jmp 0x5159b8d3
call fcn.5159b97c
jmp 0x5159b96e

Function at 0x5159b9a5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x515a57e4], esi
push edi
je 0x5159d45c
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x515a5698], esi
mov byte [0x515a57e0], al
jne 0x5159ba09
mov ecx, dword [0x515a57c4]
test ecx, ecx
je 0x5159b9e8
mov eax, dword [0x515a57c0]
sub eax, 4
cmp eax, ecx
mov dword [0x515a57c0], eax
jae 0x5159ba38
mov eax, 0x515a57d0
mov esi, 0x515a57d4
cmp eax, esi
mov edi, eax
jae 0x5159ba09
mov eax, dword [edi]
test eax, eax
jne 0x5159d471
add edi, 4
cmp edi, esi
jb 0x5159b9f8
mov eax, 0x515a57d8
mov esi, 0x515a57dc
cmp eax, esi
mov edi, eax
jae 0x5159ba2a
mov eax, dword [edi]
test eax, eax
jne 0x5159d478
add edi, 4
cmp edi, esi
jb 0x5159ba19
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x5159d47f
pop ebp
ret
mov eax, dword [eax]
test eax, eax
je 0x5159ba40
call eax
mov eax, dword [0x515a57c0]
sub eax, 4
cmp eax, dword [0x515a57c4]
jmp 0x5159b9e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x5159b9b9
call eax
jmp 0x5159ba02
call eax
jmp 0x5159ba23
push dword [ebp + 8]
mov dword [0x515a57e4], 1
call fcn.5159e18b
pop ecx
jmp 0x5159ba36
Function at 0x5159bd44
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x515a5a18]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x5159bdf5
call edi
mov esi, eax
cmp esi, ebx
je 0x5159d686
mov dword [0x515a5a18], 1
cmp esi, ebx
je 0x5159d6a7
cmp word [esi], bx
mov eax, esi
je 0x5159bd9e
nop
nop
nop
nop
nop
nop
nop
add eax, ebp
cmp word [eax], bx
jne 0x5159bd90
add eax, ebp
cmp word [eax], bx
jne 0x5159bd90
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x5159bde5
push ebp
call fcn.5159be03
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x5159bde5
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x5159d6b4
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x5159d6c7
jmp 0x5159bd7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5159d69d
mov eax, ebp
mov dword [0x515a5a18], eax
jmp 0x5159bdf5
mov eax, dword [0x515a5a18]
jmp 0x5159bdf5
call edi
mov esi, eax
cmp esi, ebx
je 0x5159d6cf
jmp 0x5159bd82
push dword [esp + 0x10]
call fcn.5159b798
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x5159bde1
cmp eax, ebp
je 0x5159d6d6
cmp eax, ebx
je 0x5159d6d6
xor eax, eax
jmp 0x5159bdee
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x5159d6cf
cmp byte [esi], bl
je 0x5159d6f0
inc eax
cmp byte [eax], bl
jne 0x5159d6e6
inc eax
cmp byte [eax], bl
jne 0x5159d6e6
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.5159be03
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x5159d706
xor edi, edi
jmp 0x5159d711
push ebp
push esi
push edi
call fcn.5159cae6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x5159bdee

Function at 0x5159e18b
Capabilities:
Terminate process

Disassembly:
push 0x5159e1cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x5159e1b0
push 0x5159e1bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5159e1b0
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5159ed64
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x515a5c90], ebx
push esi
push edi
jne 0x5159ede4
push 0x5159eec4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5159ee1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5159eeb8
push edi
call esi
test eax, eax
mov dword [0x515a5c90], eax
je 0x5159ee1f
push 0x5159eea8
push edi
call esi
push 0x5159ee94
push edi
mov dword [0x515a5c94], eax
call esi
cmp dword [0x515a5684], 2
mov dword [0x515a5c98], eax
jne 0x5159ede4
push 0x5159ee78
push edi
call esi
test eax, eax
mov dword [0x515a5ca0], eax
je 0x5159ede4
push 0x5159ee60
push edi
call esi
mov dword [0x515a5c9c], eax
mov eax, dword [0x515a5c9c]
test eax, eax
je 0x5159ee29
call eax
test eax, eax
je 0x5159ee10
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x515a5ca0]
test eax, eax
je 0x5159ee10
test byte [ebp - 8], 1
jne 0x5159ee29
cmp dword [0x515a5690], 4
jb 0x5159ee23
or byte [ebp + 0x12], 0x20
jmp 0x5159ee48
xor eax, eax
jmp 0x5159ee58
or byte [ebp + 0x12], 4
jmp 0x5159ee48
mov eax, dword [0x515a5c94]
test eax, eax
je 0x5159ee48
call eax
mov ebx, eax
test ebx, ebx
je 0x5159ee48
mov eax, dword [0x515a5c98]
test eax, eax
je 0x5159ee48
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x515a5c90]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5159f5f4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.5159c15c
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5159f689
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x515a5684]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x5159f689
cmp eax, 1
je 0x5159f6a1
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5159f689
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x5159f65e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x5159f685
xor eax, eax
inc eax
jmp 0x5159f6bd
cmp esi, ebx
jae 0x5159f68d
xor eax, eax
jmp 0x5159f6bd
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x515a5684]
jmp 0x5159f6a3
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, edx
jae 0x401114
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401100
cmp esi, edx
jb 0x401119
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x402170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5440f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5965b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4021e1
mov edx, str.Failed_to_open_file.
mov ecx, 0x59e520
call fcn.00404fb0
push eax
call fcn.00401640
add esp, 4
jmp 0x4022ab
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x40221c
mov edx, str.Failed_to_create_file_mapping.
mov ecx, 0x59e520
call fcn.00404fb0
push eax
call fcn.00401640
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4022ab
push 0
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40224b
mov edx, str.Failed_to_map_view_of_file.
mov ecx, 0x59e520
call fcn.00404fb0
push eax
call fcn.00401640
add esp, 4
jmp 0x40229f
mov eax, 0x5a4d
cmp word [esi], ax
je 0x402261
mov edx, str.Invalid_DOS_header.
mov ecx, 0x59e520
jmp 0x40228a
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
je 0x402279
mov edx, str.Invalid_NT_header.
mov ecx, 0x59e520
jmp 0x40228a
mov ecx, dword [ebp - 0x10]
mov dword [eax + esi + 8], ecx
mov edx, str.Build_time_updated_successfully.
mov ecx, 0x59e5e0
call fcn.00404fb0
push eax
call fcn.00401640
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4022cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544071
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5965b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005170e0
push esi
push edi
lea eax, [ebp - 0x218]
push str._s._s
push eax
call fcn.004052e0
add esp, 0x1c
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x424], 0
call fcn.00407a1c
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0
call fcn.00407cb3
test eax, eax
je 0x4033f1
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esp, [esp]
lea ecx, [ebp - 0x43c]
call fcn.00407e59
lea ecx, [ebp - 0x43c]
mov edi, eax
call fcn.0040821c
test eax, eax
jne 0x4033e9
mov edx, dword [ebp - 0x43c]
push 0x10
lea ecx, [ebp - 0x43c]
call dword [edx + 0x38]
test eax, eax
jne 0x4033e9
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005170e0
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0040802c
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, dword [esi]
cmp dword [ecx - 4], 1
jle 0x403348
push dword [ecx - 0xc]
mov ecx, esi
call fcn.00404570
push dword [ebp - 0x44c]
lea eax, [ebp - 0x420]
push dword [esi]
push dword [ebp - 0x448]
push str._s_s._s
push eax
call fcn.004052e0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
add esp, 0x14
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40338e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00407f93
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [esi]
cmp dword [ecx - 4], 1
jle 0x4033b8
push dword [ecx - 0xc]
mov ecx, esi
call fcn.00404570
push 1
lea eax, [ebp - 0x420]
push eax
push dword [esi]
call ebx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4033e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4032d0
lea ecx, [ebp - 0x43c]
call fcn.00407c67
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0xffffffff
call fcn.00407bc7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e2d
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543e20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5965b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
test ebx, ebx
jne 0x40346b
xor eax, eax
jmp 0x4035ea
push 0x575680
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.00403f00
mov dword [ebp - 4], 0
push 0x575680
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
call fcn.00403f00
push ebx
lea eax, [ebp - 0x30]
push str._s.
push eax
mov byte [ebp - 4], 1
call fcn.00404f90
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
call fcn.00407a1c
push 0
mov byte [ebp - 4], 2
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00407cb3
or ebx, 0xffffffff
test eax, eax
je 0x403587
lea ecx, [ebp - 0x2c]
call fcn.00407e59
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.0040821c
test eax, eax
jne 0x40357f
mov edx, dword [ebp - 0x2c]
push 0x10
lea ecx, [ebp - 0x2c]
call dword [edx + 0x38]
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x403550
lea eax, [ebp - 0x38]
push eax
call fcn.00407f93
mov esi, eax
mov byte [ebp - 4], 3
mov ecx, dword [esi]
cmp dword [ecx - 4], 1
jle 0x403540
push dword [ecx - 0xc]
mov ecx, esi
call fcn.00404570
mov ecx, dword [esi]
call fcn.00403430
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
jmp 0x403566
lea eax, [ebp - 0x40]
push eax
call fcn.00407f93
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x40]
mov edi, eax
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40357f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4034f7
lea ecx, [ebp - 0x2c]
call fcn.00407c67
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407bc7
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4035c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4035e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e2d
mov esp, ebp
pop ebp
ret