joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460c70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x460ca8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x460c89
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x460c98
or bl, 4
test esi, 0x20000000
je 0x460ca3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46736c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46737e
add esp, 0xfffffff0
call fcn.00403c90
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424460
mov eax, dword [0x517b8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x467710
mov eax, dword [0x517b9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x46771c
mov eax, ebx
call fcn.00467728
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.00403928
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.00403928
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.00403928
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.00403928
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.00403928
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, 0x463b40
push eax
push 0
push 0
mov eax, dword [0x517dc8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425edc]
call fcn.0042759c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425edc]
call fcn.0042759c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425edc]
call fcn.0042759c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00467c2c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467aac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467aac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467aac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4674bb
call fcn.00403ce8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x467890
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 0x467a3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x467a1c
mov dl, 1
mov eax, dword [0x41b92c]
call fcn.00403928
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404700
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x467a0b
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.0045521c
test al, al
je 0x4679fe
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, 0x467a4c
lea eax, [ebp - 0x254]
call fcn.0040a0a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4679fe
xor eax, eax
push ebp
push 0x4679f7
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 0x467a84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4679e0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404970
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 0x4679e0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4679fe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x467901
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004205bc
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 0x467a42
lea eax, [ebp - 0x260]
call fcn.00404700
ret

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

Disassembly:
push ecx
mov eax, dword [0x519bb4]
cmp byte [eax + 0xa5], 0
jne 0x46843d
cmp dword [0x519bcc], 0
jne 0x4683fe
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x468388
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x519bcc], eax
cmp dword [0x519bc8], 0
jne 0x468419
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x519bc8], eax
cmp dword [0x519bd0], 0
jne 0x46843d
push esp
push 0
push 0
push 0x46832c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x519bd0], eax
pop edx
ret
Function at 0x468ad0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x519bb4]
cmp dword [eax + 0x30], 0
je 0x468b7a
cmp dword [ebx + 0x94], 0
jne 0x468b74
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x468a60
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x468b74
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 0x468b3a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x468b74
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.0041d9f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x468b49
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4696d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46970d
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.004047f0
jmp 0x46971a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404754
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46a8e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46a925
mov eax, esi
call fcn.004507c0
test al, al
je 0x46a925
mov eax, dword [ebx + 0x84]
call fcn.004504bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46a925
push 0
mov eax, dword [ebx + 0x84]
call fcn.004504bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46bc30
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
ja 0x46bc5c
cmp dword [esp + 4], 5
jne 0x46bc58
cmp dword [esp + 8], 1
jae 0x46bc5c
xor eax, eax
jmp 0x46bc5e
mov al, 1
mov byte [0x519bec], al
add esp, 0x94
ret
Function at 0x4808f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], edx
mov edi, eax
xor ebp, ebp
xor ebx, ebx
mov esi, 0x4f9c0c
mov eax, ebx
cmp al, 7
ja 0x480917
and eax, 0x7f
bt dword [edi + 0x23f], eax
jae 0x48092c
cmp bl, 3
jne 0x48092a
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jl 0x48092c
add ebp, dword [esi]
inc ebx
add esi, 4
cmp bl, 4
jne 0x480907
mov eax, dword [esp]
mov dword [eax + 0xc], ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4948d0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 1
jne 0x4948f1
cmp dword [esp + 8], 0
jne 0x494903
cmp dword [esp + 0x10], 2
jne 0x4948ff
cmp dword [esp + 4], 5
je 0x494903
xor eax, eax
jmp 0x494905
mov al, 1
mov byte [0x4fa184], al
add esp, 0x94
ret

