joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d8870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
xor ebx, ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
mov eax, dword [ebp - 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d8a8d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
jne 0x5d88ff
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.00416f00
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0xc]
xor edx, edx
call fcn.00416b58
lea edx, [ebp - 0x14]
mov eax, dword [0x668708]
call fcn.00517724
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, 0x5d8a9c
call fcn.0040b2e0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00416c2c
mov eax, dword [ebp - 0x10]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x234]
mov ecx, 0x5d8ab8
mov edx, dword [ebp - 0x10]
call fcn.00408320
mov eax, dword [ebp - 0x234]
call fcn.0041667c
test al, al
je 0x5d8997
push 0
lea eax, [ebp - 0x238]
mov ecx, 0x5d8ab8
mov edx, dword [ebp - 0x10]
call fcn.00408320
mov eax, dword [ebp - 0x238]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
lea eax, [ebp - 0x20]
push eax
push 2
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x22a]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 0x248], 0xa
push dword [ebp - 8]
push 0x5d8ae0
push dword [ebp - 0xc]
lea eax, [ebp - 0x250]
mov edx, 3
call fcn.00408404
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x244], eax
mov byte [ebp - 0x240], 0x11
lea edx, [ebp - 0x24c]
mov ecx, 1
mov eax, 0x5d8af0
call fcn.004177dc
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x1c]
call fcn.004080c8
lea eax, [ebp - 0x254]
mov edx, dword [ebp - 0x1c]
call fcn.004080b4
mov eax, dword [ebp - 0x254]
call fcn.005d7cac
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8a94
lea eax, [ebp - 0x254]
mov edx, 2
call fcn.00407e34
lea eax, [ebp - 0x23c]
mov edx, 4
call fcn.00407e34
lea eax, [ebp - 0x1c]
call fcn.00407790
lea eax, [ebp - 0x18]
call fcn.0040b29c
lea eax, [ebp - 0x14]
call fcn.0040b29c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407e34
ret
Function at 0x5d8b04
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
mov eax, dword [ebp - 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d8d2e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0041667c
test al, al
je 0x5d8cd3
cmp dword [ebp - 0xc], 0
jne 0x5d8ba5
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.00416f00
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0xc]
xor edx, edx
call fcn.00416b58
lea edx, [ebp - 0x10]
mov eax, dword [0x668708]
call fcn.00517724
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x5d8d3c
call fcn.0040b2e0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 4]
call fcn.00416c2c
mov eax, dword [ebp - 0x234]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 0x20]
push eax
push 2
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x22a]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22a]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0xa
push dword [ebp - 8]
push 0x5d8d58
push dword [ebp - 0xc]
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.00408404
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0x11
lea edx, [ebp - 0x248]
mov ecx, 1
mov eax, 0x5d8d68
call fcn.004177dc
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1c]
call fcn.004080c8
lea eax, [ebp - 0x254]
mov edx, dword [ebp - 0x1c]
call fcn.004080b4
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x250]
call fcn.00416c68
mov eax, dword [ebp - 0x250]
call fcn.004166e8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x5d8d7c
call fcn.0040b2e0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00407980
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
test eax, eax
jne 0x5d8cd3
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8d35
lea eax, [ebp - 0x254]
mov edx, 3
call fcn.00407e34
lea eax, [ebp - 0x238]
mov edx, 3
call fcn.00407e34
lea eax, [ebp - 0x1c]
call fcn.00407790
lea eax, [ebp - 0x18]
call fcn.0040b29c
lea eax, [ebp - 0x14]
call fcn.0040b29c
lea eax, [ebp - 0x10]
call fcn.0040b29c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407e34
ret
Function at 0x5d8d8c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp - 8]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d8df1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8df8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407e34
ret

