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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4773b8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x477399
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4773a8
or bl, 4
test esi, 0x20000000
je 0x4773b3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x477408
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.004773bc
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x47daac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47dabe
add esp, 0xfffffff0
call fcn.00403cf8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004252f8
mov eax, dword [0x5f4874]
mov dword [eax + 4], ebx
mov dword [eax], 0x47de50
mov eax, dword [0x5f4884]
mov dword [eax + 4], ebx
mov dword [eax], 0x47de5c
mov eax, ebx
call fcn.0047de68
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4197e0]
call fcn.00403950
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4197e0]
call fcn.00403950
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4197e0]
call fcn.00403950
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4197e0]
call fcn.00403950
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4197e0]
call fcn.00403950
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, 0x47a280
push eax
push 0
push 0
mov eax, dword [0x5f4b6c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426dec]
call fcn.00428694
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426dec]
call fcn.00428694
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426dec]
call fcn.00428694
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047e3b4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47e234
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47e234
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47e234
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47dbfb
call fcn.00403d50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47e018
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 0x47e1c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47e1a4
mov dl, 1
mov eax, dword [0x419e44]
call fcn.00403950
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47e193
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.0046b5f4
test al, al
je 0x47e186
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, 0x47e1d4
lea eax, [ebp - 0x254]
call fcn.0040a7c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47e186
xor eax, eax
push ebp
push 0x47e17f
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 0x47e20c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47e168
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a60
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 0x47e168
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e186
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47e089
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041eb24
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 0x47e1ca
lea eax, [ebp - 0x260]
call fcn.004047f0
ret

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

Disassembly:
push ecx
mov eax, dword [0x5f6bf4]
cmp byte [eax + 0xa5], 0
jne 0x47ebc5
cmp dword [0x5f6c0c], 0
jne 0x47eb86
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47eb10
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5f6c0c], eax
cmp dword [0x5f6c08], 0
jne 0x47eba1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5f6c08], eax
cmp dword [0x5f6c10], 0
jne 0x47ebc5
push esp
push 0
push 0
push 0x47eab4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5f6c10], eax
pop edx
ret
Function at 0x47f288
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5f6bf4]
cmp dword [eax + 0x30], 0
je 0x47f332
cmp dword [ebx + 0x94], 0
jne 0x47f32c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47f218
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47f32c
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 0x47f2f2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47f32c
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.0041c1f4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47f301
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47fea8
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 0x47fedd
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.004048e0
jmp 0x47feea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404844
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x481024
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x481065
mov eax, esi
call fcn.00466bbc
test al, al
je 0x481065
mov eax, dword [ebx + 0x84]
call fcn.004668b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x481065
push 0
mov eax, dword [ebx + 0x84]
call fcn.004668b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x481da4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418d48]
call fcn.00405284
xor eax, eax
push ebp
push 0x481ee8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5d8304], 0
jne 0x481df7
mov ecx, dword [0x5f46ac]
mov dl, 1
mov eax, dword [0x4082fc]
call fcn.0040d414
call fcn.00404160
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403358
mov eax, ebx
call fcn.00405068
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x481ef8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406550
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405078
test eax, eax
jle 0x481e8f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x481e88
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a78
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a60
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004091e0
test eax, eax
jne 0x481e88
mov ebx, 0x15
jmp 0x481e94
mov ebx, 0x10
jmp 0x481e94
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x5d8304]
call fcn.00481ca0
mov eax, dword [ebp - 8]
call fcn.00481ca0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481eef
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404814
lea eax, [ebp - 0x10]
mov edx, dword [0x418d48]
call fcn.00405354
ret
Function at 0x48a2e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48a451
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a42c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004049d8
lea eax, [ebp - 0x118]
mov edx, 0x48a468
call fcn.00404ab8
mov eax, dword [ebp - 0x118]
call fcn.00404cb0
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x48a39e
lea eax, [ebp - 0x111]
call fcn.0040a0f8
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004048e0
jmp 0x48a3a5
mov eax, esi
call fcn.004047f0
cmp bl, 0x61
jae 0x48a3c6
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e258
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404844
jmp 0x48a3e0
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e1cc
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404844
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x48a474
call fcn.0040a85c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a433
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x48f688
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x48f778
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004907c4
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409f34
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048fbf0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409e18
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0048fc64
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f77f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404814
ret
Function at 0x48f788
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x48f888
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004907c4
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x48f84e
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409f34
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048fbf0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409e18
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0048fc64
jmp 0x48f860
xor edx, edx
mov eax, ebx
call fcn.0048fbf0
xor edx, edx
mov eax, ebx
call fcn.0048fc64
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f88f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404814
ret

Function at 0x490a28
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x490a8c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00490a98
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490a93
lea eax, [ebp - 4]
call fcn.004047f0
ret

Function at 0x496418
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x148]
mov edx, ebx
mov eax, edi
call fcn.0049663c
mov esi, eax
mov dword [edi + 0x148], esi
and esi, 0xff
add dword [edi + 0x14c], esi
imul esi, dword [edi + 0x14c], 0x8088405
inc esi
mov dword [edi + 0x14c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x150]
mov eax, edi
call fcn.0049663c
mov dword [edi + 0x150], eax
pop edi
pop esi
pop ebx
ret

Function at 0x49648c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4964b1
inc esi
mov eax, edi
call fcn.00496470
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00496418
inc ebx
dec esi
jne 0x49649b
pop edi
pop esi
pop ebx
ret
Function at 0x496540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4965b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004964b8
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00496470
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00496418
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x496580
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4965bc
lea eax, [ebp - 4]
call fcn.004047f0
ret
Function at 0x496f74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497144
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x497100
mov eax, dword [ebp - 4]
call fcn.004986c4
cmp ebx, eax
jge 0x497100
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf8]
mov edx, ebx
call fcn.0048de54
mov edx, dword [0x48f190]
call fcn.00403b3c
mov esi, eax
mov eax, esi
call fcn.0048fb84
test al, al
je 0x4970f6
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x4970ea
xor eax, eax
push ebp
push 0x4970e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004974ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
call fcn.0041ebec
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x3e]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx edx, word [ebp - 0x22]
movzx eax, word [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
mov cx, 1
mov esi, dword [eax]
call dword [esi + 0x14]
movzx esi, word [ebp - 0x1e]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404e3c
mov eax, dword [ebp - 8]
call fcn.00404d08
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov al, byte [eax + 0x24]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004972d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x138]
mov dl, byte [ebp - 9]
mov byte [eax + 0x24], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49712e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4970e2
mov eax, dword [ebp - 4]
call fcn.00497570
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a344
jmp 0x49712e
mov eax, dword [ebp - 8]
call fcn.004047f0
jmp 0x49712e
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], 0
lea eax, [ebp - 0x48]
push eax
push 0
lea edx, [ebp - 0x4c]
mov eax, 0xb3
call fcn.00409850
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4195b8]
call fcn.0040d394
call fcn.00404160
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49714b
lea eax, [ebp - 0x4c]
call fcn.004047f0
ret
Function at 0x4b5454
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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

Function at 0x4b56e0
Capabilities:
Encode data using xor

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

Function at 0x4c1cac
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.00402e24
mov eax, dword [ebx + 0x14]
dec eax
test eax, eax
jb 0x4c1db8
inc eax
mov dword [esp + 0x10], eax
mov dword [esp], 0
mov dword [esp + 4], 4
mov eax, 0x5e1284
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 + 0x5d9d7c]
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 0x4c1cfa
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 0x4c1d7c
add dword [esp + 0x14], 4
dec dword [esp + 4]
jne 0x4c1cf8
inc dword [esp]
dec dword [esp + 0x10]
jne 0x4c1ce7
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 0x4c1dba
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret