joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424880
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00407a2c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b054
mov edi, eax
cmp edi, 0x104
jbe 0x424827
mov eax, edi
add eax, eax
call fcn.00404560
mov esi, eax
jmp 0x424829
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040b054
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x424864
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42484e
mov eax, esp
cmp esi, eax
je 0x424871
mov eax, esi
call fcn.0040457c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4248ac
cmp bl, 0
je 0x4248a8
cmp bl, 0x41
jl 0x4248a3
cmp bl, 0x5a
jg 0x4248a3
or bl, 0x20
xor al, bl
inc esi
jmp 0x424887
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4247e8

Function at 0x4249d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
push 0xa
push 0x424a44
push ebx
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x424a3b
push eax
push ebx
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x424a3b
xor eax, eax
push ebp
push 0x424a34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424a3b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x424bec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424d38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00407524
mov byte [ebp - 9], 1
mov dl, 1
mov eax, ebx
call fcn.0040a75c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x424c8b
push ebx
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x424c46
push 2
push 0
push ebx
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 4], eax
jmp 0x424c4a
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
jne 0x424c8b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0xa
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x20]
call fcn.00421d4c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x4f0888]
mov dl, 1
mov eax, dword [0x418ea0]
call fcn.00422e80
call fcn.00406bfc
xor edx, edx
push ebp
push 0x424d1b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
push 0x424d48
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x424cfe
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x424cfe
xor eax, eax
push ebp
push 0x424cf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
call fcn.00408140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424cfe
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424d22
cmp byte [ebp - 9], 0
je 0x424d1a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret

Function at 0x425418
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408194
add esp, 0x800
pop ebx
ret
Function at 0x44bed9
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push dword [0x4ebcac]
mov dword [esp + 0x18], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push dword [0x4ebca4]
mov ebx, dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebp, eax
push edi
call ebx
push 0x104
mov esi, eax
push esi
push edi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push esi
call fcn.0044be91
mov esi, dword [0x4ebcdc]
mov edi, eax
pop ecx
cmp dword [esi], 0
je 0x44bf55
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
cmp al, byte [esi]
je 0x44bf40
cmp al, byte [esi + 1]
jne 0x44bffd
push edi
call fcn.0044beba
pop ecx
cmp eax, dword [esi + 4]
je 0x44bf55
cmp eax, dword [esi + 8]
jne 0x44bffd
push dword [0x4ebca4]
and dword [esp + 0x14], 0
push 0x40
call ebx
xor edx, edx
mov ecx, dword [0x4ebcb0]
mov ecx, dword [ecx + edx]
mov dword [edx + eax], ecx
add edx, 4
cmp edx, 0x20
jl 0x44bf66
push eax
push ebp
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x44bffd
mov esi, dword [0x4ebcd8]
lea eax, [esp + 0x10]
push eax
push dword [0x4ebca0]
push 0x6000
push esi
call edi
mov edx, dword [0x4ebcd0]
lea ecx, [esi + 8]
add edx, dword [esp + 0x14]
mov ebx, 0x17fe
mov eax, dword [edx + 4]
sub edx, esi
mov dword [esp + 0x14], eax
mov eax, dword [edx + ecx]
add eax, dword [esp + 0x14]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub ebx, 1
jne 0x44bfbc
mov eax, dword [0x4ebce0]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6000
push esi
call edi
mov eax, dword [0x4ebcc8]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4ebcc8]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x44cdac
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44ce4a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44ce0e
cmp byte [ebx + 0x10], 0
jne 0x44ce0e
cmp byte [ebx + 0x3c], 0
jne 0x44ce0e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44ce2f
lea edx, [ebp - 4]
mov eax, dword [0x4f0b60]
call fcn.0040afc0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43b2a4]
call fcn.00422c7c
call fcn.00406bfc
jmp 0x44ce2f
lea edx, [ebp - 8]
mov eax, dword [0x4f0b60]
call fcn.0040afc0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43b2a4]
call fcn.00422c7c
call fcn.00406bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ce51
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407584
ret
Function at 0x44d74c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44d79a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044cce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44d7b3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44d7bc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0044cce4
dec esi
jne 0x44d7de
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44ef08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f6014
cmp dword [edi], 0
jne 0x44ef84
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f6010]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ed9fc
mov ecx, 2
call fcn.00404780
mov edx, 0x44eee0
lea eax, [esi + 5]
call fcn.0044ef00
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044ef00
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x44ef59
mov dword [0x4f6010], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x455d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x455d52
test eax, edx
je 0x455d55
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x455d15
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x455d3b
add ecx, 4
js 0x455d2b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x455d38
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x455d61
test edx, edx
jne 0x455d08
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x45d170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d214
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.0040826c
push 0
mov eax, dword [ebp - 0x10]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080d8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0040826c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080d8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x45d1fe
lea eax, [ebp - 0x10]
call fcn.00460fe4
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00407904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d21b
lea eax, [ebp - 0x10]
call fcn.00407524
ret