Function at 0x5d8e7c
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5d8fc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
xor edx, edx
mov eax, 2
call fcn.005468a8
mov esi, eax
mov dword [ebp - 0x238], 0x22c
lea edx, [ebp - 0x238]
mov eax, esi
call fcn.005468c8
mov ebx, eax
jmp 0x5d8f8c
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x214]
mov ecx, 0x104
call fcn.0040804c
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.004155c8
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x23c]
call fcn.00414e38
mov eax, dword [ebp - 0x23c]
push eax
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 4]
call fcn.00414e38
mov edx, dword [ebp - 0x248]
pop eax
call fcn.004085c4
jne 0x5d8f7d
mov edi, dword [ebp - 0x230]
call sub.kernel32.dll_GetCurrentProcess
mov edx, 0x5d8fd4
call fcn.005d8e00
test al, al
push edi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x5d8f7d
mov byte [ebp - 5], 0
lea edx, [ebp - 0x238]
mov eax, esi
call fcn.005468e8
mov ebx, eax
test ebx, ebx
jne 0x5d8eeb
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d8fc7
lea eax, [ebp - 0x248]
mov edx, 4
call fcn.00407e34
lea eax, [ebp - 4]
call fcn.00407e2c
ret
Function at 0x5e7598
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00407e24
mov eax, dword [ebp + 0xc]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5e7654
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00407e3c
mov dword [ebp - 8], 0x200
lea eax, [ebp - 0xc]
push eax
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5e762d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, dword [ebp + 0xc]
call fcn.00407ec8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5e762d
mov eax, ebx
lea edx, [ebp - 0x20c]
mov ecx, pe_nt_image_headers32
call fcn.0040804c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e765b
lea eax, [ebp - 4]
call fcn.00407e2c
lea eax, [ebp + 0xc]
call fcn.00407e2c
ret
Function at 0x5f0fa8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x5f100c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.0040804c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00416134
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1013
lea eax, [ebp - 0x14]
call fcn.00407e2c
ret

Function at 0x5f1710
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407980
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret

Function at 0x5f1724
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push esi
mov eax, ebx
call fcn.00407980
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x5f1741
xor eax, eax
pop esi
pop ebx
ret
mov eax, 1
pop esi
pop ebx
ret

Function at 0x5f180c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407980
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5f1825
test al, 0x10
jne 0x5f1829
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5f1830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407980
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5f1849
test al, 0x10
je 0x5f184d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5f50a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5f5101
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00407ec8
mov esi, eax
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
je 0x5f50e9
push esi
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 5
jne 0x5f50eb
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f5108
lea eax, [ebp - 4]
call fcn.00407e2c
ret

Function at 0x5f5110
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407e24
xor eax, eax
push ebp
push 0x5f5174
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 0x1c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
call fcn.00407ec8
push eax
call sub.kernel32.dll_GetVolumeInformationW
mov edx, ebx
lea eax, [ebp - 0x28]
call fcn.00417624
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f517b
lea eax, [ebp - 4]
call fcn.00407e2c
ret
Function at 0x5f77c4
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
lea eax, [ebp - 4]
call fcn.00407e04
xor eax, eax
push ebp
push 0x5f78c0
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xc]
call fcn.005f4f94
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
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, 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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005f17cc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005f9108
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005f1778
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.005f9188
lea eax, [ebx + 0x50]
call fcn.00406cb0
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f78c7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077a8
ret
Function at 0x5f78d0
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
lea eax, [ebp - 4]
call fcn.00407e04
xor eax, eax
push ebp
push 0x5f79e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0x64], ax
mov eax, dword [esi + 0xa]
call fcn.005f4f94
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
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, 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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00407b94
je 0x5f79a5
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005f17cc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005f9108
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005f1778
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.005f9188
jmp 0x5f79b7
xor edx, edx
mov eax, ebx
call fcn.005f9108
xor edx, edx
mov eax, ebx
call fcn.005f9188
lea eax, [ebx + 0x50]
call fcn.00406cb0
mov byte [ebx + 0x54], 0
mov byte [ebx + 0x56], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f79e9
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077a8
ret
Function at 0x5fa355
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x5fbbba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x5fbc68
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x9c], 0x40
jbe 0x5fbbf9
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0x10]
call fcn.005fa435
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x9c], 0x14
mov edx, 0x40
mov ecx, dword [ebp + 0x10]
sub edx, dword [ecx + 0x9c]
push edx
push 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
add eax, dword [edx + 0x9c]
push eax
call fcn.005fa034
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
xor dword [edx + eax*4], 0x36363636
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x5fbc24
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
call fcn.005fa355
pop ecx
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
push 0x40
push dword [ebp + 0x10]
call fcn.005fa399
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x9c], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x5fbc83
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fa399
add esp, 0xc
pop ecx
pop ebp
ret

