joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4512ec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451497
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451478
mov dl, 1
mov eax, dword [0x417148]
call fcn.00403370
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404198
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451467
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f320
test al, al
je 0x45145a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4514a8
lea eax, [ebp - 0x254]
call fcn.004098c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45145a
xor eax, eax
push ebp
push 0x451453
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4514e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45143c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404408
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45143c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45145a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45135d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b580
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45149e
lea eax, [ebp - 0x260]
call fcn.00404198
ret

Function at 0x451dcc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x484bb8]
cmp byte [eax + 0xa5], 0
jne 0x451e3d
cmp dword [0x484bd0], 0
jne 0x451dfe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451d88
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x484bd0], eax
cmp dword [0x484bcc], 0
jne 0x451e19
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x484bcc], eax
cmp dword [0x484bd4], 0
jne 0x451e3d
push esp
push 0
push 0
push 0x451d2c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x484bd4], eax
pop edx
ret
Function at 0x451f34
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451f4b
add esp, 0xfffffff0
call fcn.004036ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fac8
mov eax, dword [0x48348c]
cmp word [eax + 2], 0
jne 0x451f73
mov eax, dword [0x48348c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453624
mov eax, dword [0x483590]
cmp word [eax + 2], 0
jne 0x451f8d
mov eax, dword [0x483590]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045381c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416ba0]
call fcn.00403370
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416ba0]
call fcn.00403370
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421c9c]
call fcn.004278e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452114
mov eax, dword [0x48332c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427cb4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453dbc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48332c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e0c0
test eax, eax
je 0x452082
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040928c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e0e8
test eax, eax
je 0x452096
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404408
mov eax, dword [0x48313c]
cmp byte [eax], 0
jne 0x4520ca
mov eax, ebx
call fcn.0045223c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00453f98
mov eax, ebx
call fcn.0045495c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45210a
call fcn.00403704
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4524bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x484bb8]
cmp dword [eax + 0x30], 0
je 0x452566
cmp dword [ebx + 0x94], 0
jne 0x452560
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45244c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452560
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452526
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452560
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419178
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452535
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4530c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4530fd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404288
jmp 0x45310a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454174
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4541b5
mov eax, esi
call fcn.0043ab28
test al, al
je 0x4541b5
mov eax, dword [ebx + 0x84]
call fcn.0043a8c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4541b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a8c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x459108
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
or eax, 0xffffffff
cmp dword [ebx + 8], 0xffffffff
je 0x459133
push esp
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_GetFileSizeEx
test al, al
je 0x45912c
cmp dword [esp + 4], 0
je 0x459130
xor eax, eax
jmp 0x459133
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4598a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.004041ec
mov eax, dword [esi]
call fcn.00404474
test ax, ax
jbe 0x459908
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.004046cc
movzx ebp, bx
mov edx, dword [esi]
mov dl, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xce6d
add ax, 0x58bf
mov edi, eax
inc ebx
dec word [esp]
jne 0x4598d0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45ac44
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4163e8]
call fcn.00404bc0
xor eax, eax
push ebp
push 0x45ad88
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481114], 0
jne 0x45ac97
mov ecx, dword [0x483168]
mov dl, 1
mov eax, dword [0x407800]
call fcn.0040d338
call fcn.00403b14
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d98
mov eax, ebx
call fcn.00404a0c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45ad98
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405d68
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404a1c
test eax, eax
jle 0x45ad2f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45ad28
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040443c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404408
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408750
test eax, eax
jne 0x45ad28
mov ebx, 0x15
jmp 0x45ad34
mov ebx, 0x10
jmp 0x45ad34
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x481114]
call fcn.0045ab9c
mov eax, dword [ebp - 8]
call fcn.0045ab9c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ad8f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004041bc
lea eax, [ebp - 0x10]
mov edx, dword [0x4163e8]
call fcn.00404c90
ret

