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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d34fc]
cmp byte [eax + 0xc], 0
je 0x441665
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44165e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d4b68], 0
jne 0x44154c
push 0x44166c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441674
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b68], eax
cmp dword [0x4bab1c], 0
jne 0x441647
push 0x441684
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4bab1c], eax
cmp dword [0x4bab1c], 0
je 0x441647
push 0x441690
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b6c], eax
push 0x4416a0
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b70], eax
push 0x4416b4
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b74], eax
push 0x4416cc
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b78], eax
push 0x4416e4
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b7c], eax
push 0x4416f8
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b80], eax
push 0x441710
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b84], eax
push 0x441728
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b88], eax
push 0x441744
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b8c], eax
push 0x441750
mov eax, dword [0x4bab1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d4b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441665
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4454f0
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.00404194
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44553f
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.00404414
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cc7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cccc]
test si, 4
je 0x44cc90
or bl, 1
test si, 8
je 0x44cc9a
or bl, 4
test si, 1
je 0x44cca4
or bl, 8
test si, 2
je 0x44ccae
or bl, 0x10
test si, 0x10
je 0x44ccb8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ccc7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44ccd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cd08]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cce9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ccf8
or bl, 4
test esi, 0x20000000
je 0x44cd03
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4533b0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4533c2
add esp, 0xfffffff0
call fcn.004036a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa7c
mov eax, dword [0x4d2e9c]
mov dword [eax + 4], ebx
mov dword [eax], 0x453754
mov eax, dword [0x4d2eac]
mov dword [eax + 4], ebx
mov dword [eax], 0x453760
mov eax, ebx
call fcn.0045376c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
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, 0x44fb88
push eax
push 0
push 0
mov eax, dword [0x4d313c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4214e0]
call fcn.00422c54
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4214e0]
call fcn.00422c54
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4214e0]
call fcn.00422c54
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453b8c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453a68
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453a68
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453a68
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4534ff
call fcn.00403700
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45384c
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 0x4539f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4539d8
mov dl, 1
mov eax, dword [0x416c0c]
call fcn.00403354
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404194
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4539c7
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.00441858
test al, al
je 0x4539ba
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, 0x453a08
lea eax, [ebp - 0x254]
call fcn.00409a50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4539ba
xor eax, eax
push ebp
push 0x4539b3
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 0x453a40
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45399c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404414
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 0x45399c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404414
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4539ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4538bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b634
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 0x4539fe
lea eax, [ebp - 0x260]
call fcn.00404194
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d4bb4]
cmp byte [eax + 0xa5], 0
jne 0x45439d
cmp dword [0x4d4bcc], 0
jne 0x45435e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4542e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d4bcc], eax
cmp dword [0x4d4bc8], 0
jne 0x454379
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d4bc8], eax
cmp dword [0x4d4bd0], 0
jne 0x45439d
push esp
push 0
push 0
push 0x45428c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d4bd0], eax
pop edx
ret
Function at 0x454494
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4544ab
add esp, 0xfffffff0
call fcn.004036a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fa7c
mov eax, dword [0x4d3114]
cmp word [eax + 2], 0
jne 0x4544d3
mov eax, dword [0x4d3114]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455c14
mov eax, dword [0x4d327c]
cmp word [eax + 2], 0
jne 0x4544ed
mov eax, dword [0x4d327c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455e0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4165a8]
call fcn.00403354
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421fc0]
call fcn.004297c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454674
mov eax, dword [0x4d2f70]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429b98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4563ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d2f70]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d9cc
test eax, eax
je 0x4545e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409094
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d9f4
test eax, eax
je 0x4545f6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404414
mov eax, dword [0x4d2d14]
cmp byte [eax], 0
jne 0x45462a
mov eax, ebx
call fcn.0045479c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00456588
mov eax, ebx
call fcn.00456f4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45466a
call fcn.00403700
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454a1c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d4bb4]
cmp dword [eax + 0x30], 0
je 0x454ac6
cmp dword [ebx + 0x94], 0
jne 0x454ac0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4549ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454ac0
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 0x454a86
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454ac0
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.00418c3c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454a95
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455628
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 0x45565d
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.00404284
jmp 0x45566a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456764
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4567a5
mov eax, esi
call fcn.0043cf18
test al, al
je 0x4567a5
mov eax, dword [ebx + 0x84]
call fcn.0043ccb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4567a5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ccb8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x460378
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x4bb060], 0
mov eax, dword [0x4d34ec]
cmp dword [eax], 2
jne 0x460551
mov eax, dword [0x4d2f78]
cmp dword [eax], 5
jl 0x460551
call fcn.0045d4d8
test al, al
jne 0x4603a9
call fcn.0045d4e4
call fcn.0045d4d0
mov dword [0x4bb068], eax
push 0x460554
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb02c], eax
cmp dword [0x4bb02c], 0
jne 0x460404
mov edx, 0x8000
mov eax, 0x460568
call fcn.0040ead4
mov dword [0x4bb064], eax
mov eax, dword [0x4bb064]
mov dword [0x4bb068], eax
push 0x460554
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb02c], eax
cmp dword [0x4bb02c], 0
je 0x46054c
push 0x460574
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb030], eax
cmp dword [0x4bb030], 0
je 0x46054c
push 0x460580
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb034], eax
cmp dword [0x4bb034], 0
je 0x46054c
mov byte [0x4bb060], 1
push 0x460590
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb038], eax
push 0x46059c
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb03c], eax
push 0x4605a8
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb040], eax
push 0x4605b8
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb044], eax
push 0x4605c8
mov eax, dword [0x4bb068]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb048], eax
mov edx, 0x8000
mov eax, 0x4605e0
call fcn.0040ead4
mov dword [0x4bb06c], eax
cmp dword [0x4bb06c], 0
je 0x460551
push 0x4605f0
mov eax, dword [0x4bb06c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb04c], eax
push 0x46060c
mov eax, dword [0x4bb06c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb050], eax
push 0x46062c
mov eax, dword [0x4bb06c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb054], eax
push 0x460648
mov eax, dword [0x4bb06c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb058], eax
push 0x460660
mov eax, dword [0x4bb06c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4bb05c], eax
ret
call fcn.004602f8
ret

