joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525928
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x56f360]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.0040ff7a
add esp, 4
cmp eax, ebx
je 0x404514
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.0040ff7a
add esp, 4
cmp eax, ebx
je 0x4044f0
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004fe33e
push 0x566bb8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0050058d
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004fe33e
push 0x566bb8
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.0050058d
int3
Function at 0x40d0e0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push ecx
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
mov eax, dword [ebp + 8]
je 0x40d13d
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d11a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ebp
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d159
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d178
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop ebp
ret
Function at 0x40f400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5259e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x56f360]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x40f5ae
cmp byte [ebx + 0x49], 0
je 0x40f5ae
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x40f5a2
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40f475
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40f492
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40f4c9
dec eax
je 0x40f4cd
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40f5a9
call fcn.00406bb0
xor al, al
jmp 0x40f5b0
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40f4dd
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40f50a
cmp edi, 0x10
jae 0x40f4ec
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004ff459
add esp, 0x10
cmp esi, eax
jne 0x40f59a
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x40f5a6
test esi, esi
jne 0x40f486
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40f5cb
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40f5cb
cmp edi, esi
jae 0x40f583
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00407cb0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x40f486
mov ecx, eax
cmp edi, 0x10
jae 0x40f55f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40f57a
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x40f480
test esi, esi
jne 0x40f555
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x40f592
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x40f480
lea ecx, [ebp - 0x2c]
call fcn.00406bb0
xor al, al
jmp 0x40f5b0
lea ecx, [ebp - 0x2c]
call fcn.00406bb0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fd9f8
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00518eaf
int3
Function at 0x40f720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52588b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56f360]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0051977b
push 4
mov dword [ebp - 4], 0
call fcn.0040ff7a
mov edi, eax
add esp, 4
test edi, edi
je 0x40f79c
call fcn.0051932b
mov dword [edi], eax
call fcn.005190ea
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00519414
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f792
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0051943c
jmp 0x40f79e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4161db
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00415e9a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x416225
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411616
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004115e7
jmp 0x416230
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00415ac9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x416236
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041638c
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x416273
call fcn.00415e9a
mov dword [esi + 0xc], 1
jmp 0x416278
call fcn.00415e9a
cmp dword [esi], 0
je 0x4162c1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x416299
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411616
jmp 0x4162ab
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403950
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004115e7
jmp 0x4162e5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4162e5
push dword [esi]
push dword [ebp + 8]
call fcn.00415ac9
pop esi
pop ebp
ret 0xc

Function at 0x4166c2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51dce2
call fcn.0050037c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4166e7
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x416739
call fcn.0041001b
push eax
lea ecx, [ebp - 0x10]
call fcn.00403ac0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004fde18
push eax
call fcn.00403230
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403af0
mov eax, esi
call fcn.00500454
ret 8

Function at 0x41ef00
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 0x41ef47
call fcn.00413ca0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41ef47
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41ef63
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ea05
mov esi, eax
test edi, edi
je 0x41ef61
test ebx, ebx
je 0x41ef61
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422713
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00436b6d
call fcn.004136bd
cmp dword [eax + 0x14], 0
jne 0x422730
mov ecx, esi
pop esi
jmp fcn.004221fa
pop esi
ret
Function at 0x425eb4
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0044f3c2
call fcn.004136bd
cmp dword [eax + 0x14], 0
jne 0x425ed1
mov ecx, esi
pop esi
jmp fcn.00425887
pop esi
ret