Function at 0x45f80c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
xor eax, eax
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebp
push 0x45f8ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4837e8]
cmp dword [eax], 2
jne 0x45f872
mov eax, dword [0x483334]
cmp dword [eax], 5
jl 0x45f872
lea eax, [ebp - 0x9c]
mov edx, 0x9c
call fcn.00465440
mov dword [ebp - 0x9c], 0x9c
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x45f8b1
movzx ebx, word [ebp - 8]
jmp 0x45f8b1
push 0
mov ecx, 0x45f8e0
mov edx, 0x45f8f4
mov eax, 0x80000002
call fcn.004631b8
mov ebx, eax
lea ecx, [ebp - 0xa0]
mov edx, 4
mov eax, ebx
call fcn.004089d4
mov eax, dword [ebp - 0xa0]
call fcn.004089fc
mov ecx, 0x64
cdq
idiv ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f8d1
lea eax, [ebp - 0xa0]
call fcn.00404198
ret
Function at 0x45fae0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45fcc0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00465440
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x482398], eax
mov eax, dword [ebp - 0xc]
mov dword [0x48239c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4823a0], eax
mov eax, dword [0x4837e8]
cmp dword [eax], 2
sete byte [0x481b64]
push 0x45fccc
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00464dd4
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x481b64], 0
jne 0x45fb6f
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00464f18
test al, al
je 0x45fb6f
mov eax, dword [ebp - 0x4c]
mov dword [0x485048], eax
jmp 0x45fb76
xor eax, eax
mov dword [0x485048], eax
call fcn.0045f3e8
and eax, 0x7f
cmp eax, 0x12
ja case.0x45fb87.0
jmp dword [eax*4 + 0x45fb8e]
mov byte [0x481b50], 1
jmp case.0x45fb87.0
mov byte [0x481b54], 1
jmp case.0x45fb87.0
mov byte [0x481b58], 1
jmp case.0x45fb87.0
mov byte [0x481b5c], 1
jmp case.0x45fb87.0
mov byte [0x481b60], 1
jmp case.0x45fb87.0
mov byte [0x481b68], 1
mov byte [0x481b6c], 1
jmp case.0x45fb87.0
mov byte [0x481b68], 1
mov byte [0x481b70], 1
jmp case.0x45fb87.0
mov byte [0x481b68], 1
mov byte [0x481b70], 1
mov byte [0x481b74], 1
jmp case.0x45fb87.0
mov byte [0x481b78], 1
jmp case.0x45fb87.0
mov byte [0x481b7c], 1
jmp case.0x45fb87.0
mov byte [0x481b80], 1
jmp case.0x45fb87.0
mov byte [0x481b84], 1
jmp case.0x45fb87.0
mov byte [0x481b88], 1
jmp case.0x45fb87.0
mov byte [0x481b8c], 1
jmp case.0x45fb87.0
mov byte [0x481b90], 1
jmp case.0x45fb87.0
mov byte [0x481b94], 1
jmp case.0x45fb87.0
mov byte [0x481b98], 1
jmp case.0x45fb87.0
mov byte [0x481b9c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fcc7
lea eax, [ebp - 4]
call fcn.00404198
ret

Function at 0x461ba4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x461c08
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404408
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461c0f
lea eax, [ebp - 0xc]
call fcn.00404198
ret
Function at 0x462ae8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x462b79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4837e8]
cmp dword [eax], 2
jne 0x462b28
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
jmp 0x462b5b
lea eax, [ebp - 8]
mov edx, esi
call fcn.004049a4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.0040443c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00404674
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462b80
lea eax, [ebp - 8]
call fcn.00404894
lea eax, [ebp - 4]
call fcn.00404198
ret

Function at 0x463018
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00404674
mov edx, eax
mov eax, ebx
call fcn.0046283c
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.00462a90
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x46308a
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404674
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4637f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x463805
add esp, 0xfffffff0
call fcn.004036ac
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00403370
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.004041ec
mov eax, esi
call fcn.00404674
push eax
xor eax, eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateMutexA
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x46385a
mov ecx, dword [0x48367c]
mov dl, 1
mov eax, dword [0x4635a0]
call fcn.0045a4a0
call fcn.00403b14
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
sete al
mov byte [ebx + 4], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x463881
call fcn.00403704
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x464af4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x464b09
add esp, 0xfffffff0
call fcn.004036ac
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00403370
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.00408c88
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x464b37
call fcn.0040ebd0
and si, 0xf
cmp si, 2
jne 0x464b4d
mov esi, 8
mov edi, 1
jmp 0x464b57
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x464b90
mov eax, ebx
call fcn.00464c54
mov ecx, dword [0x483434]
mov dl, 1
mov eax, dword [0x464934]
call fcn.0045a4a0
call fcn.00403b14
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x464bc4
mov eax, ebx
call fcn.00464c54
mov ecx, dword [0x4836ac]
mov dl, 1
mov eax, dword [0x464998]
call fcn.0045a4a0
call fcn.00403b14
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
jne 0x464bf8
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.00464c54
mov ecx, dword [0x4835ac]
mov dl, 1
mov eax, dword [0x464998]
call fcn.0045a4a0
call fcn.00403b14
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0041bcb0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x464c1a
call fcn.00403704
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x464db0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x464dce
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x464dc6
test al, 0x10
je 0x464dca
xor eax, eax
jmp 0x464dd0
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x464f18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x464fce
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404674
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x464fb8
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404800
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404674
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x464fb8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x464fe0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x464fb8
cmp dword [ebp - 8], 0x34
jne 0x464fb8
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464fd5
lea eax, [ebp - 0x10]
call fcn.00404198
ret

Function at 0x465450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 8], 0
jbe 0x46550e
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x46550e
xor eax, eax
push ebp
push 0x465507
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [ebp - 8]
call fcn.0040291c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x10
je 0x4654cc
sub eax, 0x10
je 0x4654cc
sub eax, 0x20
je 0x4654cc
sub eax, 0x40
jne 0x4654df
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46550e
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x467f28
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x467f67
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x467f67
cmp dword [eax + 0x3c], 0
je 0x467f67
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x467f65
cmp dword [esi], 0x4550
je 0x467f67
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x467f6c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x467fab
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x467fab
cmp dword [eax + 0x3c], 0
je 0x467fab
mov esi, dword [eax + 0x3c]
add esi, ebx
push 0x108
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x467fa9
cmp dword [esi], 0x4550
je 0x467fab
xor esi, esi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x472070
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47212e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004090d0
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x472144
call fcn.004044c0
mov eax, dword [ebp - 4]
call fcn.00408dc8
push 0
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00409104
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004044c0
mov eax, dword [ebp - 0xc]
call fcn.00404674
push eax
mov eax, ebx
call fcn.00404674
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4720ea
mov eax, ebx
call fcn.00408fa4
push 0
mov eax, dword [esi + 0x30]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x472113
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x470f3c]
call fcn.004721b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472135
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004041bc
ret