joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454d14
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x454d30
cmp dword [esi + 4], 0
je 0x454d5d
test byte [ebx + 0x55], 1
jne 0x454d4f
mov eax, ebx
call fcn.004538b4
test eax, eax
jne 0x454d4f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x454e6d
mov edx, esi
mov eax, ebx
call fcn.00454838
jmp 0x454e6d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x454e66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00456b84
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00451550
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00454d14
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00456b84
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454e6d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b560
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x502ec4]
cmp byte [eax + 0xc], 0
je 0x45b6cd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b6c6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x503b7c], 0
jne 0x45b5b4
push 0x45b6d4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45b6dc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b7c], eax
cmp dword [0x4e0ed8], 0
jne 0x45b6af
push 0x45b6ec
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e0ed8], eax
cmp dword [0x4e0ed8], 0
je 0x45b6af
push 0x45b6f8
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b80], eax
push 0x45b708
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b84], eax
push 0x45b71c
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b88], eax
push 0x45b734
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b8c], eax
push 0x45b74c
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b90], eax
push 0x45b760
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b94], eax
push 0x45b778
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b98], eax
push 0x45b790
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503b9c], eax
push 0x45b7ac
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503ba0], eax
push 0x45b7b8
mov eax, dword [0x4e0ed8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x503ba4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b6cd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404724
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45f7bb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404994
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466fb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x467000]
test si, 4
je 0x466fc4
or bl, 1
test si, 8
je 0x466fce
or bl, 4
test si, 1
je 0x466fd8
or bl, 8
test si, 2
je 0x466fe2
or bl, 0x10
test si, 0x10
je 0x466fec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466ffb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x467004
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46703c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46701d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46702c
or bl, 4
test esi, 0x20000000
je 0x467037
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46d700
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46d712
add esp, 0xfffffff0
call fcn.00403c10
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427ec0
mov eax, dword [0x5027e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x46daa4
mov eax, dword [0x5027fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x46dab0
mov eax, ebx
call fcn.0046dabc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b9ec]
call fcn.00403868
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b9ec]
call fcn.00403868
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b9ec]
call fcn.00403868
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b9ec]
call fcn.00403868
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b9ec]
call fcn.00403868
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, 0x469ed4
push eax
push 0
push 0
mov eax, dword [0x502ad4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x429938]
call fcn.0042b0d0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x429938]
call fcn.0042b0d0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x429938]
call fcn.0042b0d0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046df0c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ddd4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ddd4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ddd4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46d84f
call fcn.00403c68
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46dbb8
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 0x46dd63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46dd44
mov dl, 1
mov eax, dword [0x41c1c4]
call fcn.00403868
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404724
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46dd33
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.0045b8c0
test al, al
je 0x46dd26
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, 0x46dd74
lea eax, [ebp - 0x254]
call fcn.0040a7b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46dd26
xor eax, eax
push ebp
push 0x46dd1f
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 0x46ddac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46dd08
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404994
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 0x46dd08
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dd26
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46dc29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421700
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 0x46dd6a
lea eax, [ebp - 0x260]
call fcn.00404724
ret

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

Disassembly:
push ecx
mov eax, dword [0x503bc8]
cmp byte [eax + 0xa5], 0
jne 0x46e71d
cmp dword [0x503be0], 0
jne 0x46e6de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46e668
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x503be0], eax
cmp dword [0x503bdc], 0
jne 0x46e6f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x503bdc], eax
cmp dword [0x503be4], 0
jne 0x46e71d
push esp
push 0
push 0
push 0x46e60c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x503be4], eax
pop edx
ret
Function at 0x46edb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x503bc8]
cmp dword [eax + 0x30], 0
je 0x46ee5a
cmp dword [ebx + 0x94], 0
jne 0x46ee54
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46ed40
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ee54
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 0x46ee1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ee54
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.0041e620
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46ee29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f9b8
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 0x46f9ed
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.00404814
jmp 0x46f9fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404778
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x470bb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x470bf5
mov eax, esi
call fcn.00456e88
test al, al
je 0x470bf5
mov eax, dword [ebx + 0x84]
call fcn.00456b84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x470bf5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00456b84
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x479334
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bd4
xor eax, eax
push ebp
push 0x4794fe
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov edx, 0x479514
call fcn.00404778
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404be4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x479488
mov eax, ebx
call fcn.00402b70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47940d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4793f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47951c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4793f7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479414
mov eax, dword [ebp - 0x10]
call fcn.00402ba0
ret
mov edx, dword [ebp - 4]
mov eax, 0x479534
call fcn.00404d28
test eax, eax
jne 0x4794aa
mov edx, dword [ebp - 4]
mov eax, 0x479544
call fcn.00404d28
test eax, eax
je 0x4794db
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4385b0]
call fcn.00438660
mov ebx, eax
push 0x479514
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x479554
mov edx, 0x479564
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
mov eax, ebx
call fcn.00403898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479505
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404724
ret

Function at 0x47980c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, ecx
push esp
push edx
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [esp + 4]
call fcn.0040a338
add esp, 0x10c
pop ebx
ret
Function at 0x479840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bd4
xor eax, eax
push ebp
push 0x4799f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404778
lea ecx, [ebp - 0x11c]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00438244
mov eax, dword [ebp - 0x11c]
mov edx, 0x479a0c
call fcn.00404b30
jne 0x4799a8
mov ecx, 2
mov edx, dword [ebp - 4]
mov eax, 0x479a0c
call fcn.004382b4
test eax, eax
jle 0x4799a8
mov eax, 0x19
mov edi, eax
test edi, edi
jl 0x4799a8
inc edi
mov dword [ebp - 8], 0
mov ebx, 0x4e175c
push 0x479a0c
push dword [ebx]
push 0x479a0c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404aa4
mov edx, dword [esi]
mov eax, dword [ebp - 0x10]
call fcn.004381f8
test al, al
je 0x47999b
mov eax, dword [ebp - 8]
sub eax, 1
jae 0x479944
lea eax, [ebp - 0x115]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x115]
call fcn.0040a338
jmp 0x479951
lea ecx, [ebp - 0xc]
mov edx, dword [ebx + 4]
xor eax, eax
call fcn.0047980c
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0xc]
call fcn.0040e08c
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0xc]
mov ecx, 0x479a18
call fcn.00404a30
mov al, byte [0x479a1c]
push eax
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.0040e938
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404778
jmp 0x4799a8
inc dword [ebp - 8]
add ebx, 8
dec edi
jne 0x4798f0
lea edx, [ebp - 0x128]
mov eax, dword [esi]
call fcn.00409d24
mov edx, dword [ebp - 0x128]
mov eax, esi
call fcn.00404778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4799fc
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00404748
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404724
ret

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

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

Function at 0x47beec
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x47bf0f
and ecx, ecx
jle 0x47bf0f
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x47bf15]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x47beff
pop edi
pop ebx
ret
Function at 0x48cd4c
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 [0x502db0]
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 [0x502db0]
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.0048cd1c
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.0048cd1c
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.0048cd1c
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.0048cd1c
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 0x48cd9a
movzx edx, word [ebx]
mov eax, edi
call fcn.0048cd1c
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x502db0]
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.0048cd1c
mov word [ebp - 4], ax
mov ebx, dword [0x502db0]
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 0x48d5b4
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 0x48d5df
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x48f0b0
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 0x48f0c6
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x48f0bf
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 0x48f151
movzx ecx, byte [ecx + 0x4ec134]
mov esi, dword [edx + 0xc]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4ec034]
mov esi, dword [edx + 0xc]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4ec034]
mov esi, dword [edx + 0xc]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4ec134]
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 0x48f1ae
movzx ecx, byte [ecx + 0x4ec134]
mov esi, dword [edx + 8]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4ec134]
mov esi, dword [edx + 8]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4ec034]
mov esi, dword [edx + 8]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4ec034]
mov edi, dword [edx + 8]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x4ec034]
mov esi, dword [edx + 4]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4ec134]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4ec034]
mov esi, dword [edx + 4]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4ec134]
mov edi, dword [edx + 4]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x4ec034]
mov esi, dword [edx]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4ec034]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4ec134]
mov esi, dword [edx]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4ec134]
mov edx, dword [edx]
shr edx, 0x18
xor esi, edx
mov dword [ebp - 8], esi
mov edx, dword [ecx*4 + 0x4ec234]
xor edx, dword [ebx*4 + 0x4ec634]
xor edx, dword [eax*4 + 0x4eca34]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x4ece34]
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 0x48f3b0
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 0x48f3c0
pop esi
pop ebx
ret