Function at 0x43309e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00413ca0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4330d7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00432ce0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x433135
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 + 0x78], ebx
test ebx, 0xffff0000
jne 0x433159
cmp dword [edi + 0x74], 0
jne 0x433159
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00413ca0
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.004330f6
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 0x43bd8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x43bda6
call fcn.00413ca0
mov esi, dword [eax + 0xc]
push dword [0x572eb4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43bdc4
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x43bdbc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x43bdf1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x43bdbe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0043bcba
mov esi, eax
jmp 0x43bde3
Function at 0x4e5c9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e5cb3
mov edi, dword [esi + 0xc]
jmp 0x4e5cf3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e5ccc
call fcn.004172b0
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e5ce1
call fcn.004172b0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e5cf3
call fcn.004172b0
call fcn.00413ca0
cmp dword [eax + 0x3c], 0
je 0x4e5d08
push edi
mov ecx, ebx
call fcn.004e4b61
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e5bb5
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e5d26
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e5d32
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4fd9f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56f360]
jne 0x4fda02
repz ret
jmp fcn.00505651
Function at 0x514e13
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56f360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00507125
and dword [ebp - 0x14], 0
cmp dword [0x576e0c], 0
mov dword [ebp - 0x18], eax
jne 0x514ec6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514f6e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x514f6e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54fda8
push ebx
mov dword [0x576e0c], eax
call edi
push eax
call esi
push 0x54fd94
push ebx
mov dword [0x576e10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x576e14], eax
call edi
push eax
call esi
mov dword [0x576e1c], eax
test eax, eax
je 0x514ec6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x576e18], eax
mov eax, dword [0x576e18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x514f1f
cmp dword [0x576e1c], ecx
je 0x514f1f
push eax
call esi
push dword [0x576e1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x514f1f
test ebx, ebx
je 0x514f1f
call edi
test eax, eax
je 0x514f16
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x514f16
test byte [ebp - 8], 1
jne 0x514f1f
or dword [ebp + 0x10], 0x200000
jmp 0x514f52
mov eax, dword [0x576e10]
cmp eax, dword [ebp - 0x18]
je 0x514f52
push eax
call esi
test eax, eax
je 0x514f52
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514f52
mov eax, dword [0x576e14]
cmp eax, dword [ebp - 0x18]
je 0x514f52
push eax
call esi
test eax, eax
je 0x514f52
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x576e0c]
call esi
test eax, eax
je 0x514f6e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514f70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fd9f8
leave
ret
Function at 0x4015d0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x40160f
xor eax, eax
jmp 0x4016f7
mov word [ebp - 0x48], 0
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x150], 0
push 0xf4
push 0
lea edx, [ebp - 0x14c]
push edx
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40167e
cmp dword [ebp - 0x54], 0x40
jne 0x40167e
movzx eax, word [ebp - 0x48]
cmp eax, 0x5a4d
je 0x401682
jmp 0x4016dd
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xc], eax
je 0x40169d
jmp 0x4016dd
push 0
lea eax, [ebp - 0x54]
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4016d2
cmp dword [ebp - 0x54], 0xf8
jne 0x4016d2
cmp dword [ebp - 0x150], 0x4550
je 0x4016d6
jmp 0x4016dd
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x4c], 0xffffffff
je 0x4016f4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00401710
add esp, 4
test eax, eax
jne 0x4017f2
jmp 0x401882
mov ecx, dword [ebp + 8]
push ecx
call fcn.004015d0
add esp, 4
test eax, eax
jne 0x401804
jmp 0x401882
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40182b
jmp 0x401882
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40184a
jmp 0x401882
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401867
jmp 0x401882
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401760
add esp, 8
mov dword [ebp - 0xc], eax
xor ecx, ecx
jne 0x4017dd
cmp dword [ebp - 0x10], 0
je 0x401899
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x4018b0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0xffffffff
je 0x4018c7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x401930
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00401710
add esp, 4
test eax, eax
jne 0x401967
jmp 0x4019f7
mov ecx, dword [ebp + 8]
push ecx
call fcn.004015d0
add esp, 4
test eax, eax
jne 0x401979
jmp 0x4019f7
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4019a0
jmp 0x4019f7
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4019bf
jmp 0x4019f7
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4019dc
jmp 0x4019f7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004018d0
add esp, 8
mov dword [ebp - 0xc], eax
xor ecx, ecx
jne 0x401952
cmp dword [ebp - 0x10], 0
je 0x401a0e
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x401a25
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0xffffffff
je 0x401a3c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402b00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443978
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00412150
add esp, 8
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp + 0x24]
call fcn.0040a370
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp + 0x24]
call fcn.0040a370
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a1d0
push eax
call fcn.0041e630
add esp, 8
test eax, eax
je 0x402baf
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040a180
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x30]
jmp 0x402be0
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040a180
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret 0x38