Function at 0x495f84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00460cac
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x4a8adc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a8d3c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a8b3f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a85f4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040da7c
cmp al, 1
jne 0x4a8b3f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a88bc
test al, al
je 0x4a8ccb
cmp dword [ebp - 8], 0
jge 0x4a8b5d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004a85f4
mov eax, dword [ebp - 0x210]
call fcn.004049c0
cmp ebx, eax
jge 0x4a8ba7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a85f4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x5180b4]
and eax, 0xff
bt dword [edx], eax
jae 0x4a8ba7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a8bbb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a8ab8
cmp ebx, dword [ebp - 8]
je 0x4a8cbd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4a8be7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403b60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4fa448]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4a8caa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403b60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4fa448]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004504bc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403b60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4fa448]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004504bc
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8cb1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4a8d1e
cmp dword [ebp - 8], 0
jge 0x4a8cd6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a85f4
mov eax, dword [ebp - 0x218]
call fcn.004049c0
cmp eax, dword [ebp - 8]
jg 0x4a8d10
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a85f4
mov eax, dword [ebp - 0x21c]
call fcn.004049c0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a8ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d43
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404724
ret
Function at 0x4c7ebc
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x4c7ed4
push 5
mov eax, ebx
call fcn.004504bc
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
push 0
mov eax, ebx
call fcn.004504bc
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

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

Disassembly:
and edx, edx
je 0x4d7e2e
and ecx, ecx
jle 0x4d7e2e
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 0x4d7e19
pop ebx
ret

Function at 0x4d7e74
Capabilities:
Encode data using xor

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

Function at 0x4d809c
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x4d80bf
and ecx, ecx
jle 0x4d80bf
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x4d80c5]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x4d80af
pop edi
pop ebx
ret

Function at 0x4e4668
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.00402d04
mov eax, dword [ebx + 0x14]
dec eax
test eax, eax
jb 0x4e4774
inc eax
mov dword [esp + 0x10], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x501f5c
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 + 0x4faa54]
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 0x4e46b6
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 0x4e4738
add dword [esp + 0x14], 4
dec dword [esp + 4]
jne 0x4e46b4
inc dword [esp]
dec dword [esp + 0x10]
jne 0x4e46a3
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 0x4e4776
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e8cec
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 [0x518008]
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 [0x518008]
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.004e8cbc
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.004e8cbc
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.004e8cbc
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.004e8cbc
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 0x4e8d3a
movzx edx, word [ebx]
mov eax, edi
call fcn.004e8cbc
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x518008]
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.004e8cbc
mov word [ebp - 4], ax
mov ebx, dword [0x518008]
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 0x4e9554
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 0x4e957f
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4eb050
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 0x4eb066
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4eb05f
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 0x4eb0f1
movzx ecx, byte [ecx + 0x5050b8]
mov esi, dword [edx + 0xc]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x504fb8]
mov esi, dword [edx + 0xc]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x504fb8]
mov esi, dword [edx + 0xc]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x5050b8]
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 0x4eb14e
movzx ecx, byte [ecx + 0x5050b8]
mov esi, dword [edx + 8]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x5050b8]
mov esi, dword [edx + 8]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x504fb8]
mov esi, dword [edx + 8]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x504fb8]
mov edi, dword [edx + 8]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x504fb8]
mov esi, dword [edx + 4]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x5050b8]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x504fb8]
mov esi, dword [edx + 4]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x5050b8]
mov edi, dword [edx + 4]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x504fb8]
mov esi, dword [edx]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x504fb8]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x5050b8]
mov esi, dword [edx]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x5050b8]
mov edx, dword [edx]
shr edx, 0x18
xor esi, edx
mov dword [ebp - 8], esi
mov edx, dword [ecx*4 + 0x5051b8]
xor edx, dword [ebx*4 + 0x5055b8]
xor edx, dword [eax*4 + 0x5059b8]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x505db8]
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 0x4eb350
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 0x4eb360
pop esi
pop ebx
ret
Function at 0x4eb374
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, 0x504fb8
lea eax, [ebp - 0x100]
call fcn.004eb350
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 + 0x504fb8]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x5051b8]
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
mov dword [esi + eax*4], ebx
inc eax
inc ecx
cmp eax, 0x100
jne 0x4eb3a5
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 8
mov edx, 0x5050b8
lea eax, [ebp - 0x100]
call fcn.004eb350
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 + 0x504fb8]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x5055b8]
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 0x4eb3f4
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x10
mov edx, 0x504fb8
lea eax, [ebp - 0x100]
call fcn.004eb350
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 + 0x5050b8]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x5059b8]
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 0x4eb447
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x18
mov edx, 0x5050b8
lea eax, [ebp - 0x100]
call fcn.004eb350
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 + 0x5050b8]
xor ebx, edx
mov ebx, dword [ebx*4 + 0x505db8]
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 0x4eb49a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret