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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ae074]
cmp byte [eax + 0xc], 0
je 0x44b019
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b012
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b254c], 0
jne 0x44af00
push 0x44b020
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44b028
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b254c], eax
cmp dword [0x4a869c], 0
jne 0x44affb
push 0x44b038
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a869c], eax
cmp dword [0x4a869c], 0
je 0x44affb
push 0x44b044
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2550], eax
push 0x44b054
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2554], eax
push 0x44b068
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2558], eax
push 0x44b080
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b255c], eax
push 0x44b098
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2560], eax
push 0x44b0ac
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2564], eax
push 0x44b0c4
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2568], eax
push 0x44b0dc
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b256c], eax
push 0x44b0f8
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2570], eax
push 0x44b104
mov eax, dword [0x4a869c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4b2574], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b019
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x450660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4506b4]
test si, 4
je 0x450675
or bl, 1
test si, 8
je 0x45067f
or bl, 4
test si, 1
je 0x450689
or bl, 8
test si, 2
je 0x450693
or bl, 0x10
test si, 0x10
je 0x45069d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4506ac
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4506b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4506f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4506d2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4506e1
or bl, 4
test esi, 0x20000000
je 0x4506ec
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x457e38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457e4a
add esp, 0xfffffff0
call fcn.00403d2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004224e0
mov eax, dword [0x4adaf8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4581dc
mov eax, dword [0x4adb0c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4581e8
mov eax, ebx
call fcn.004581f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
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, 0x453c8c
push eax
push 0
push 0
mov eax, dword [0x4add50]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42600c]
call fcn.00427788
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42600c]
call fcn.00427788
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42600c]
call fcn.00427788
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00458624
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584f4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584f4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457f87
call fcn.00403d84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4582d8
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 0x458483
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458464
mov dl, 1
mov eax, dword [0x41982c]
call fcn.004039d8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404904
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458453
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.0044b208
test al, al
je 0x458446
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, 0x458494
lea eax, [ebp - 0x254]
call fcn.00409ed0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458446
xor eax, eax
push ebp
push 0x45843f
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 0x4584cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458428
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b74
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 0x458428
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458446
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458349
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041ddb0
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 0x45848a
lea eax, [ebp - 0x260]
call fcn.00404904
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b2584]
cmp byte [eax + 0xad], 0
jne 0x458e6d
cmp dword [0x4b259c], 0
jne 0x458e2e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458db8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b259c], eax
cmp dword [0x4b2598], 0
jne 0x458e49
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b2598], eax
cmp dword [0x4b25a0], 0
jne 0x458e6d
push esp
push 0
push 0
push 0x458d5c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b25a0], eax
pop edx
ret
Function at 0x459040
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459057
add esp, 0xfffffff0
call fcn.00403d2c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004224e0
mov eax, dword [0x4add30]
cmp word [eax + 2], 0
jne 0x45907f
mov eax, dword [0x4add30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045aa70
mov eax, dword [0x4ade5c]
cmp word [eax + 2], 0
jne 0x459099
mov eax, dword [0x4ade5c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ac7c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41927c]
call fcn.004039d8
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 [0x426a44]
call fcn.0042e198
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x459250
mov eax, dword [0x4adbb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042e56c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b33c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4adbb0]
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.0040dc40
test eax, eax
je 0x4591a0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dc74
test eax, eax
je 0x4591b4
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.00404b74
mov byte [ebx + 0xd4], 0
push ebx
push 0x45a650
call fcn.0042365c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4ad9b8]
cmp byte [eax], 0
jne 0x459205
mov eax, ebx
call fcn.00459394
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.0045b518
mov eax, ebx
call fcn.0045c078
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459245
call fcn.00403d84
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459614
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b2584]
cmp dword [eax + 0x30], 0
je 0x4596be
cmp dword [ebx + 0x94], 0
jne 0x4596b8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4595a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4596b8
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 0x45967e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4596b8
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.0041b810
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45968d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a3d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45a40d
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.004049f4
jmp 0x45a41a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404958
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b6fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b76a
mov eax, esi
call fcn.004460c4
test al, al
je 0x45b76a
mov eax, dword [ebx + 0x84]
call fcn.00445dc8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b76a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45b75e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445dc8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e2d8
jmp 0x45b76a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045b538
pop esi
pop ebx
ret
Function at 0x45f084
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45f0b2
mov eax, ebx
call fcn.0045fb38
cmp dword [ebx + 0x40], 0
je 0x45f0ab
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45f123
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45f115
cmp dword [ebx + 8], 0
je 0x45f0d4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45f0e6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45f115
cmp dword [ebx + 8], 0
je 0x45f0c7
cmp eax, 3
je 0x45f0f9
dec eax
jne 0x45f0c7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45f0c7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45f0c7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45f141
cmp dword [ebx + 0x14], 0xcc
je 0x45f141
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045f14c
pop ebx
ret

Function at 0x4705f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
jmp 0x470621
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4706a0
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0046f66c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47066e
mov cx, word [esp]
sub cx, si
jmp 0x470670
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x470657
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x470696
mov cx, word [esp]
sub cx, si
jmp 0x470698
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47067f
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4706fd
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004702f0
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4706e8
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4706fd
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4705fe
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x475b20
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b25cc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x475b42
shr eax, 1
xor eax, 0xedb88320
jmp 0x475b44
shr eax, 1
dec edx
jne 0x475b30
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x475b29
mov byte [0x4b29cc], 1
pop esi
pop ebx
ret

Function at 0x475b60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b29cc], 0
jne 0x475b77
call fcn.00475b20
mov eax, edi
dec eax
test eax, eax
jl 0x475b9f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b25cc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x475b81
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x477fa8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x45d]
movzx ecx, dl
cmp ecx, 6
ja case.0x478042.0
jmp dword [ecx*4 + 0x477fdb]
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x47800d
sub dl, 8
je 0x47801c
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477d38
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477d84
jmp case.0x478042.0
movzx ecx, byte [eax + 0x45c]
cmp ecx, 0x10
ja case.0x478042.0
movzx ecx, byte [ecx + 0x478049]
jmp dword [ecx*4 + 0x47805a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477dd4
jmp case.0x478042.0
cmp dl, 3
jne 0x478087
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477e28
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477de4
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477e6c
jmp case.0x478042.0
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x4780b2
sub dl, 8
je 0x4780be
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477e88
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477eec
jmp case.0x478042.0
movzx edx, byte [eax + 0x45c]
sub dl, 8
je 0x4780dd
sub dl, 8
je 0x4780e9
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477f54
jmp case.0x478042.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x477f7c
mov esi, dword [eax + 0x448]
mov edx, dword [ebx + 0x1c]
dec edx
imul esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0xc], esi
mov eax, dword [eax + 0x450]
mov dword [ebp - 8], eax
mov esi, edx
test esi, esi
jb 0x478179
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00477354
test eax, eax
je 0x478179
mov eax, ebx
call fcn.00478184
mov eax, dword [ebp - 8]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x448]
sub dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x478119
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x478184
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 0x4781b5
dec al
je 0x4781f0
dec al
je 0x478235
dec al
je 0x47829e
jmp 0x478328
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x478328
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 0x4781c5
jmp 0x478328
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x478328
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 0x478200
jmp 0x478328
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x478328
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 0x478264
xor ebp, ebp
jmp 0x478274
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 0x47827d
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 0x478245
jmp 0x478328
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x478328
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 0x4782f7
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.00475ba8
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 0x4782b2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret