joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7768
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 0x4a7915
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4a78f6
mov dl, 1
mov eax, dword [0x4237e4]
call fcn.004293f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.0040634c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a78e5
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.004969a0
test al, al
je 0x4a78d8
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, 0x4a7924
lea eax, [ebp - 0x394]
call fcn.0040ec40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a78d8
xor eax, eax
push ebp
push 0x4a78d1
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 0x4a7994
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a78ba
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040654c
mov edx, dword [ebp - 0x3a0]
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 0x4a78ba
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040654c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a78d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a77db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.004291dc
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 0x4a791c
lea eax, [ebp - 0x3a0]
call fcn.0040633c
ret

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

Disassembly:
push ecx
mov eax, dword [0x5da1b8]
cmp byte [eax + 0xa9], 0
jne 0x4a83c6
cmp dword [0x5da1d0], 0
jne 0x4a8386
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5c7610]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5da1d0], eax
cmp dword [0x5da1cc], 0
jne 0x4a83a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5da1cc], eax
cmp dword [0x5da1d4], 0
jne 0x4a83c6
push esp
push 0
push 0
mov eax, dword [0x5c760c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5da1d4], eax
pop edx
ret
Function at 0x4a8638
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a864f
add esp, 0xfffffff0
call fcn.00404364
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004328c0
mov eax, dword [0x5d434c]
cmp byte [eax], 0
jne 0x4a867c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5d483c]
cmp word [eax + 2], 0
jne 0x4a8696
mov eax, dword [0x5d483c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aa598
mov eax, dword [0x5d4a0c]
cmp word [eax + 2], 0
jne 0x4a86b0
mov eax, dword [0x5d4a0c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004aa7a8
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x43a868]
call fcn.0043c668
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4aac3c
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x43b41c]
call fcn.00444388
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x4a888c
mov eax, dword [0x5d4600]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0044478c
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4aaeec
mov dl, 1
mov eax, dword [0x423074]
call fcn.00403e50
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5d4600]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040e618
test eax, eax
je 0x4a87be
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040e2c8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040e600
test eax, eax
je 0x4a87d6
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 + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040654c
push ebx
push 0x4a9f68
call fcn.0049ec88
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x5d434c]
cmp byte [eax], 0
jne 0x4a8827
mov eax, ebx
call fcn.004a8a00
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004ab114
mov eax, ebx
call fcn.004abcd8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a8884
call fcn.004043bc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8cd4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a8d76
cmp dword [ebx + 0x90], 0
jne 0x4a8d70
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a8c20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4a8d70
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 0x4a8d36
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a8d70
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00425ec0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a8d45
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5da1b8]
cmp dword [eax + 0x170], 0
je 0x4a90f9
test bl, bl
jne 0x4a9047
cmp dword [esi + 0x98], 0
jne 0x4a903c
mov eax, esi
call fcn.004abb28
push eax
push 0x4a8ea0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4a900d
mov eax, dword [0x5da1b8]
cmp byte [eax + 0xcf], 0
je 0x4a900d
mov eax, dword [esi + 0xd4]
call fcn.00407ba4
mov edi, eax
cmp edi, 0
jl 0x4a900d
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a8ff6
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a903c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00425ec0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a901c
inc dword [esi + 0x98]
jmp 0x4a90f9
cmp dword [esi + 0x98], 0
jle 0x4a90f9
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x4a90f9
cmp dword [esi + 0x40], 0
je 0x4a90a4
mov eax, dword [0x5da1b8]
cmp byte [eax + 0xcf], 0
je 0x4a90a4
mov eax, dword [esi + 0xd4]
call fcn.00407ba4
mov edi, eax
cmp edi, 0
jl 0x4a90a4
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a908d
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a90d3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00425ec0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a90b3
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x49e690]
call fcn.00407d64
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a9cb4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4a9d1f
cmp byte [ebx + 0xcf], 0
jne 0x4a9d1f
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.00406488
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a9d0c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a9d2c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040634c
jmp 0x4a9d2c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040634c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ab2e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4ab356
mov eax, esi
call fcn.004911f0
test al, al
je 0x4ab356
mov eax, dword [ebx + 0x80]
call fcn.00490e44
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ab356
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4ab34a
push 0
mov eax, dword [ebx + 0x80]
call fcn.00490e44
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0048835c
jmp 0x4ab356
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004ab134
pop esi
pop ebx
ret