Function at 0x5fbc86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x9c], 0xffffffff
je 0x5fbca7
push dword [ebp + 0x10]
push 0
push 0
call fcn.005fbbba
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.005fa435
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
xor dword [ecx + edx*4], 0x6a6a6a6a
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jb 0x5fbcbf
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
call fcn.005fa355
pop ecx
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
push 0x40
push dword [ebp + 0x10]
call fcn.005fa399
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0x40
push ecx
push 0x14
lea eax, [ebp - 0x18]
push eax
call fcn.005fa399
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x40
push edx
lea ecx, [ebp - 0x18]
push ecx
call fcn.005fa435
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x5fbd46
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x5fbd2b
mov esp, ebp
pop ebp
ret
Function at 0x5fd1ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
lea eax, [ebp - 0xd8]
push eax
call fcn.005fbb08
pop ecx
lea edx, [ebp - 0xd8]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fbb1f
add esp, 0xc
push 0xa0
lea ecx, [ebp - 0xd8]
push ecx
lea eax, [ebp - 0x178]
push eax
call fcn.005fa048
add esp, 0xc
lea edx, [ebp - 0x178]
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005fbbba
add esp, 0xc
mov eax, dword [ebp + 0x20]
dec eax
mov ecx, 0x14
xor edx, edx
div ecx
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x5fd380
push 0x14
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.005fa034
add esp, 0xc
push 0xa0
lea eax, [ebp - 0x178]
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.005fa048
add esp, 0xc
mov ecx, dword [ebp - 4]
inc ecx
shr ecx, 0x18
mov byte [ebp - 0x24], cl
mov eax, dword [ebp - 4]
inc eax
shr eax, 0x10
mov byte [ebp - 0x23], al
mov edx, dword [ebp - 4]
inc edx
shr edx, 8
mov byte [ebp - 0x22], dl
mov cl, byte [ebp - 4]
inc ecx
mov byte [ebp - 0x21], cl
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x18]
jae 0x5fd33a
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.005fbbba
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x14
lea ecx, [ebp - 0x24]
push ecx
call fcn.005fbc86
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp + edx - 0x24]
mov eax, dword [ebp - 0xc]
xor byte [ebp + eax - 0x38], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jb 0x5fd2fd
push 0xa0
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x218]
push ecx
call fcn.005fa048
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jb 0x5fd2cd
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 4]
shl ecx, 2
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0xc], ecx
jmp 0x5fd363
mov eax, dword [ebp - 8]
mov dl, byte [ebp + eax - 0x38]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], dl
inc dword [ebp - 8]
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0x14
jae 0x5fd371
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x20]
jb 0x5fd34d
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x5fd269
mov esp, ebp
pop ebp
ret

Function at 0x604b4c
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 + 0x178]
mov edx, ebx
mov eax, edi
call fcn.00604e54
mov esi, eax
mov dword [edi + 0x178], esi
and esi, 0xff
add dword [edi + 0x17c], esi
imul esi, dword [edi + 0x17c], 0x8088405
inc esi
mov dword [edi + 0x17c], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x180]
mov eax, edi
call fcn.00604e54
mov dword [edi + 0x180], eax
pop edi
pop esi
pop ebx
ret
Function at 0x604bc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0x118]
cmp byte [eax + 0x4c], 0
jne 0x604bf4
mov edi, ecx
dec edi
test edi, edi
jl 0x604c05
inc edi
mov eax, esi
call fcn.00604ba4
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, esi
call fcn.00604b4c
inc ebx
dec edi
jne 0x604bdb
jmp 0x604c05
lea eax, [esi + 0x3c4]
push eax
push ecx
push ebx
call fcn.005fa7c8
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x604cdc
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.00407378
xor eax, eax
push ebp
push 0x604d52
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00604c0c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00604ba4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00604b4c
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x604d1c
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x604d59
lea eax, [ebp - 4]
call fcn.00406cb0
ret