Function at 0x45d25c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x45d276
xor edx, edx
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004080d8
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 0xa]
cmp byte [ebp - 0xa], 0
jne 0x45d2ce
mov eax, dword [ebp - 8]
call fcn.00407524
jmp 0x45d2e7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
cmp byte [ebp - 9], 0
je 0x45d2e7
mov eax, dword [ebp - 8]
call fcn.0045d170
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x45d2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407524
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45d33a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040826c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004080d8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov eax, dword [ebp - 4]
call fcn.00460fe4
pop ecx
pop ecx
pop ebp
ret
Function at 0x45da98
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push 0x45daf8
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45dae7
push 0x45db14
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040c8f8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45dadc
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
mov byte [ebp - 5], 1
jmp 0x45daf0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
jmp 0x45daf0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x45db60
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 0x45dd40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.004621c4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x4ef1c8], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4ef1cc], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4ef1d0], eax
mov eax, dword [0x4f0dec]
cmp dword [eax], 2
sete byte [0x4ee9ad]
push 0x45dd4c
call sub.kernel32.dll_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.00463dd0
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x4ee9ad], 0
jne 0x45dbef
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00464488
test al, al
je 0x45dbef
mov eax, dword [ebp - 0x4c]
mov dword [0x4f65fc], eax
jmp 0x45dbf6
xor eax, eax
mov dword [0x4f65fc], eax
call fcn.0045d82c
and eax, 0x7f
cmp eax, 0x12
ja case.0x45dc07.0
jmp dword [eax*4 + 0x45dc0e]
mov byte [0x4ee9a8], 1
jmp case.0x45dc07.0
mov byte [0x4ee9a9], 1
jmp case.0x45dc07.0
mov byte [0x4ee9aa], 1
jmp case.0x45dc07.0
mov byte [0x4ee9ab], 1
jmp case.0x45dc07.0
mov byte [0x4ee9ac], 1
jmp case.0x45dc07.0
mov byte [0x4ee9ae], 1
mov byte [0x4ee9af], 1
jmp case.0x45dc07.0
mov byte [0x4ee9ae], 1
mov byte [0x4ee9b0], 1
jmp case.0x45dc07.0
mov byte [0x4ee9ae], 1
mov byte [0x4ee9b0], 1
mov byte [0x4ee9b1], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b2], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b3], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b4], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b5], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b6], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b7], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b8], 1
jmp case.0x45dc07.0
mov byte [0x4ee9b9], 1
jmp case.0x45dc07.0
mov byte [0x4ee9ba], 1
jmp case.0x45dc07.0
mov byte [0x4ee9bb], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dd47
lea eax, [ebp - 4]
call fcn.00407524
ret
Function at 0x46098c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4609f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0x14]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 7
call fcn.00408194
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0041c46c
mov word [ebp - 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4609fe
lea eax, [ebp - 0x18]
call fcn.00407524
ret

Function at 0x4621f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 0xc], 0
jbe 0x4622b4
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4622b4
xor eax, eax
push ebp
push 0x4622ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00404780
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
sub eax, 0x10
je 0x462272
sub eax, 0x10
je 0x462272
sub eax, 0x20
je 0x462272
sub eax, 0x40
jne 0x462285
mov eax, dword [ebp - 0xc]
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 0x4622b4
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
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 - 0xc]
sete byte [ebp - 0xd]
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4
Function at 0x4639b4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x4639c6
add esp, 0xfffffff0
call fcn.00405e88
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00405860
movzx edx, word [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0041c844
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
jne 0x4639f9
call fcn.00424d60
mov ax, word [ebp + 8]
and ax, 0xf
cmp ax, 2
jne 0x463a17
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], 1
jmp 0x463a25
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 4
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x463a6b
mov eax, dword [ebp - 4]
call fcn.00463b54
mov ecx, dword [0x4f09d8]
mov dl, 1
mov eax, dword [0x46383c]
call fcn.00452008
call fcn.00406bfc
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x463aa9
mov eax, dword [ebp - 4]
call fcn.00463b54
mov ecx, dword [0x4f0c98]
mov dl, 1
mov eax, dword [0x4638f4]
call fcn.00452008
call fcn.00406bfc
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x463ae8
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
call fcn.00463b54
mov ecx, dword [0x4f0b8c]
mov dl, 1
mov eax, dword [0x4638f4]
call fcn.00452008
call fcn.00406bfc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00444554
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x463b0e
call fcn.00405ee0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x463dc2
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x463db7
test byte [ebp - 0xc], 0x10
je 0x463dbb
xor eax, eax
jmp 0x463dbd
mov al, 1
mov byte [ebp - 5], al
jmp 0x463dc6
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x464488
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46454b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x464535
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.0040826c
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004080d8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x464535
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x46455c
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x464535
cmp dword [ebp - 0x14], 0x34
jne 0x464535
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
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 0x464552
lea eax, [ebp - 0x1c]
call fcn.00407524
ret

Function at 0x4645cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x4645de
add esp, 0xfffffff0
call fcn.00405e88
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00463d90
test al, al
jne 0x46461a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x4f088c]
mov dl, 1
mov eax, dword [0x46298c]
call fcn.00422e80
call fcn.00406bfc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x464651
mov ecx, dword [0x4f09a8]
mov dl, 1
mov eax, dword [0x46298c]
call fcn.00422db0
call fcn.00406bfc
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00407df4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407ddc
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004080d8
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.00424e04
mov eax, dword [ebp - 4]
call fcn.0046500c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4646a8
call fcn.00405ee0
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret