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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [0x4a8d20]
cmp byte [eax + 0xc], 0
je 0x444d2e
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x444d27
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a9b58], 0
jne 0x444c15
push 0x444d34
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 4], eax
push 0x444d3c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b58], eax
cmp dword [0x48ab2c], 0
jne 0x444d10
push 0x444d4c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48ab2c], eax
cmp dword [0x48ab2c], 0
je 0x444d10
push 0x444d58
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b5c], eax
push 0x444d68
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b60], eax
push 0x444d7c
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b64], eax
push 0x444d94
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b68], eax
push 0x444dac
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b6c], eax
push 0x444dc0
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b70], eax
push 0x444dd8
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b74], eax
push 0x444df0
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b78], eax
push 0x444e0c
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b7c], eax
push 0x444e18
mov eax, dword [0x48ab2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a9b80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444d2e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ecx
pop ecx
pop ebp
ret

Function at 0x4496cc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
mov eax, dword [ebp - 8]
call fcn.004049e8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x449725
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404c58
mov esp, ebp
pop ebp
ret
Function at 0x452304
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov word [ebp - 2], ax
mov al, byte [0x45235c]
mov byte [ebp - 3], al
test byte [ebp - 2], 4
je 0x45231e
or byte [ebp - 3], 1
test byte [ebp - 2], 8
je 0x452328
or byte [ebp - 3], 4
test byte [ebp - 2], 1
je 0x452332
or byte [ebp - 3], 8
test byte [ebp - 2], 2
je 0x45233c
or byte [ebp - 3], 0x10
test byte [ebp - 2], 0x10
je 0x452346
or byte [ebp - 3], 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452356
or byte [ebp - 3], 2
mov al, byte [ebp - 3]
pop ecx
pop ebp
ret

Function at 0x452360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x4523a4]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452381
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x452391
or byte [ebp - 5], 4
test byte [ebp - 1], 0x20
je 0x45239b
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x45a314
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
test dl, dl
je 0x45a326
add esp, 0xfffffff0
call fcn.00403f74
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004210e4
mov eax, dword [0x4a8894]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x45a884
mov eax, dword [0x4a88a0]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov dword [eax], 0x45a8a4
mov eax, dword [ebp - 4]
call fcn.0045a8c4
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov dl, 1
mov eax, dword [0x417ea4]
call fcn.00403c24
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
mov dl, 1
mov eax, dword [0x417ea4]
call fcn.00403c24
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], eax
mov dl, 1
mov eax, dword [0x417ea4]
call fcn.00403c24
mov edx, dword [ebp - 4]
mov dword [edx + 0x54], eax
mov dl, 1
mov eax, dword [0x417ea4]
call fcn.00403c24
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov dl, 1
mov eax, dword [0x417ea4]
call fcn.00403c24
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x10], eax
push 0x5a
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_GetDeviceCaps
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, 0x455cd4
push eax
push 0
push 0
mov eax, dword [0x4a8a78]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4232bc]
call fcn.004248b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x4232bc]
call fcn.004248b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
mov dl, 1
mov eax, dword [0x4232bc]
call fcn.004248b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov eax, dword [ebp - 4]
call fcn.0045ae10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x45ac5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x88]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x45ac5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov dword [eax + 8], 0x45ac5c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x45a4ae
call fcn.00403fcc
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x45aa14
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45abdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45abbd
mov dl, 1
mov eax, dword [0x4182c0]
call fcn.00403c24
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004049e8
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x45aba6
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.00444f5c
test al, al
je 0x45ab9a
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x45abf0
lea eax, [ebp - 0x25c]
call fcn.00409ed0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ab9a
xor eax, eax
push ebp
push 0x45ab93
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x45ac28
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ab7c
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404c58
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45ab7c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.00404c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ab9a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x45aa89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.0041c9dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45abe6
lea eax, [ebp - 0x268]
call fcn.004049e8
ret
Function at 0x45b718
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4a9ba4]
cmp byte [eax + 0xa5], 0
jne 0x45b78f
cmp dword [0x4a9bbc], 0
jne 0x45b74d
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b6d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a9bbc], eax
cmp dword [0x4a9bb8], 0
jne 0x45b768
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a9bb8], eax
cmp dword [0x4a9bc0], 0
jne 0x45b78f
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x45b674
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4a9bc0], eax
pop ecx
pop ebp
ret

Function at 0x45b858
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0045b7f0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x45b879
xor eax, eax
call fcn.0045b828
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x45b893
mov al, 1
call fcn.0045b828
mov esp, ebp
pop ebp
ret

Function at 0x45bf5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x4a9ba4]
cmp dword [eax + 0x30], 0
je 0x45c026
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x45c01d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x45bedc
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x45c01d
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45bfd7
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x45c01d
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.0041a6ac
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x45bfec
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x45cd3c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x45cd81
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00404ad8
jmp 0x45cd92
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.00404a3c
mov esp, ebp
pop ebp
ret
Function at 0x45e054
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x45e0a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043f58c
test al, al
je 0x45e0a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043f1c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e0a7
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0043f1c8
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x4682ec
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x46830a
and ecx, ecx
jle 0x46830a
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x4682f5
pop ebx
ret

Function at 0x468350
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x468375
and ecx, ecx
jle 0x468375
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x468377]
mov bl, byte [edx]
xor bl, al
shr ax, 8
xor ax, word [edi + ebx*2]
inc edx
dec ecx
jne 0x468363
pop edi
pop ebx
ret

Function at 0x468578
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x46859b
and ecx, ecx
jle 0x46859b
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4685a1]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x46858b
pop edi
pop ebx
ret
Function at 0x474b3c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebx, eax
lea esi, [esp + 8]
lea eax, [ebx + 0x1c]
mov dword [esi], eax
mov eax, edx
mov edx, dword [esi]
add edx, 0x20
mov ecx, 0x20
call fcn.00402d18
mov eax, dword [ebx + 0x14]
dec eax
test eax, eax
jb 0x474c48
inc eax
mov dword [esp + 0x10], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x492c3c
mov dword [esp + 0x14], eax
xor eax, eax
mov edx, dword [esp]
add edx, edx
mov ecx, eax
shr ecx, 1
and ecx, 1
add edx, ecx
shl edx, 7
lea edx, [edx*8 + 0x48b730]
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
and edx, 0xff
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
mov ecx, dword [esi]
xor dword [ecx + edx*4], ebx
lea edx, [eax + 0xf]
and edx, 0xf
mov ecx, dword [esi]
xor dword [ecx + edx*4], ebx
inc eax
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
and edx, 0xff
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
mov ecx, dword [esi]
xor dword [ecx + edx*4], ebx
lea edx, [eax + 0xf]
and edx, 0xf
mov ecx, dword [esi]
xor dword [ecx + edx*4], ebx
inc eax
cmp eax, 0x10
jb 0x474b8a
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov ebx, 0x20
sub ebx, edx
xor eax, eax
mov ecx, edx
mov edi, dword [esi]
mov edi, dword [edi + eax*4]
shr edi, cl
mov ecx, ebx
mov ebp, dword [esi]
mov ebp, dword [ebp + eax*4]
shl ebp, cl
or edi, ebp
mov ecx, dword [esi]
mov dword [ecx + eax*4], edi
inc eax
cmp eax, 0x10
jne 0x474c0c
add dword [esp + 0x14], 4
dec dword [esp + 4]
jne 0x474b88
inc dword [esp]
dec dword [esp + 0x10]
jne 0x474b77
xor eax, eax
mov edx, 0xf
sub edx, eax
mov ecx, dword [esi]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esi]
xor dword [ecx + eax*4], edx
inc eax
cmp eax, 8
jne 0x474c4a
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x479398
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov edi, dword [0x4a8c54]
mov edi, dword [edi]
mov esi, dword [ebp - 8]
mov eax, dword [esi]
call edi
mov dword [ebp - 4], eax
movzx edi, word [ebp - 2]
movzx eax, word [ebp - 4]
mov dword [ebp - 0xc], eax
mov edx, dword [0x4a8c54]
mov edx, dword [edx]
mov eax, dword [esi + 4]
call edx
mov dword [ebp - 4], eax
movzx eax, word [ebp - 2]
mov dword [ebp - 0x10], eax
movzx eax, word [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 4], eax
movzx edx, word [ebx]
mov eax, edi
call fcn.00479368
mov edi, eax
movzx eax, word [ebx + 2]
add dword [ebp - 0xc], eax
movzx eax, word [ebx + 4]
add dword [ebp - 0x10], eax
movzx edx, word [ebx + 6]
mov eax, dword [ebp - 0x14]
call fcn.00479368
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.00479368
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.00479368
add esi, eax
xor edi, eax
xor dword [ebp - 0x14], esi
xor esi, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
add ebx, 0xc
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
jne 0x4793e6
movzx edx, word [ebx]
mov eax, edi
call fcn.00479368
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x4a8c54]
mov edi, dword [edi]
mov eax, dword [ebp - 4]
call edi
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov ax, word [ebp - 0xc]
add ax, word [ebx + 4]
mov word [ebp - 2], ax
movzx edx, word [ebx + 6]
mov eax, dword [ebp - 0x14]
call fcn.00479368
mov word [ebp - 4], ax
mov ebx, dword [0x4a8c54]
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call ebx
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x479c00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
add eax, 0x100
mov dword [ebp - 8], eax
mov ecx, 1
xor ebx, ebx
mov eax, ecx
and al, 0xff
mov edx, dword [ebp - 4]
mov byte [edx], al
mov eax, ecx
and eax, 0xff
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
pop eax
mov byte [eax], bl
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*8]
mov ecx, 0x101
cdq
idiv ecx
mov ecx, edx
inc dword [ebp - 4]
inc ebx
cmp ebx, 0x100
jne 0x479c2b
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47b6fc
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x47b712
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x47b70b
mov edx, esp
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov ebx, dword [ebp - 4]
shr ebx, 8
and ebx, 0xff
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov esi, dword [ebp - 4]
shr esi, 0x18
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi - 4], 0x20
jne 0x47b79d
movzx ecx, byte [ecx + 0x495d98]
mov esi, dword [edx + 0xc]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x495c98]
mov esi, dword [edx + 0xc]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x495c98]
mov esi, dword [edx + 0xc]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x495d98]
mov edi, dword [edx + 0xc]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi - 4], 0x18
jl 0x47b7fa
movzx ecx, byte [ecx + 0x495d98]
mov esi, dword [edx + 8]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x495d98]
mov esi, dword [edx + 8]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x495c98]
mov esi, dword [edx + 8]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x495c98]
mov edi, dword [edx + 8]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x495c98]
mov esi, dword [edx + 4]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x495d98]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x495c98]
mov esi, dword [edx + 4]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x495d98]
mov edi, dword [edx + 4]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x495c98]
mov esi, dword [edx]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x495c98]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x495d98]
mov esi, dword [edx]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x495d98]
mov edx, dword [edx]
shr edx, 0x18
xor esi, edx
mov dword [ebp - 8], esi
mov edx, dword [ecx*4 + 0x495e98]
xor edx, dword [ebx*4 + 0x496298]
xor edx, dword [eax*4 + 0x496698]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x496a98]
mov eax, edx
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x47b9fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
and ecx, 0xff
imul ecx, ecx, 0x1010101
xor ebx, ebx
mov esi, dword [edx + ebx*4]
xor esi, ecx
mov dword [eax + ebx*4], esi
inc ebx
cmp ebx, 0x40
jne 0x47ba0c
pop esi
pop ebx
ret
Function at 0x47ba20
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
mov edx, 0x495c98
lea eax, [ebp - 0x100]
call fcn.0047b9fc
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax - 0x18]
xor eax, eax
lea ecx, [ebp - 0x100]
xor ebx, ebx
mov bl, byte [ecx]
movzx ebx, byte [ebx + 0x495c98]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x495e98]
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
mov dword [esi + eax*4], ebx
inc eax
inc ecx
cmp eax, 0x100
jne 0x47ba51
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 8
mov edx, 0x495d98
lea eax, [ebp - 0x100]
call fcn.0047b9fc
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax - 0x17]
xor eax, eax
lea ecx, [ebp - 0x100]
xor ebx, ebx
mov bl, byte [ecx]
movzx ebx, byte [ebx + 0x495c98]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x496298]
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
mov dword [esi + eax*4 + 0x400], ebx
inc eax
inc ecx
cmp eax, 0x100
jne 0x47baa0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x10
mov edx, 0x495c98
lea eax, [ebp - 0x100]
call fcn.0047b9fc
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax - 0x16]
xor eax, eax
lea ecx, [ebp - 0x100]
xor ebx, ebx
mov bl, byte [ecx]
movzx ebx, byte [ebx + 0x495d98]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x496698]
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
mov dword [esi + eax*4 + 0x800], ebx
inc eax
inc ecx
cmp eax, 0x100
jne 0x47baf3
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x18
mov edx, 0x495d98
lea eax, [ebp - 0x100]
call fcn.0047b9fc
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, byte [eax - 0x15]
xor eax, eax
lea ecx, [ebp - 0x100]
xor ebx, ebx
mov bl, byte [ecx]
movzx ebx, byte [ebx + 0x495d98]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x496a98]
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
mov dword [esi + eax*4 + 0xc00], ebx
inc eax
inc ecx
cmp eax, 0x100
jne 0x47bb46
pop esi
pop ebx
mov esp, ebp
pop ebp
ret