Function at 0x47d7f8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47d852
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047d7ec
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047b6bc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047b25c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d859
lea eax, [ebp - 4]
call fcn.00404194
ret
Function at 0x48c1c4
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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

Function at 0x48c228
Capabilities:
Encode data using xor

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

Function at 0x48c450
Capabilities:
Encode data using xor

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

Function at 0x498b10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
lea ebx, [esi + 0x1c]
mov eax, edx
lea edx, [ebx + 0x20]
mov ecx, 0x20
call fcn.00402914
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jb 0x498bf5
inc eax
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x4c3928
mov dword [esp + 0xc], 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 ecx, [edx*8 + 0x4bc41c]
mov edx, dword [ebx + eax*4]
and edx, 0xff
mov esi, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
xor dword [ebx + edx*4], esi
lea edx, [eax + 0xf]
and edx, 0xf
xor dword [ebx + edx*4], esi
inc eax
mov edx, dword [ebx + eax*4]
and edx, 0xff
mov esi, dword [ecx + edx*4]
lea edx, [eax + 1]
and edx, 0xf
xor dword [ebx + edx*4], esi
lea edx, [eax + 0xf]
and edx, 0xf
xor dword [ebx + edx*4], esi
inc eax
cmp eax, 0x10
jb 0x498b56
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov esi, 0x20
sub esi, edx
xor eax, eax
mov ecx, edx
mov edi, dword [ebx + eax*4]
shr edi, cl
mov ecx, esi
mov ebp, dword [ebx + eax*4]
shl ebp, cl
or edi, ebp
mov dword [ebx + eax*4], edi
inc eax
cmp eax, 0x10
jne 0x498bc0
add dword [esp + 0xc], 4
dec dword [esp + 4]
jne 0x498b54
inc dword [esp]
dec dword [esp + 8]
jne 0x498b43
xor eax, eax
mov edx, 0xf
sub edx, eax
mov edx, dword [ebx + edx*4]
xor dword [ebx + eax*4], edx
inc eax
cmp eax, 8
jne 0x498bf7
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49d39c
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 [0x4d33f4]
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 [0x4d33f4]
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.0049d36c
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.0049d36c
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x10]
xor esi, edi
movzx edx, word [ebx + 8]
mov eax, esi
call fcn.0049d36c
mov esi, eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add eax, esi
movzx edx, word [ebx + 0xa]
call fcn.0049d36c
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 0x49d3ea
movzx edx, word [ebx]
mov eax, edi
call fcn.0049d36c
mov word [ebp - 2], ax
mov ax, word [ebp - 0x10]
add ax, word [ebx + 2]
mov word [ebp - 4], ax
mov edi, dword [0x4d33f4]
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.0049d36c
mov word [ebp - 4], ax
mov ebx, dword [0x4d33f4]
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 0x49db10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov esi, eax
mov edx, dword [ebp + 8]
mov edi, eax
add edi, 0x100
mov ecx, 1
xor ebx, ebx
mov eax, ecx
and al, 0xff
mov byte [esi], al
mov eax, ecx
and eax, 0xff
mov byte [edi + eax], bl
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*8]
mov ecx, 0x101
cdq
idiv ecx
mov ecx, edx
inc esi
inc ebx
cmp ebx, 0x100
jne 0x49db33
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x49f4c8
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 0x49f4de
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49f4d7
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 0x49f569
movzx ecx, byte [ecx + 0x4c6a84]
mov esi, dword [edx + 0xc]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4c6984]
mov esi, dword [edx + 0xc]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4c6984]
mov esi, dword [edx + 0xc]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4c6a84]
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 0x49f5c6
movzx ecx, byte [ecx + 0x4c6a84]
mov esi, dword [edx + 8]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4c6a84]
mov esi, dword [edx + 8]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4c6984]
mov esi, dword [edx + 8]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4c6984]
mov edi, dword [edx + 8]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x4c6984]
mov esi, dword [edx + 4]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4c6a84]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4c6984]
mov esi, dword [edx + 4]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4c6a84]
mov edi, dword [edx + 4]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x4c6984]
mov esi, dword [edx]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4c6984]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4c6a84]
mov esi, dword [edx]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4c6a84]
mov edx, dword [edx]
shr edx, 0x18
xor esi, edx
mov dword [ebp - 8], esi
mov edx, dword [ecx*4 + 0x4c6b84]
xor edx, dword [ebx*4 + 0x4c6f84]
xor edx, dword [eax*4 + 0x4c7384]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x4c7784]
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 0x49f7c8
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 0x49f7d8
pop esi
pop ebx
ret