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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b66c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4b66a2
mov dl, 1
mov eax, dword [0x42f5e4]
call fcn.0043b514
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.004077d0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4b6691
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.00498c64
test al, al
je 0x4b6684
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4b66d0
lea eax, [ebp - 0x394]
call fcn.00416500
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4b6684
xor eax, eax
push ebp
push 0x4b667d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4b6740
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4b6666
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4b6666
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6684
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4b6587
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0043b450
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b66c8
lea eax, [ebp - 0x3a0]
call fcn.004077c0
ret

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

Disassembly:
push ecx
mov eax, dword [0x5492c0]
cmp byte [eax + 0xad], 0
jne 0x4b7292
cmp dword [0x5492d8], 0
jne 0x4b7252
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x540020]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5492d8], eax
cmp dword [0x5492d4], 0
jne 0x4b726d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5492d4], eax
cmp dword [0x5492dc], 0
jne 0x4b7292
push esp
push 0
push 0
mov eax, dword [0x54001c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5492dc], eax
pop edx
ret
Function at 0x4b75b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4b75cf
add esp, 0xfffffff0
call fcn.00405c98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00444d4c
mov eax, dword [0x542bf4]
cmp byte [eax], 0
jne 0x4b75fc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5430c4]
cmp word [eax + 2], 0
jne 0x4b7616
mov eax, dword [0x5430c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b96b0
mov eax, dword [0x54325c]
cmp word [eax + 2], 0
jne 0x4b7630
mov eax, dword [0x54325c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b98c0
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44fe84]
call fcn.004563c0
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4b9e70
mov dl, 1
mov eax, dword [0x42cee4]
call fcn.00405734
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42cee4]
call fcn.00405734
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x454584]
call fcn.0045fc38
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4b7810
mov eax, dword [0x542ee0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004600cc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ba158
mov dl, 1
mov eax, dword [0x42cee4]
call fcn.00405734
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x542ee0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00416310
test eax, eax
je 0x4b7741
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00415f40
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004162f4
test eax, eax
je 0x4b7759
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004079e0
push ebx
push 0x4b9080
call fcn.004ad2c8
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x542bf4]
cmp byte [eax], 0
jne 0x4b77aa
mov eax, ebx
call fcn.004b7984
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004ba384
mov eax, ebx
call fcn.004bafb8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4b7807
call fcn.00405cf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7c58
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b7cfa
cmp dword [ebx + 0x94], 0
jne 0x4b7cf4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b7ba4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b7cf4
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_GetWindowLongW
test al, 8
je 0x4b7cba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b7cf4
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.00437df0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b7cc9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b7f18
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5492c0]
cmp dword [eax + 0x170], 0
je 0x4b807d
test bl, bl
jne 0x4b7fcb
cmp dword [esi + 0x9c], 0
jne 0x4b7fc0
mov eax, esi
call fcn.004bae08
push eax
push 0x4b7e24
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4b7f91
mov eax, dword [0x5492c0]
cmp byte [eax + 0xd3], 0
je 0x4b7f91
mov eax, dword [esi + 0xd8]
call fcn.004090c4
mov edi, eax
cmp edi, 0
jl 0x4b7f91
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b7f7a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b7fc0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00437df0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b7fa0
inc dword [esi + 0x9c]
jmp 0x4b807d
cmp dword [esi + 0x9c], 0
jle 0x4b807d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4b807d
cmp dword [esi + 0x44], 0
je 0x4b8028
mov eax, dword [0x5492c0]
cmp byte [eax + 0xd3], 0
je 0x4b8028
mov eax, dword [esi + 0xd8]
call fcn.004090c4
mov edi, eax
cmp edi, 0
jl 0x4b8028
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b8011
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b8057
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00437df0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b8037
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4ab1a0]
call fcn.00409284
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4b8ccc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b8d37
cmp byte [ebx + 0xd3], 0
jne 0x4b8d37
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040790c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b8d24
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b8d44
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004077d0
jmp 0x4b8d44
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004077d0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ba56c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ba5da
mov eax, esi
call fcn.00492c74
test al, al
je 0x4ba5da
mov eax, dword [ebx + 0x84]
call fcn.004928f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ba5da
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4ba5ce
push 0
mov eax, dword [ebx + 0x84]
call fcn.004928f4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00489890
jmp 0x4ba5da
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ba3a4
pop esi
pop ebx
ret

Function at 0x4be594
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
or eax, 0xffffffff
cmp dword [ebx + 8], 0xffffffff
je 0x4be5c4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_GetFileSizeEx
test al, al
je 0x4be5bd
cmp dword [ebp - 4], 0
je 0x4be5c1
xor eax, eax
jmp 0x4be5c4
mov eax, dword [ebp - 8]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4bef54
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406a94
mov esi, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bef86
sub eax, 4
mov eax, dword [eax]
test ax, ax
jbe 0x4befd1
mov word [ebp - 0xa], ax
mov bx, 1
mov eax, dword [ebp - 8]
call fcn.004070d8
movzx edi, bx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
movzx edx, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [ebp - 0xa]
jne 0x4bef93
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf364
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.00406a94
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4bf38d
sub eax, 4
mov eax, dword [eax]
test ax, ax
jbe 0x4bf3dd
mov word [ebp - 2], ax
mov bx, 1
mov eax, esi
call fcn.004070d8
movzx edx, bx
lea eax, [eax + edx - 1]
push eax
movzx eax, bx
mov edx, dword [esi]
movzx eax, byte [edx + eax - 1]
movzx edx, di
shr edx, 8
xor al, dl
pop edx
mov byte [edx], al
movzx eax, bx
mov edx, dword [esi]
movzx eax, byte [edx + eax - 1]
add di, ax
imul ax, di, 0xce6d
add ax, 0x58bf
mov edi, eax
inc ebx
dec word [ebp - 2]
jne 0x4bf39a
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c3d5c
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 0x4c3df2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x54358c]
cmp dword [eax], 2
jne 0x4c3d9c
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_1
mov ebx, eax
jmp 0x4c3dd4
lea eax, [ebp - 8]
mov edx, esi
call fcn.00407500
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00406de8
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.00407060
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3df9
lea eax, [ebp - 8]
call fcn.0040739c
lea eax, [ebp - 4]
call fcn.00406a40
ret

