joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40101d
jmp 0x401052
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x409080
call fcn.004047f0
mov ecx, 0x409080
call fcn.00402a30
push eax
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 4
mov ecx, 0x409080
call fcn.00402a30
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
ret

Function at 0x402de2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x407588
call fcn.00402ff8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x402e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e1d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402e35
cmp eax, 0x20b
je 0x402e22
mov dword [ebp - 0x1c], edi
jmp 0x402e49
cmp dword [ecx + 0x84], 0xe
jbe 0x402e1d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x402e43
cmp dword [ecx + 0x74], 0xe
jbe 0x402e1d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4090dc], 0xffffffff
or dword [0x4090e0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40909c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x409098]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4090d8], eax
call fcn.004030c1
call fcn.00403189
cmp dword [0x409024], edi
jne 0x402ea9
push 0x403181
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040315f
push 0x40901c
push 0x409018
call sub.MSVCR71.dll__initterm
push 0x40310a
call fcn.00402d70
mov eax, dword [0x409094]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x409090]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x402efd
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x409014
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401420
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x402f39
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x402f6e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403033
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x4058cc
pop dword [ebp - 4]
mov eax, 0xe5950c79
sub eax, 0xe554b3ad
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x6fed6032
sub dword [ebp - 0x14], 0x219b1ae7
mov dword [ebp - 0x10], 0xcb941854
add dword [ebp - 0x10], 0x669f33f1
mov dword [ebp - 0xc], 0x838bfe42
add dword [ebp - 0xc], 0xc8c045ec
mov dword [ebp - 8], 0x2c41dac8
sub dword [ebp - 8], 0x2c41dac8
lea eax, [ebp - 0x14]
push eax
mov eax, 0xa513f1cd
add eax, 0x5b2cde87
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xd30a5321
add dword [ebp - 0x14], 0xa1681635
mov dword [ebp - 0x10], 0x10c83513
sub dword [ebp - 0x10], 0xcf5bd39e
mov dword [ebp - 0xc], 0xbc877423
sub dword [ebp - 0xc], 0x591807b7
mov dword [ebp - 8], 0x1258859e
sub dword [ebp - 8], 0x1258859e
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3ed60
push 0
call eax
mov ecx, 0xa1d17ba2
sub ecx, 0xa1d11e7a
mov ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 4]
mov edx, 0x276e60cc
mov edi, dword [esi]
xor edi, edx
mov dword [ebx], edi
add ebx, 0xa75a7c9f
sub ebx, 0xa75a7c9b
add esi, 0x82d17a84
sub esi, 0x82d17a80
loop 0x4059dd
add eax, 0x16773
xor ebx, ebx
add ebx, eax
add eax, 0x62d2bb8e
add eax, 0x9d2d4477
mov ecx, 0x7c97c3b7
sub ecx, 0x7c57c3b7
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x4096ad
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401166
mov ecx, eax
call fcn.0042b06e
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4096ee
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00409743
test eax, eax
jne 0x40973a
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jle 0x40970a
push esi
push edi
mov ecx, ebx
call fcn.00409743
test eax, eax
jne 0x40973a
push 0x4947d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
push 3
call fcn.00435627
add esp, 0xc
test eax, eax
jge 0x40973a
push edi
push esi
push 4
call fcn.00435627
add esp, 0xc
test eax, eax
jge 0x40973a
xor eax, eax
jmp 0x40973d
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x40c857
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x40c880
push ebx
push ebx
call fcn.00455746
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40c898
push ebx
push ebx
call fcn.00455746
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x40c8b0
push ebx
push ebx
call fcn.00455746
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x40c8c6
push ebx
push ebx
call fcn.00455746
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00454f00
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40ced3
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x46e71e
call fcn.0045454c
sub esp, 0x828
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040d0ed
test al, al
je 0x40cf06
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40d075
push edi
xor esi, esi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x832]
mov word [ebp - 0x834], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x834]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0040d117
lea eax, [ebp - 0x834]
lea edi, [ebx + 0xd4]
test eax, eax
lea eax, [ebp - 0x834]
jne 0x40cf4d
mov eax, 0x4947d8
push eax
mov ecx, edi
call fcn.0040b326
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xfc]
cmp eax, esi
jne 0x40cf67
mov eax, 0x4947d8
push eax
call fcn.0040b326
push 0x2c
call fcn.0045469e
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40cf96
mov ecx, edi
call fcn.0040afdf
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push 4
push ebx
push eax
call fcn.0040d085
jmp 0x40cf98
xor eax, eax
mov dword [ebx + 0x124], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push ebx
push 0x40ce7d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp - 0x10], edi
call fcn.0045469e
pop ecx
mov dword [eax], edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
push esi
push eax
mov dword [ebp + 8], eax
push 1
call edi
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x40d027
push 1
push esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40d018
cmp dword [ebp - 0x30], 0x8032
jne 0x40d00c
mov ecx, dword [ebx + 0x124]
call fcn.0040d4df
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40cfe5
push 0xff
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push 1
jmp 0x40cfdb
push dword [ebp + 8]
call fcn.00439086
mov ebx, dword [ebx + 0x124]
pop ecx
cmp ebx, esi
pop edi
je 0x40d04a
lea ecx, [ebx + 8]
call fcn.0040d2ab
push ebx
call fcn.00439086
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40d054
xor eax, eax
jmp 0x40d075
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], esi
setge al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d4b5
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40d4da
call esi
call esi
inc edi
cmp edi, 0x64
jl 0x40d4bf
pop edi
xor eax, eax
pop esi
ret
Function at 0x415991
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x48aff0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4159e8
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x494940
push 0
push 0
push 0x48afcc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4159df
mov byte [0x49696c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41736c
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41739c
push 0
push dword [0x4969a8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4969b0]
push 0
mov ecx, dword [eax + 0x26c]
call fcn.004331c7
ret
Function at 0x41bbd3
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x46fe47
call fcn.0045454c
sub esp, 0xad4
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xade]
mov word [ebp - 0xae0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xae0]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0xae0]
mov edi, 0x4765e0
mov esi, 0x4765d8
mov dword [ebp - 0x68], edi
test eax, eax
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0xae0]
jne 0x41bc37
mov eax, 0x4947d8
lea ecx, [ebp - 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.004011a9
mov eax, 0x48c120
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 0x3c], edi
test ecx, ecx
mov dword [ebp - 0x1c], esi
jne 0x41bc5e
mov eax, 0x4947d8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.004241b5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00401093
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x41bc97
mov eax, 0x4765fc
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41bd8f
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41bd69
lea eax, [ebp - 0xae0]
mov dword [ebp - 0x3c], edi
test eax, eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0xae0]
jne 0x41bce7
mov eax, 0x4947d8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 3
test eax, eax
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x2b4]
jne 0x41bd17
mov eax, 0x4947d8
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.004011a9
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.004241b5
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00401093
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x41bd56
mov eax, 0x4765fc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401093
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41bcb4
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, ebx
je 0x41bd8f
push dword [ebp - 0x14]
call eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42e1c2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x471c79
call fcn.0045454c
sub esp, 0x8d0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x8da]
mov word [ebp - 0x8dc], bx
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8dc]
lea ecx, [esi + 0x18]
push eax
push 0x4947d8
push 0x48e5d4
push 0x48a360
call fcn.00402b35
cmp word [ebp - 0x8dc], bx
jne 0x42e224
xor eax, eax
jmp 0x42e380
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.0042ad59
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x42e241
mov eax, 0x476650
mov edi, 0x4765e0
mov esi, 0x4765d8
cmp eax, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
jne 0x42e25a
mov eax, 0x4947d8
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00402424
lea eax, [ebp - 0x8dc]
mov dword [ebp - 0x64], edi
test eax, eax
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x8dc]
jne 0x42e292
mov eax, 0x4947d8
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.004011a9
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00411c36
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.0040aa61
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401d42
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00401093
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push 4
lea eax, [ebp - 0xd]
sub esp, 0x28
lea ecx, [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x14], esp
push 1
push eax
call fcn.0042f488
push eax
mov ecx, esi
call fcn.00402d75
call fcn.0043985e
add esp, 0x2c
cmp al, bl
jne 0x42e34c
lea eax, [ebp - 0x8dc]
test eax, eax
lea eax, [ebp - 0x8dc]
jne 0x42e343
mov eax, 0x4947d8
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040b326
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x42e358
mov eax, 0x4765fc
push 1
push ebx
push ebx
push eax
push 0x48e5f8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x3c]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401093
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x433960
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x472780
call fcn.0045454c
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x433a6b
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4339a9
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push 0x48e91c
call fcn.00433abb
pop ecx
test eax, eax
pop ecx
je 0x4339d5
cmp dword [eax + 0xc], esi
jne 0x4339d5
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x433a28
push edi
push 0x48e914
call fcn.00433abb
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4339fb
push edi
push 0x48e90c
call fcn.00433abb
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x433a6b
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x433a6b
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x433a76
cmp dword [ebp + 8], 0
je 0x433a76
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x433a6f
xor eax, eax
jmp 0x433aac
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x433a95
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x433a8f
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x433a80
cmp dword [ebp - 0x10], 0
je 0x433aa9
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x433aa9
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x435214
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, 0x4947d8
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x43539b
push esi
call fcn.004564d3
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00454c00
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x435392
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00454c00
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x48c148
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4352d6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push 0x48ea60
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00454c00
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48ea2c
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x435392
push 0x7f
mov word [ebp - 0x244], di
mov esi, dword [ebp - 4]
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x435392
and dword [ebp - 0xc], 0
test edi, edi
jle 0x435338
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00454f00
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x435369
lea eax, [ebp - 0x244]
push 0x48de04
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x435381
push dword [ebp + 0x10]
lea eax, [ebp - 0x244]
push 0x48ea20
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x43532c
push dword [ebp - 8]
call fcn.004563ea
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4355c9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [0x48e92c]
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push eax
call fcn.004358f6
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x800]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43560e
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop eax
leave
ret
Function at 0x435cd6
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x472948
call fcn.0045454c
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x7c], 0x4765e0
mov dword [ebp - 0x5c], 0x4765d8
jne 0x435d08
mov eax, 0x4947d8
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004011a9
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00454c00
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00454c00
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov word [ebp - 0x90], bx
push 1
pop eax
mov dword [ebp - 0x94], eax
je 0x435d5b
mov word [ebp - 0x90], ax
mov edi, dword [ebp - 0x74]
cmp edi, ebx
jne 0x435d67
mov edi, 0x4765fc
push eax
lea eax, [ebp + 0xf]
mov esi, 0x48e9d4
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x435d8a
mov eax, 0x4765fc
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push 0x48eb1c
push eax
mov dword [ebp - 0x14], 0x4a7
call fcn.0040a580
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040b1a5
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040afdf
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.0040b2ad
cmp edi, ebx
je 0x435eab
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x435e3d
cmp eax, 1
jne 0x435e3d
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x44], 0x11
je 0x435e3d
cmp dword [ebp - 0x44], 0x10
je 0x435e3d
cmp dword [ebp - 0x44], 0x12
jne 0x435e00
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x498470], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x435e7c
mov eax, 0x4765fc
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4c8
push edi
push 0x48eadc
push eax
call fcn.0040a580
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401093
mov esi, dword [ebp - 0x10]
jmp 0x435eb0
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401093
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8