joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8a68
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b8ba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x449ca4]
call fcn.0044aea8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4b8b77
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0044af90
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00406f88
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4b8bbc
call fcn.0040725c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0044b20c
test al, al
je 0x4b8b61
lea ecx, [ebp - 4]
mov edx, 0x4b8c30
mov eax, dword [ebp - 0xc]
call fcn.0044bb08
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041c458
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4b8b5a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4b8c48
mov eax, dword [ebp - 8]
push eax
call fcn.0040bfb4
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x59d02c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8b61
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8b7e
mov eax, dword [ebp - 0xc]
call fcn.00404f5c
ret

Function at 0x4b8cac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4b8cf3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4b8cd6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4b8ce7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4b8cf3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4c6e54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5ab290], 0
je 0x4c6f95
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5a4f54]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4c6f95
mov eax, dword [0x5ab294]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5ab290]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4c6f64
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5ab290]
call fcn.00436900
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4c6f5c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x4c6f5c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x4c6f5c
mov eax, dword [ebp - 0x14]
call fcn.004d2870
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c6f5c
push ebp
call fcn.004c6e10
pop ecx
test al, al
jne 0x4c6f5c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004051e8
test al, al
je 0x4c6f5c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.004051e8
cmp byte [ebp - 1], 0
je 0x4c6f5c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040ae88
test al, al
je 0x4c6f5c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5ab294]
call fcn.004c656c
inc edi
dec ebx
jne 0x4c6eb9
mov eax, dword [0x5ab294]
cmp dword [eax + 8], 0
jle 0x4c6f7c
mov eax, dword [0x5ab294]
call fcn.004c6624
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4c6f95
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004c6c74
pop ecx
test al, al
jne 0x4c6f95
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f6ec4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4f6ed6
add esp, 0xfffffff0
call fcn.00405490
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004429cc
mov eax, dword [0x5a4c60]
mov dword [eax + 4], ebx
mov dword [eax], 0x4f7320
mov eax, dword [0x5a4c6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4f732c
mov eax, ebx
call fcn.004f7338
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4f1c6c
push eax
push 0
push 0
mov eax, dword [0x5a4e94]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44d3d0]
call fcn.0045390c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44d3d0]
call fcn.0045390c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44d3d0]
call fcn.0045390c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44d3d0]
call fcn.0045390c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44d3d0]
call fcn.0045390c
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004f7890
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f7700
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f7700
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f7700
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f7700
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f7700
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f7051
call fcn.004054e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f74a0
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 0x4f764d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4f762e
mov dl, 1
mov eax, dword [0x42dbd8]
call fcn.00439f84
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406d88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4f761d
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.004d8d10
test al, al
je 0x4f7610
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, 0x4f765c
lea eax, [ebp - 0x394]
call fcn.00415a94
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4f7610
xor eax, eax
push ebp
push 0x4f7609
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 0x4f76cc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4f75f2
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406f88
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4f75f2
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7610
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4f7513
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00439ec0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7654
lea eax, [ebp - 0x3a0]
call fcn.00406d78
ret

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

Disassembly:
push ecx
mov eax, dword [0x5ab2e8]
cmp byte [eax + 0xad], 0
jne 0x4f821e
cmp dword [0x5ab300], 0
jne 0x4f81de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x59d3b8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5ab300], eax
cmp dword [0x5ab2fc], 0
jne 0x4f81f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5ab2fc], eax
cmp dword [0x5ab304], 0
jne 0x4f821e
push esp
push 0
push 0
mov eax, dword [0x59d3b4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5ab304], eax
pop edx
ret
Function at 0x4f8544
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4f855b
add esp, 0xfffffff0
call fcn.00405490
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004429cc
mov eax, dword [0x5a4b0c]
cmp byte [eax], 0
jne 0x4f8588
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5a4e60]
cmp word [eax + 2], 0
jne 0x4f85a2
mov eax, dword [0x5a4e60]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004fa63c
mov eax, dword [0x5a4f84]
cmp word [eax + 2], 0
jne 0x4f85bc
mov eax, dword [0x5a4f84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004fa84c
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44d3d0]
call fcn.0045390c
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4fadfc
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
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 [0x451ad0]
call fcn.0045d184
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4f879c
mov eax, dword [0x5a4cfc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045d618
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4fb0e4
mov dl, 1
mov eax, dword [0x42b4d8]
call fcn.00404f2c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5a4cfc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004158b4
test eax, eax
je 0x4f86cd
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004155b8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00415898
test eax, eax
je 0x4f86e5
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 + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406f88
push ebx
push 0x4fa00c
call fcn.004ee12c
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x5a4b0c]
cmp byte [eax], 0
jne 0x4f8736
mov eax, ebx
call fcn.004f8910
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004fb310
mov eax, ebx
call fcn.004fbf44
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f8793
call fcn.004054e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f8be4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4f8c86
cmp dword [ebx + 0x94], 0
jne 0x4f8c80
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4f8b30
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4f8c80
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 0x4f8c46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4f8c80
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.00436900
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4f8c55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5ab2e8]
cmp dword [eax + 0x170], 0
je 0x4f9009
test bl, bl
jne 0x4f8f57
cmp dword [esi + 0x9c], 0
jne 0x4f8f4c
mov eax, esi
call fcn.004fbd94
push eax
push 0x4f8db0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4f8f1d
mov eax, dword [0x5ab2e8]
cmp byte [eax + 0xd3], 0
je 0x4f8f1d
mov eax, dword [esi + 0xd8]
call fcn.004087e0
mov edi, eax
cmp edi, 0
jl 0x4f8f1d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4f8f06
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4f8f4c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436900
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4f8f2c
inc dword [esi + 0x9c]
jmp 0x4f9009
cmp dword [esi + 0x9c], 0
jle 0x4f9009
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4f9009
cmp dword [esi + 0x44], 0
je 0x4f8fb4
mov eax, dword [0x5ab2e8]
cmp byte [eax + 0xd3], 0
je 0x4f8fb4
mov eax, dword [esi + 0xd8]
call fcn.004087e0
mov edi, eax
cmp edi, 0
jl 0x4f8fb4
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4f8f9d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4f8fe3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00436900
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4f8fc3
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4ec004]
call fcn.004089a0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x501168
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x501196
mov eax, ebx
call fcn.00501c1c
cmp dword [ebx + 0x40], 0
je 0x50118f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x501207
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5011f9
cmp dword [ebx + 8], 0
je 0x5011b8
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 0x5011ca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5011f9
cmp dword [ebx + 8], 0
je 0x5011ab
cmp eax, 3
je 0x5011dd
dec eax
jne 0x5011ab
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 0x5011ab
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5011ab
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x501225
cmp dword [ebx + 0x14], 0xcc
je 0x501225
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.00501230
pop ebx
ret

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

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