Function at 0x4c4224
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.0040785c
mov edx, eax
mov eax, ebx
call fcn.004c3bc8
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.004c3ca4
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x4c4296
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.0040785c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_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 0x4c5244
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40e384]
call fcn.004084c0
xor eax, eax
push ebp
push 0x4c538e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x540408], 0
jne 0x4c5298
mov ecx, dword [0x542c34]
mov dl, 1
mov eax, dword [0x40f750]
call fcn.0041ae48
call fcn.0040623c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404d7c
mov eax, ebx
call fcn.00407584
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4c539c
lea edi, [ebp - 0x34]
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 esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040a6f0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4c52df
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4c5334
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4c532d
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00407a48
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.004079e0
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004147e8
test eax, eax
jne 0x4c532d
mov ebx, 0x15
jmp 0x4c5339
mov ebx, 0x10
jmp 0x4c5339
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x540408]
call fcn.004c50b0
mov eax, dword [ebp - 4]
call fcn.004c50b0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5395
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004077c8
lea eax, [ebp - 0xc]
mov edx, dword [0x40e384]
call fcn.00408598
ret
Function at 0x4c7150
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4c7165
add esp, 0xfffffff0
call fcn.00405c98
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.00405734
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.00415538
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x4c7193
call fcn.0041dbf8
and si, 0xf
cmp si, 2
jne 0x4c71a9
mov esi, 8
mov edi, 1
jmp 0x4c71b3
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_CreateFileMappingW
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4c71ec
mov eax, ebx
call fcn.004c72b0
mov ecx, dword [0x543054]
mov dl, 1
mov eax, dword [0x4c6e1c]
call fcn.004c1134
call fcn.0040623c
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 0x4c7220
mov eax, ebx
call fcn.004c72b0
mov ecx, dword [0x5433e0]
mov dl, 1
mov eax, dword [0x4c6ecc]
call fcn.004c1134
call fcn.0040623c
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0xffffffff
jne 0x4c7254
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.004c72b0
mov ecx, dword [0x543284]
mov dl, 1
mov eax, dword [0x4c6ecc]
call fcn.004c1134
call fcn.0040623c
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0043c178
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c7276
call fcn.00405cf0
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 0x4c7540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x4c755e
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4c7556
test al, 0x10
je 0x4c755a
xor eax, eax
jmp 0x4c7560
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x4c7be8
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 - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c7c9e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040785c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x4c7c88
lea eax, [ebp - 4]
mov edx, edi
call fcn.00407b5c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040785c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4c7c88
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c7cb0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c7c88
cmp dword [ebp - 0xc], 0x34
jne 0x4c7c88
mov bl, 1
mov eax, dword [ebp - 0x14]
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 0x4c7ca5
lea eax, [ebp - 4]
call fcn.004077c0
ret

Function at 0x4c7d18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x4c7d2d
add esp, 0xfffffff0
call fcn.00405c98
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, edi
call fcn.004c7540
test al, al
jne 0x4c7d63
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x542eb4]
mov dl, 1
mov eax, dword [0x4c6144]
call fcn.0041af18
call fcn.0040623c
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.0040785c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x4c7d96
mov ecx, dword [0x543018]
mov dl, 1
mov eax, dword [0x4c6144]
call fcn.0041ae48
call fcn.0040623c
lea eax, [ebx + 4]
xor ecx, ecx
mov edx, esi
call fcn.004072d4
mov eax, dword [ebx + 4]
call fcn.00407060
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.0040785c
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.0041dc9c
mov eax, ebx
call fcn.004c8590
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c7de0
call fcn.00405cf0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9974
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 0x4c9a32
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 0x4c9a32
xor eax, eax
push ebp
push 0x4c9a2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [ebp - 8]
call fcn.0040445c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x10
je 0x4c99f0
sub eax, 0x10
je 0x4c99f0
sub eax, 0x20
je 0x4c99f0
sub eax, 0x40
jne 0x4c9a03
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 0x4c9a32
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 0x4ce244
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
xor eax, eax
mov dword [ebp - 0x120], eax
xor eax, eax
push ebp
push 0x4ce302
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x54358c]
cmp dword [eax], 2
jne 0x4ce2aa
mov eax, dword [0x542ee8]
cmp dword [eax], 5
jl 0x4ce2aa
lea eax, [ebp - 0x11c]
mov edx, 0x11c
call fcn.004c9964
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x4ce2e9
movzx ebx, word [ebp - 8]
jmp 0x4ce2e9
push 0
mov ecx, 0x4ce31c
mov edx, 0x4ce340
mov eax, 0x80000002
call fcn.004c43c8
mov ebx, eax
lea ecx, [ebp - 0x120]
mov edx, 4
mov eax, ebx
call fcn.00415114
mov eax, dword [ebp - 0x120]
call fcn.0041516c
mov ecx, 0x64
cdq
idiv ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce309
lea eax, [ebp - 0x120]
call fcn.004077c0
ret