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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x504626
add esp, 0xfffffff0
call fcn.004063dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004556dc
mov eax, dword [0x645fac]
mov dword [eax + 4], ebx
mov dword [eax], 0x504a54
mov eax, dword [0x645fc8]
mov dword [eax + 4], ebx
mov dword [eax], 0x504a60
mov eax, ebx
call fcn.00504a6c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
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 + 0x48], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x60]
push eax
mov eax, 0x4ff8e0
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x46c258]
call fcn.0047239c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x46c258]
call fcn.0047239c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x46c258]
call fcn.0047239c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x46c258]
call fcn.0047239c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x46c258]
call fcn.0047239c
mov dword [ebx + 0x90], eax
mov eax, ebx
call fcn.00504fc8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x504e34
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x504e34
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x504e34
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x504e34
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x504e34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5047a3
call fcn.00406434
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x504bd4
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 0x504d7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x504d60
mov dl, 1
mov eax, dword [0x43fc60]
call fcn.0044db98
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00407afc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x504d4f
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.0049f9f8
test al, al
je 0x504d42
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, 0x504d90
lea eax, [ebp - 0x394]
call fcn.004211d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x504d42
xor eax, eax
push ebp
push 0x504d3b
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 0x504e00
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x504d24
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408a38
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
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 + 0x44]
jne 0x504d24
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00408a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504d42
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x504c45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044dad4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504d86
lea eax, [ebp - 0x3a0]
call fcn.00407afc
ret

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

Disassembly:
push ecx
mov eax, dword [0x64c35c]
cmp byte [eax + 0xb1], 0
jne 0x50595a
cmp dword [0x64c37c], 0
jne 0x50591a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x638648]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x64c37c], eax
cmp dword [0x64c378], 0
jne 0x505935
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x64c378], eax
cmp dword [0x64c380], 0
jne 0x50595a
push esp
push 0
push 0
mov eax, dword [0x638644]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x64c380], eax
pop edx
ret
Function at 0x505c24
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x505c3b
add esp, 0xfffffff0
call fcn.004063dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004556dc
mov eax, dword [0x645c98]
cmp byte [eax], 0
jne 0x505c68
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x184], al
mov eax, dword [0x6463e8]
cmp word [eax + 2], 0
jne 0x505c82
mov eax, dword [0x6463e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00507cc4
mov eax, dword [0x646674]
cmp word [eax + 2], 0
jne 0x505c9c
mov eax, dword [0x646674]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00507ec8
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x46c258]
call fcn.0047239c
mov esi, eax
mov dword [ebx + 0x40], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x508344
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0xb4], eax
xor eax, eax
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x60], 0xff000018
mov dword [ebx + 0x7c], 0x1f4
mov byte [ebx + 0x80], 1
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x78], 0x9c4
mov byte [ebx + 0x8c], 0
mov byte [ebx + 0xa9], 1
mov byte [ebx + 0xc0], 1
mov dl, 1
mov eax, dword [0x470ca8]
call fcn.0047b480
mov esi, eax
mov dword [ebx + 0xa4], esi
push 0x505e80
mov eax, dword [0x646108]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0047b87c
mov eax, dword [ebx + 0xa4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x508604
mov dl, 1
mov eax, dword [0x43c50c]
call fcn.00405e28
mov dword [ebx + 0x9c], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x646108]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00420f50
test eax, eax
je 0x505db0
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00420cb4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00420f34
test eax, eax
je 0x505dc8
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 + 0x90]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00408a38
push ebx
push 0x5077bc
call fcn.004fbe18
mov dword [ebx + 0x180], eax
mov byte [ebx + 0xd4], 0
mov eax, dword [0x645c98]
cmp byte [eax], 0
jne 0x505e19
mov eax, ebx
call fcn.00506040
mov byte [ebx + 0x5d], 1
mov byte [ebx + 0x5e], 1
mov byte [ebx + 0x5f], 1
mov byte [ebx + 0xaa], 1
mov byte [ebx + 0xd5], 0
mov byte [ebx + 0xe0], 0
xor eax, eax
mov dword [ebx + 0xd8], eax
mov byte [ebx + 0xd7], 0
xor eax, eax
mov dword [ebx + 0xac], eax
mov eax, ebx
call fcn.0050884c
mov eax, ebx
call fcn.00509478
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x505e76
call fcn.00406434
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506378
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x506424
cmp dword [ebx + 0x98], 0
jne 0x50641e
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5062b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x94]
cmp dword [eax + 8], 0
je 0x50641e
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5063e4
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x94]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x50641e
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x94]
call fcn.00449a90
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5063f3
inc dword [ebx + 0x98]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x64c35c]
cmp dword [eax + 0x178], 0
je 0x5067a9
test bl, bl
jne 0x5066f7
cmp dword [esi + 0xa0], 0
jne 0x5066ec
mov eax, esi
call fcn.005092c8
push eax
push 0x506550
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x48], 0
je 0x5066bd
mov eax, dword [0x64c35c]
cmp byte [eax + 0xd7], 0
je 0x5066bd
mov eax, dword [esi + 0xdc]
call fcn.00409c64
mov edi, eax
cmp edi, 0
jl 0x5066bd
push 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5066a6
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5066ec
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00449a90
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5066cc
inc dword [esi + 0xa0]
jmp 0x5067a9
cmp dword [esi + 0xa0], 0
jle 0x5067a9
dec dword [esi + 0xa0]
cmp dword [esi + 0xa0], 0
jne 0x5067a9
cmp dword [esi + 0x48], 0
je 0x506754
mov eax, dword [0x64c35c]
cmp byte [eax + 0xd7], 0
je 0x506754
mov eax, dword [esi + 0xdc]
call fcn.00409c64
mov edi, eax
cmp edi, 0
jl 0x506754
push 5
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50673d
mov eax, dword [esi + 0x9c]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x506783
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x9c]
call fcn.00449a90
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x506763
mov eax, dword [esi + 0x9c]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xdc]
mov ecx, 1
mov edx, dword [0x4f8d78]
call fcn.00409e10
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5073c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb0], 0
je 0x507433
cmp byte [ebx + 0xd7], 0
jne 0x507433
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x178]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00407c84
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x507420
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x507440
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407edc
jmp 0x507440
mov eax, esi
mov edx, dword [ebx + 0x90]
call fcn.00407edc
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x508a34
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x508aa2
mov eax, esi
call fcn.00499a80
test al, al
je 0x508aa2
mov eax, dword [ebx + 0x88]
call fcn.004996cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x508aa2
mov eax, dword [ebx + 0x88]
mov edx, dword [eax]
call dword [edx + 0x108]
test al, al
je 0x508a96
push 0
mov eax, dword [ebx + 0x88]
call fcn.004996cc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x88]
call fcn.00490884
jmp 0x508aa2
mov cl, 1
mov edx, dword [ebx + 0x78]
mov eax, ebx
call fcn.0050886c
pop esi
pop ebx
ret
Function at 0x511000
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407be0
xor eax, eax
push ebp
push 0x51107e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040897c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x511049
mov eax, dword [ebx + 4]
call fcn.0040897c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511085
lea eax, [ebp - 4]
call fcn.00407afc
ret

Function at 0x5120f4
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51229c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00404c78
cmp word [ebx + 0xaa], 0
je 0x51213d
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x512151
lea esi, [ebp - 0xc]
jmp 0x512153
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x512160
xor edi, edi
jmp 0x51216d
mov eax, dword [ebx + 0x88]
call fcn.0040897c
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.0040897c
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.005117f8
mov eax, dword [ebp - 0x14]
call fcn.0040897c
push eax
push esi
mov eax, dword [ebx + 0x7c]
call fcn.0040897c
push eax
mov eax, dword [ebp - 4]
call fcn.0040897c
push eax
mov eax, ebx
call fcn.00511940
push eax
mov eax, ebx
call fcn.00511914
push eax
mov eax, ebx
call fcn.005118cc
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.005116a0
mov eax, dword [ebp - 0x18]
call fcn.0040897c
push eax
mov eax, dword [ebx + 8]
call fcn.0040897c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x10], 0
jne 0x5121f9
call fcn.00428a80
xor edx, edx
push ebp
push 0x512272
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x512237
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x51222d
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51225b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512279
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x5122ac
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x5122d8
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xbc]
call dword [esi + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0040897c
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5122fd
call fcn.00428a80
xor eax, eax
push ebp
push 0x512334
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x51231d
call fcn.00428a80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51233b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x5253bc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x5254e4
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.005252a8
mov eax, dword [esi]
call fcn.00409c5c
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x419d88]
call fcn.00409e10
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00404a5c
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00404a5c
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00409c5c
mov dword [ebp - 0xc], eax
mov eax, dword [0x646920]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.005148dc
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00405358
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00409c5c
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.005148b8
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov ebx, eax
mov eax, ebx
call fcn.00514670
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.005148d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5254eb
lea eax, [ebp - 4]
mov edx, dword [0x419d88]
call fcn.00409f34
ret
Function at 0x541220
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 0x158
call fcn.00405358
cmp dword [ebp - 8], 0
je 0x541309
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x154], edx
mov ax, word [ebp + 8]
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 8]
mov ax, word [eax + 8]
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x10]
cmp ax, word [ebp - 0x12]
jbe 0x5412a7
movzx eax, word [ebp - 0x10]
push eax
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.005411b8
mov eax, dword [ebp - 8]
mov ax, word [eax + 0xa]
mov word [ebp - 0x10], ax
movzx ecx, word [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, 0xd4
lea eax, [ebp - 0x54]
call fcn.00404a5c
jmp 0x5412bc
movzx ecx, word [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, 0xd4
mov eax, dword [ebp - 0xc]
call fcn.00404a5c
mov ax, word [ebp - 0x12]
dec eax
test ax, ax
jb 0x5412ea
inc eax
mov word [ebp - 0x14], ax
mov word [ebp - 0xe], 0
movzx eax, word [ebp - 0xe]
mov edx, dword [ebp - 4]
xor byte [edx + eax + 0xd4], 0x36
inc word [ebp - 0xe]
dec word [ebp - 0x14]
jne 0x5412d1
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
call dword [ebx + 0xc]
movzx ecx, word [ebp - 0x12]
mov edx, dword [ebp - 4]
add edx, 0xd4
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
call dword [ebx + 0x14]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x541348
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x154], 0
je 0x54140e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
mov ax, word [eax + 8]
mov word [ebp - 0xe], ax
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x154]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call dword [ebx + 0x10]
movzx eax, word [ebp - 0xe]
dec eax
test eax, eax
jl 0x5413b2
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
xor byte [eax + edx + 0xd4], 0x6a
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x54139c
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x154]
mov eax, dword [ebp - 4]
call dword [ebx + 0xc]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x154]
movzx ecx, word [ebp - 0xe]
mov edx, dword [ebp - 4]
add edx, 0xd4
mov eax, dword [ebp - 4]
call dword [ebx + 0x14]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x154]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x154]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call dword [ebx + 0x14]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x154]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54167c
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 0x541684
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 0x54169d
pop ebx
ret
Function at 0x54b708
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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