joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465748
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5841a8]
cmp byte [eax + 0xc], 0
je 0x4658b5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4658ae
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x58bedc], 0
jne 0x46579c
push 0x4658bc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4658c4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bedc], eax
cmp dword [0x571070], 0
jne 0x465897
push 0x4658d4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x571070], eax
cmp dword [0x571070], 0
je 0x465897
push 0x4658e0
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bee0], eax
push 0x4658f0
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bee4], eax
push 0x465904
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bee8], eax
push 0x46591c
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58beec], eax
push 0x465934
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bef0], eax
push 0x465948
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bef4], eax
push 0x465960
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bef8], eax
push 0x465978
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58befc], eax
push 0x465994
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bf00], eax
push 0x4659a0
mov eax, dword [0x571070]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x58bf04], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4658b5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x46ba1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x46ba3d
test edi, 0x40000
je 0x46ba57
test bl, bl
jne 0x46bad8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x46bad8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x46ba8a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x46ba9f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x46baae
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x46babf
cmp byte [esp + 2], 0
je 0x46bad8
cmp byte [esp + 2], 0
je 0x46bad0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x46bad8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46bd7c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x46bda2
mov eax, esp
push eax
push 0x46bd44
call sub.user32.dll_EnumWindows
jmp 0x46bdb5
mov eax, esp
push eax
push 0x46bd24
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x46be5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46beb0]
test si, 4
je 0x46be71
or bl, 1
test si, 8
je 0x46be7b
or bl, 4
test si, 1
je 0x46be85
or bl, 8
test si, 2
je 0x46be8f
or bl, 0x10
test si, 0x10
je 0x46be99
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46bea8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46beb4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46bef0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46bece
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46bedd
or bl, 4
test esi, 0x20000000
je 0x46bee8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46bf40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0046bef4
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x473f98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x473faa
add esp, 0xfffffff0
call fcn.004049c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004258a0
mov eax, dword [0x583694]
mov dword [eax + 4], ebx
mov dword [eax], 0x47433c
mov eax, dword [0x5836b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x474348
mov eax, ebx
call fcn.00474354
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46f7e0
push eax
push 0
push 0
mov eax, dword [0x583b1c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42b80c]
call fcn.0042d100
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42b80c]
call fcn.0042d100
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42b80c]
call fcn.0042d100
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004747cc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47469c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47469c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47469c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4740e7
call fcn.00404a20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x474480
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 0x47462b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47460c
mov dl, 1
mov eax, dword [0x41c054]
call fcn.00404674
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004055e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4745fb
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.00465aa4
test al, al
je 0x4745ee
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, 0x47463c
lea eax, [ebp - 0x254]
call fcn.0040e710
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4745ee
xor eax, eax
push ebp
push 0x4745e7
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 0x474674
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4745d0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405854
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 0x4745d0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4745ee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4744f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00420fac
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 0x474632
lea eax, [ebp - 0x260]
call fcn.004055e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x58bf20]
cmp byte [eax + 0xad], 0
jne 0x475015
cmp dword [0x58bf3c], 0
jne 0x474fd6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x474f60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x58bf3c], eax
cmp dword [0x58bf38], 0
jne 0x474ff1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x58bf38], eax
cmp dword [0x58bf40], 0
jne 0x475015
push esp
push 0
push 0
push 0x474f04
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x58bf40], eax
pop edx
ret
Function at 0x475218
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x47522f
add esp, 0xfffffff0
call fcn.004049c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004258a0
mov eax, dword [0x583ae0]
cmp word [eax + 2], 0
jne 0x475257
mov eax, dword [0x583ae0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00476f20
mov eax, dword [0x583d54]
cmp word [eax + 2], 0
jne 0x475271
mov eax, dword [0x583d54]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047712c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41b9e8]
call fcn.00404674
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 [0x42c3bc]
call fcn.00434880
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x475428
mov eax, dword [0x583800]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00434c54
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x477800
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x583800]
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.00412a5c
test eax, eax
je 0x475378
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040dcf0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00412a90
test eax, eax
je 0x47538c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405854
mov byte [ebx + 0xd4], 0
push ebx
push 0x476994
call fcn.00426a1c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x583360]
cmp byte [eax], 0
jne 0x4753dd
mov eax, ebx
call fcn.0047556c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00477a14
mov eax, ebx
call fcn.00478578
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47541d
call fcn.00404a20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4757ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x47588b
cmp dword [ebx + 0x94], 0
jne 0x475885
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x475774
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475885
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 0x47584b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475885
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.0041e2b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47585a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x58bf20]
cmp dword [eax + 0x30], 0
je 0x475c01
test bl, bl
jne 0x475b52
cmp dword [esi + 0x9c], 0
jne 0x475b47
mov eax, esi
call fcn.004783f4
push eax
push 0x4759d0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x475b18
mov eax, dword [0x58bf20]
call fcn.00478ad4
test al, al
je 0x475b18
mov eax, dword [0x58bf44]
call fcn.00406a34
mov edi, eax
cmp edi, 0
jl 0x475b18
push 0
mov eax, dword [0x58bf44]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x475b02
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x475b47
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e2b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x475b27
inc dword [esi + 0x9c]
jmp 0x475c01
cmp dword [esi + 0x9c], 0
jle 0x475c01
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x475c01
cmp dword [esi + 0x44], 0
je 0x475bad
mov eax, dword [0x58bf20]
call fcn.00478ad4
test al, al
je 0x475bad
mov eax, dword [0x58bf44]
call fcn.00406a34
mov edi, eax
cmp edi, 0
jl 0x475bad
push 5
mov eax, dword [0x58bf44]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x475b97
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x475bdc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041e2b4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x475bbc
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x58bf44
mov ecx, 1
mov edx, dword [0x4759b0]
call fcn.00406be8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4766e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x476752
mov eax, ebx
call fcn.00478ad4
test al, al
jne 0x476752
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.004056d4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x47673f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47675f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405638
jmp 0x47675f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405638
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x477bf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477c66
mov eax, esi
call fcn.00460690
test al, al
je 0x477c66
mov eax, dword [ebx + 0x84]
call fcn.004602f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477c66
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x477c5a
push 0
mov eax, dword [ebx + 0x84]
call fcn.004602f0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00458080
jmp 0x477c66
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00477a34
pop esi
pop ebx
ret

Function at 0x479420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x479444
cmp eax, 0
jbe 0x47954d
jmp 0x47944a
jle 0x47954d
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.00403e38
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x40
jne 0x47954d
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x47954d
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x47954d
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 4
jne 0x47954d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x47954d
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x14
jne 0x47954d
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x47954d
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x47954d
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x479b9c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xf6]
test ax, ax
jbe 0x479c7c
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x479c7a
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x479c12
test eax, 0x40000000
je 0x479bfe
test eax, 0x80000000
je 0x479bf9
or edx, 0x40
jmp 0x479c39
or edx, 0x20
jmp 0x479c39
test eax, 0x80000000
je 0x479c0d
or edx, 0x80
jmp 0x479c39
or edx, 0x10
jmp 0x479c39
test eax, 0x40000000
je 0x479c2a
test eax, 0x80000000
je 0x479c25
or edx, 4
jmp 0x479c39
or edx, 2
jmp 0x479c39
test eax, 0x80000000
je 0x479c36
or edx, 8
jmp 0x479c39
or edx, 1
test eax, 0x4000000
je 0x479c46
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x479bcc
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47dc50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], edx
movzx ebx, word [0x574138]
cmp dword [esp], 0x20
jge 0x47dc94
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x47dcd7
inc edx
xor esi, esi
movzx edi, bx
shr edi, 8
movzx edi, word [edi*2 + 0x573f38]
shl ebx, 8
xor di, bx
movzx ebx, byte [eax + esi]
xor di, bx
mov ebx, edi
inc esi
dec edx
jne 0x47dc71
jmp 0x47dcd7
mov edx, dword [esp]
test edx, edx
jns 0x47dc9e
add edx, 0x1f
sar edx, 5
inc edx
xor esi, esi
mov edi, dword [esp]
dec edi
mov dword [esp + 4], edi
cmp esi, dword [esp + 4]
jge 0x47dcd7
movzx edi, bx
shr edi, 8
movzx edi, word [edi*2 + 0x573f38]
shl ebx, 8
xor di, bx
movzx ebx, byte [eax + esi]
xor di, bx
mov ebx, edi
add esi, edx
cmp esi, dword [esp + 4]
jl 0x47dcb2
mov esi, 2
movzx eax, bx
shr eax, 8
movzx eax, word [eax*2 + 0x573f38]
shl ebx, 8
xor ax, bx
movzx edx, cx
shr edx, 8
xor ax, dx
mov ebx, eax
shl cx, 8
dec esi
jne 0x47dcdc
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47dd0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, dword [0x57453c]
cmp dword [esp], 0x20
jge 0x47dd4b
mov edx, dword [esp]
dec edx
test edx, edx
jl 0x47dd8a
inc edx
xor esi, esi
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x57413c]
shl ebx, 8
xor edi, ebx
movzx ebx, byte [eax + esi]
xor edi, ebx
mov ebx, edi
inc esi
dec edx
jne 0x47dd2c
jmp 0x47dd8a
mov edx, dword [esp]
test edx, edx
jns 0x47dd55
add edx, 0x1f
sar edx, 5
inc edx
xor esi, esi
mov edi, dword [esp]
dec edi
mov dword [esp + 4], edi
cmp esi, dword [esp + 4]
jge 0x47dd8a
mov edi, ebx
shr edi, 0x18
mov edi, dword [edi*4 + 0x57413c]
shl ebx, 8
xor edi, ebx
movzx ebx, byte [eax + esi]
xor edi, ebx
mov ebx, edi
add esi, edx
cmp esi, dword [esp + 4]
jl 0x47dd69
mov esi, 4
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x57413c]
shl ebx, 8
xor eax, ebx
mov edx, ecx
shr edx, 0x18
xor eax, edx
mov ebx, eax
shl ecx, 8
dec esi
jne 0x47dd8f
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47ec48
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403e38
ret
Function at 0x47ee28
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a64
xor eax, eax
push ebp
push 0x47ef76
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0047ec48
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405a74
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x47ef55
xor eax, eax
push ebp
push 0x47ef4e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47ef37
xor eax, eax
push ebp
push 0x47ef30
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47ef19
xor eax, eax
push ebp
push 0x47ef12
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0047ec80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef19
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef37
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef55
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0047ed04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef7d
lea eax, [ebp - 4]
call fcn.004055e4
ret

Function at 0x47f184
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x47f1a5
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x47f192
pop edi
pop esi
pop ebx
ret