Function at 0x4b3084
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x4b30f3
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x5c7bfc]
mov eax, dword [eax*8 + 0x5c7bf8]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x4b30a8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b3104
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x4b312c
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x5c77f8]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x4b310e
pop esi
pop ebx
ret
Function at 0x4b7670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4b76a1
dec al
je 0x4b76dc
dec al
je 0x4b7721
dec al
je 0x4b778a
jmp 0x4b7814
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4b7814
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4b76b1
jmp 0x4b7814
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4b7814
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4b76ec
jmp 0x4b7814
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4b7814
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4b7750
xor ebp, ebp
jmp 0x4b7760
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4b7769
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4b7731
jmp 0x4b7814
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4b7814
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4b77e3
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004b3130
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4b779e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c41b0
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c4352
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 5], eax
mov byte [esi], 0
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004c40d8
test al, al
je 0x4c421c
mov eax, dword [0x5d482c]
cmp byte [eax], 0
je 0x4c420d
mov ecx, 0x407b
mov edx, 0x4c436c
mov eax, 0x4c43dc
call fcn.0040546c
push 0x4c4420
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4c4337
mov eax, ebx
call fcn.004c3d50
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x4c4337
mov byte [ebp - 0xd], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebp - 0xc], edi
movzx eax, byte [esi]
cmp al, byte [ebp - 0xd]
jne 0x4c42ec
push 0x4c4448
call sub.kernel32.dll_OutputDebugStringW
movzx eax, byte [esi]
mov byte [ebp - 0xd], al
mov byte [esi], 0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0xe9
jne 0x4c4296
mov edi, ebx
add edi, 5
add edi, dword [esi + 1]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x4c4484
call fcn.0040ecc8
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4c44bc
call fcn.00406820
mov eax, dword [ebp - 0x18]
mov ecx, 0x40a2
mov edx, 0x4c436c
call fcn.0040546c
jmp 0x4c4337
mov dword [esi + 5], ebx
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test esi, esi
je 0x4c4337
push 5
push ebx
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 0x4c4359
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406344
ret
Function at 0x4c44f8
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x4c45a4
test ebx, ebx
je 0x4c45a4
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004c40d8
test al, al
je 0x4c454f
mov eax, dword [0x5d482c]
cmp byte [eax], 0
je 0x4c4543
mov ecx, 0x40c1
mov edx, 0x4c45b8
mov eax, 0x4c4628
call fcn.0040546c
push 0x4c466c
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4c45a4
mov eax, ebx
call fcn.004c3d50
mov ebx, eax
test ebx, ebx
je 0x4c45a4
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov edi, eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test edi, edi
je 0x4c45a1
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [esi], 0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4c9f50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c9fbf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x4c9fd8
call fcn.0040ecc8
mov eax, dword [ebp - 4]
call fcn.004063d8
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9fc6
lea eax, [ebp - 4]
call fcn.0040633c
ret

Function at 0x4ca134
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca191
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4ca1a8
call fcn.0040ecc8
mov eax, dword [ebp - 4]
call fcn.004063d8
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca198
lea eax, [ebp - 4]
call fcn.0040633c
ret
Function at 0x4ca258
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4ca4cd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5da1f8], 0
je 0x4ca4b2
mov ebx, dword [0x5da1f8]
call fcn.0040441c
mov eax, ebx
call fcn.0040473c
or edx, 0xffffffff
call fcn.004044c8
xor eax, eax
push ebp
push 0x4ca4ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5da1f8]
mov edx, dword [eax + 0x30]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4ca3c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5da1f8]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x5da1f8]
mov edx, dword [0x4aec0c]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x4bfb3c
mov eax, dword [0x5da1f8]
call fcn.004c8ee8
mov eax, dword [0x5da1f8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x5da1f8]
mov ebx, dword [eax + 0x38]
cmp byte [0x5da240], 0
je 0x4ca362
test ebx, ebx
je 0x4ca362
xor edi, edi
test ebx, ebx
je 0x4ca362
cmp dword [ebx + 4], 0xfffffffe
jne 0x4ca35b
inc edi
push 0x4ca4e8
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040d120
push dword [ebp - 0x14]
push 0x4ca528
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406904
mov eax, dword [ebp - 0x10]
call fcn.004063d8
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4ca320
mov eax, dword [0x5da1f8]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x4ca399
mov esi, dword [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], 0xfffffffe
mov dword [ebx + 8], 0xe6
mov edx, dword [ebx + 0xc]
mov ecx, ebx
mov eax, dword [0x5da1f8]
call fcn.004c91a4
mov ebx, esi
test ebx, ebx
jne 0x4ca36e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca3c9
mov eax, dword [0x5da1f8]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x5da1f8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca4d4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406344
ret