joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4824d4
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 0x4824fa
mov eax, esp
push eax
push 0x48249c
call sub.user32.dll_EnumWindows
jmp 0x48250d
mov eax, esp
push eax
push 0x48247c
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 0x4825d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x482624]
test si, 4
je 0x4825e5
or bl, 1
test si, 8
je 0x4825ef
or bl, 4
test si, 1
je 0x4825f9
or bl, 8
test si, 2
je 0x482603
or bl, 0x10
test si, 0x10
je 0x48260d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x48261c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x482628
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x482664]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x482642
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x482651
or bl, 4
test esi, 0x20000000
je 0x48265c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x48aa8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x48aa9e
add esp, 0xfffffff0
call fcn.004042a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00430cd8
mov eax, dword [0x55c434]
mov dword [eax + 4], ebx
mov dword [eax], 0x48aea0
mov eax, dword [0x55c440]
mov dword [eax + 4], ebx
mov dword [eax], 0x48aeac
mov eax, ebx
call fcn.0048aeb8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x74], 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, 0x485dec
push eax
push 0
push 0
mov eax, dword [0x55c7d8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4355d8]
call fcn.004373d8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4355d8]
call fcn.004373d8
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4355d8]
call fcn.004373d8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4355d8]
call fcn.004373d8
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.0048b44c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b2d4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b2d4
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b2d4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48b2d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48abf1
call fcn.004042f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48b074
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 0x48b221
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48b202
mov dl, 1
mov eax, dword [0x4231e0]
call fcn.00428c28
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.0040627c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48b1f1
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.0047ac48
test al, al
je 0x48b1e4
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, 0x48b230
lea eax, [ebp - 0x394]
call fcn.0040eaec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x48b1e4
xor eax, eax
push ebp
push 0x48b1dd
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 0x48b2a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x48b1c6
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040647c
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 0x48b1c6
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040647c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b1e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48b0e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00428a14
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 0x48b228
lea eax, [ebp - 0x3a0]
call fcn.0040626c
ret

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

Disassembly:
push ecx
mov eax, dword [0x5623ac]
cmp byte [eax + 0xa9], 0
jne 0x48bcd2
cmp dword [0x5623c4], 0
jne 0x48bc92
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5557a8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5623c4], eax
cmp dword [0x5623c0], 0
jne 0x48bcad
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5623c0], eax
cmp dword [0x5623c8], 0
jne 0x48bcd2
push esp
push 0
push 0
mov eax, dword [0x5557a4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5623c8], eax
pop edx
ret
Function at 0x48bee8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x48beff
add esp, 0xfffffff0
call fcn.004042a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00430cd8
mov eax, dword [0x55c230]
cmp byte [eax], 0
jne 0x48bf2c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x55c79c]
cmp word [eax + 2], 0
jne 0x48bf46
mov eax, dword [0x55c79c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048dbc0
mov eax, dword [0x55c990]
cmp word [eax + 2], 0
jne 0x48bf60
mov eax, dword [0x55c990]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048ddd0
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4355d8]
call fcn.004373d8
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x48e254
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
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 [0x43618c]
call fcn.0043eca8
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x48c13c
mov eax, dword [0x55c534]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0043f0ac
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48e504
mov dl, 1
mov eax, dword [0x422adc]
call fcn.00403d8c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x55c534]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040e848
test eax, eax
je 0x48c06e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040e4f8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040e830
test eax, eax
je 0x48c086
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.0040647c
push ebx
push 0x48d818
call fcn.004825b4
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x55c230]
cmp byte [eax], 0
jne 0x48c0d7
mov eax, ebx
call fcn.0048c2b0
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.0048e72c
mov eax, ebx
call fcn.0048f2f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48c134
call fcn.004042f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c584
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x48c626
cmp dword [ebx + 0x90], 0
jne 0x48c620
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48c4d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x48c620
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 0x48c5e6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48c620
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.00425840
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48c5f5
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5623ac]
cmp dword [eax + 0x170], 0
je 0x48c9a9
test bl, bl
jne 0x48c8f7
cmp dword [esi + 0x98], 0
jne 0x48c8ec
mov eax, esi
call fcn.0048f140
push eax
push 0x48c750
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x48c8bd
mov eax, dword [0x5623ac]
cmp byte [eax + 0xcf], 0
je 0x48c8bd
mov eax, dword [esi + 0xd4]
call fcn.00407b50
mov edi, eax
cmp edi, 0
jl 0x48c8bd
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 0x48c8a6
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48c8ec
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00425840
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x48c8cc
inc dword [esi + 0x98]
jmp 0x48c9a9
cmp dword [esi + 0x98], 0
jle 0x48c9a9
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x48c9a9
cmp dword [esi + 0x40], 0
je 0x48c954
mov eax, dword [0x5623ac]
cmp byte [eax + 0xcf], 0
je 0x48c954
mov eax, dword [esi + 0xd4]
call fcn.00407b50
mov edi, eax
cmp edi, 0
jl 0x48c954
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 0x48c93d
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48c983
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00425840
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x48c963
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 [0x481fbc]
call fcn.00407d10
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x48d564
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 0x48d5cf
cmp byte [ebx + 0xcf], 0
jne 0x48d5cf
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.004063b8
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x48d5bc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x48d5dc
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040627c
jmp 0x48d5dc
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040627c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x48e900
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x48e96e
mov eax, esi
call fcn.00475544
test al, al
je 0x48e96e
mov eax, dword [ebx + 0x80]
call fcn.00475198
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48e96e
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x48e962
push 0
mov eax, dword [ebx + 0x80]
call fcn.00475198
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0046c6e4
jmp 0x48e96e
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.0048e74c
pop esi
pop ebx
ret