Function at 0x515ff4
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x516019
and ecx, ecx
jle 0x516019
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x51601b]
mov bl, byte [edx]
xor bl, al
shr ax, 8
xor ax, word [edi + ebx*2]
inc edx
dec ecx
jne 0x516007
pop edi
pop ebx
ret
Function at 0x519890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x24]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x38]
call fcn.0040445c
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x24]
mov eax, dword [eax + 0x4c]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x51996f
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x5a0698]
mov edx, 8
call fcn.00515a58
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x5a0698]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x5a0698]
mov edx, 0x10
call fcn.00515a58
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x5a0698]
mov edx, 0x18
call fcn.00515a58
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x5198f2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51db58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x51db85
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x51dc04
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0051c648
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x51dbd2
mov cx, word [esp]
sub cx, si
jmp 0x51dbd4
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51dbbb
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x51dbfa
mov cx, word [esp]
sub cx, si
jmp 0x51dbfc
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51dbe3
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x51dc61
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0051d824
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x51dc4c
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x51dc61
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x51db62
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x523974
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x158
call fcn.004048c8
cmp dword [ebp - 4], 0
je 0x523a28
mov eax, dword [ebp - 4]
mov dword [ebx + 0x154], eax
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 8]
mov word [ebp - 6], dx
cmp ax, word [ebp - 6]
jbe 0x5239e4
movzx eax, ax
push eax
lea edx, [ebp - 0x46]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.005238c8
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0xa]
movzx ecx, ax
lea edx, [ebx + 0xd4]
lea eax, [ebp - 0x46]
call fcn.0040445c
jmp 0x5239f4
movzx ecx, ax
lea edx, [ebx + 0xd4]
mov eax, esi
call fcn.0040445c
movzx edx, word [ebp - 6]
dec edx
test dx, dx
jb 0x523a0e
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x36
inc eax
dec dx
jne 0x523a05
mov eax, ebx
mov esi, dword [ebp - 4]
call dword [esi + 0xc]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
mov ebx, dword [ebp - 4]
call dword [ebx + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x523a40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x523ac2
movzx edx, word [eax + 8]
mov word [esp + 4], dx
mov esi, eax
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x10]
movzx edx, word [esp + 4]
dec edx
test edx, edx
jl 0x523a7f
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x6a
inc eax
dec edx
jne 0x523a78
mov esi, dword [ebx + 0x154]
mov eax, ebx
call dword [esi + 0xc]
mov esi, dword [ebx + 0x154]
movzx ecx, word [esp + 4]
lea edx, [ebx + 0xd4]
mov eax, ebx
call dword [esi + 0x14]
mov eax, dword [ebx + 0x154]
mov esi, eax
movzx ecx, word [eax + 0xa]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x14]
mov esi, dword [ebx + 0x154]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0x10]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x523af4
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x10
mov eax, dword [edx]
xchg ah, al
rol eax, 0x10
xchg ah, al
mov dword [ebx], eax
add ebx, 4
add edx, 4
dec ecx
jne 0x523afc
mov ecx, 0x40
mov eax, dword [ebx - 0xc]
xor eax, dword [ebx - 0x20]
xor eax, dword [ebx - 0x38]
xor eax, dword [ebx - 0x40]
rol eax, 1
mov dword [ebx], eax
add ebx, 4
dec ecx
jne 0x523b15
pop ebx
ret