Function at 0x493580
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.0040367c
ret

Function at 0x49a8d8
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 0x49a947
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 + 0x555e28]
mov eax, dword [eax*8 + 0x555e24]
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 0x49a8fc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x49a980
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x555a24]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x49a962
pop esi
pop ebx
ret
Function at 0x49eec4
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 0x49eef5
dec al
je 0x49ef30
dec al
je 0x49ef75
dec al
je 0x49efde
jmp 0x49f068
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x49f068
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 0x49ef05
jmp 0x49f068
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49f068
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 0x49ef40
jmp 0x49f068
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49f068
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 0x49efa4
xor ebp, ebp
jmp 0x49efb4
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 0x49efbd
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 0x49ef85
jmp 0x49f068
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49f068
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 0x49f037
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.0049a984
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 0x49eff2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4abad0
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 0x4abc72
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.004ab9f8
test al, al
je 0x4abb3c
mov eax, dword [0x55c788]
cmp byte [eax], 0
je 0x4abb2d
mov ecx, 0x40a3
mov edx, 0x4abc8c
mov eax, 0x4abd08
call fcn.00405428
push 0x4abd4c
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4abc57
mov eax, ebx
call fcn.004ab670
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 0x4abc57
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 0x4abc0c
push 0x4abd74
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 0x4abbb6
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, 0x4abdb0
call fcn.0040eb74
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4abde8
call fcn.00406750
mov eax, dword [ebp - 0x18]
mov ecx, 0x40ca
mov edx, 0x4abc8c
call fcn.00405428
jmp 0x4abc57
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 0x4abc57
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 0x4abc79
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406274
ret
Function at 0x4abe24
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 0x4abed0
test ebx, ebx
je 0x4abed0
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.004ab9f8
test al, al
je 0x4abe7b
mov eax, dword [0x55c788]
cmp byte [eax], 0
je 0x4abe6f
mov ecx, 0x40e9
mov edx, 0x4abee4
mov eax, 0x4abf60
call fcn.00405428
push 0x4abfa4
call sub.kernel32.dll_OutputDebugStringW
jmp 0x4abed0
mov eax, ebx
call fcn.004ab670
mov ebx, eax
test ebx, ebx
je 0x4abed0
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 0x4abecd
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 0x4b18a4
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 0x4b1913
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, 0x4b192c
call fcn.0040eb74
mov eax, dword [ebp - 4]
call fcn.00406308
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b191a
lea eax, [ebp - 4]
call fcn.0040626c
ret

Function at 0x4b1a48
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 0x4b1aa5
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, 0x4b1abc
call fcn.0040eb74
mov eax, dword [ebp - 4]
call fcn.00406308
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1aac
lea eax, [ebp - 4]
call fcn.0040626c
ret