joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ef00
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5a643d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 0xa
lea ecx, [esi + 0x48]
mov byte [esp + 0x24], 1
call fcn.00593d70
lea ecx, [esi + 0x68]
mov byte [esp + 0x20], 2
call fcn.005412e0
lea ebx, [esi + 0x94]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
lea ebp, [esi + 0xb8]
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x148], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], edi
push 0x80
push str.g_PoolSTLIST
push 0x68f1f0
mov byte [esp + 0x2c], 9
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
mov dword [0x68f1ec], 0x32
cmp dword [0x68f1e4], edi
jne 0x53f077
push 0x64
push 0x68f1e4
call fcn.0053e0b0
mov eax, dword [0x68f1e4]
add esp, 8
mov dword [0x68f1e8], eax
push 0x1e
mov ecx, ebx
mov dword [esi + 0x64], edi
call fcn.0053c800
push 0x1e
mov ecx, ebp
call fcn.0053c800
push 0x1e
lea ecx, [esi + 0xdc]
call fcn.0053caf0
push 0x1e
lea ecx, [esi + 0x100]
call fcn.0053caf0
push 3
lea ecx, [esi + 0x124]
call fcn.0053cc50
mov dword [esi + 0x16c], edi
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x544230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a6b0b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 8]
xor edi, edi
mov dword [esi], vtable.CSkillObjectTargetList.0
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
push 1
mov dword [esp + 0x1c], edi
call fcn.00543fa0
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xb7]
mov word [esi + 0x30], cx
movzx edx, word [eax + 0xad]
mov word [esi + 0x32], dx
mov dword [esi + 0x2c], edi
movzx ecx, word [eax + 0x27]
mov word [esi + 0x34], cx
movzx edx, word [eax + 0x29]
mov word [esi + 0x36], dx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x54dad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a7086
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CEngineObject.0
xor ecx, ecx
mov eax, 1
mov word [esi + 0x32], cx
mov edx, 0xffff
push 0xa
lea ecx, [esi + 0x40]
mov word [esi + 0x30], ax
mov word [esi + 0x34], dx
call fcn.00593d70
xor ebx, ebx
push 0xa
lea ecx, [esi + 0x5c]
mov dword [esp + 0x1c], ebx
call fcn.00593d70
push 0xa
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 1
call fcn.00593d70
fld1
fstp dword [esi + 8]
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], bl
mov dword [esi + 0x20], 1
mov dword [esi + 0x3c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x94], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x54f770
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x4c]
add eax, 0x493e0
cmp edi, eax
jbe 0x54f79d
mov ecx, esi
call fcn.0054f720
push 0x5c1df0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esi + 0x4c], edi
pop edi
pop esi
ret
Function at 0x54f7a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x410
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x418]
push ebx
mov ebx, dword [esp + 0x418]
push ebp
push esi
push edi
push 0x400
mov esi, ecx
mov ecx, dword [esp + 0x430]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call sub.MSVCR90.dll_memset
mov eax, ebx
add esp, 0xc
mov dword [esp + 0x10], 0
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x54f7f8
sub eax, edi
push eax
push ebx
mov ecx, esi
call fcn.0054f170
xor edx, edx
lea edi, [esi + 0x20]
mov ebp, eax
div dword [edi + 4]
mov eax, dword [edi + 8]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x54f837
mov edi, edi
cmp dword [edx], ebp
je 0x54f82d
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x54f820
jmp 0x54f837
cmp dword [edx + 4], 0
jne 0x54f8cd
cmp dword [edi], 0xcd
jb 0x54f866
push 0x33
mov ecx, esi
call fcn.0054f6c0
lea ecx, [esp + 0x1c]
push str.____delete_from_Cache__n
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18c]
push 0
push 0
push 0
push ebx
push eax
call edx
mov dword [esp + 0x10], eax
test eax, eax
je 0x54f8cd
mov ecx, dword [esi]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x114]
push ecx
call eax
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10c]
call eax
mov ecx, esi
call fcn.0054f1d0
test eax, eax
je 0x54f8b7
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 4], ebp
push eax
lea ecx, [esi + 4]
call fcn.00594150
push ebp
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.0054f570
mov ecx, dword [esp + 0x430]
mov edx, dword [esp + 0x14]
mov esi, dword [esi]
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [eax + 0x18c]
push ecx
push ebx
push esi
call edx
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005997a8
add esp, 0x410
ret 0x10
Function at 0x56c960
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, ecx
cmp esi, 0x12
jb 0x56c97e
push 0
push 0x72
push str..DirectoryManager.cpp
call fcn.00527110
add esp, 0xc
cmp esi, dword [edi + 0x50]
je 0x56c996
cmp esi, 0x11
je 0x56c996
mov eax, dword [edi + esi*4 + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [edi + 0x50], esi
pop edi
pop esi
ret 4
Function at 0x576c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a893e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00424b30
lea edi, [esi + 0x2a0]
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esi], vtable.CTitanDissolutionDlg.0
call fcn.004c2c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
mov dword [esi + 0x29c], 0
call fcn.00429880
push 0
lea eax, [esp + 0x14]
push eax
push 0x3f
mov ecx, 0x69d200
mov byte [esp + 0x44], 2
call fcn.0042f6b0
push 0x33517d
lea ecx, [esp + 0x14]
push ecx
push 0xffffff
push 0x5af25f
mov ecx, edi
call fcn.0043c130
lea ecx, [esp + 0x10]
mov dword [esi + 0x2c4], 0
mov byte [esp + 0x38], 1
call fcn.00429890
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x57f990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a8d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x691844]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00424b30
lea edi, [esi + 0x2a0]
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esi], vtable.CTitanRegisterDlg.0
call fcn.004c2c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
mov dword [esi + 0x29c], 0
call fcn.00429880
push 0
lea eax, [esp + 0x14]
push eax
push 0x3f
mov ecx, 0x69d200
mov byte [esp + 0x44], 2
call fcn.0042f6b0
push 0x33517d
lea ecx, [esp + 0x14]
push ecx
push 0xffffff
push 0x5af25f
mov ecx, edi
call fcn.0043c130
lea ecx, [esp + 0x10]
mov dword [esi + 0x2c4], 0
mov byte [esp + 0x38], 1
call fcn.00429890
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x5820aa
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 8
cmp dword [0x685cdc], 0
push esi
mov esi, ecx
je 0x582191
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push str.._ini_BotConnect.opt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x582190
mov eax, dword [0x683f10]
mov dword [esi + 0xb8], eax
mov ecx, dword [0x69e254]
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
lea eax, [esi + 0xc0]
push eax
call edx
movzx eax, word [0x6ccf5c]
mov dword [esi + 0xb4], eax
mov dword [esi + 0xcc], 0
mov eax, dword [0x6a40bc]
test eax, eax
je 0x58212a
mov ecx, dword [eax + 0x35c]
mov dword [esi + 0xcc], ecx
mov edx, dword [0x69e254]
movzx eax, word [edx + 0x6d8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esi + 0xd0], eax
mov dword [esp + 0x20], 0x61208
call ebx
push 0
lea eax, [esp + 0x14]
push eax
push 0xa4
add esi, 0x34
push esi
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xa
push 0
push 0
push 0x5ad0f8
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x58ac50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x58ac5b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x58ad39
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6438]
inc ecx
sub edx, 8
sub esi, 1
jne 0x58ac75
pop edi
test edx, edx
je 0x58ad5b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5c6438]
inc ecx
sub edx, 1
jne 0x58ad40
not eax
pop esi
ret

Function at 0x58ad60
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movsx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c6438]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5c6438]
mov dword [edx + 8], ecx
ret

Function at 0x58add0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [esp + 0x10]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x5c6438]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5c6438]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
Function at 0x58b360
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x58b3a2
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x58b396
mov byte [edi + 8], 1
mov eax, dword [esp + 0x14]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x58b3b3
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
call sub.MSVCR90.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

Function at 0x58ca30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x58ca6d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x58ca6d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x58cb26
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x58ca88
cmp al, 0x5c
jne 0x58ca8a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x58ca80
cmp esi, ebp
je 0x58cac0
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call sub.MSVCR90.dll_memcpy
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0058ca30
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x58cadb
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x58cad1
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x58cae0
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x58caf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x58cb26
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.005997a8
add esp, 0x20c
ret
Function at 0x58e500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
jne 0x58e51a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
je 0x58e50f
cmp dword [edi + 0x7c], ebx
je 0x58e52d
push edi
call fcn.0058c140
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0058be70
add esp, 0x10
test eax, eax
je 0x58e554
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_malloc]
push esi
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x58e597
push 0x4000
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x58e5a4
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x58e5f0
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0058b080
add esp, 4
test eax, eax
jne 0x58e5f0
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x58e61a
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x58e623
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
movzx ecx, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg ecx
sbb ecx, ecx
and ecx, 0xc
lea ebx, [esi + 0x70]
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebp, ebp
je 0x58e667
movzx eax, byte [ebp]
test al, al
je 0x58e667
push eax
push ebx
call fcn.0058ad60
add esp, 8
add ebp, 1
jne 0x58e650
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x590bb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x590bbb
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x590c99
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5c6f48]
inc ecx
sub edx, 8
sub esi, 1
jne 0x590bd5
pop edi
test edx, edx
je 0x590cbb
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5c6f48]
inc ecx
sub edx, 1
jne 0x590ca0
not eax
pop esi
ret

Function at 0x590d30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
push ebx
movsx ebx, byte [esp + 0xc]
push esi
push edi
mov edi, dword [edx]
mov eax, dword [edx + 8]
mov ecx, edi
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5c6f48]
shr edi, 8
xor ecx, edi
mov dword [edx], ecx
movzx ecx, cl
add ecx, dword [edx + 4]
mov esi, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5c6f48]
and esi, 0xfffd
mov dword [edx + 8], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
pop edi
shr eax, 8
pop esi
xor eax, ebx
pop ebx
ret
Function at 0x590f00
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x590f22
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x590f37
mov ebp, 1
test al, 2
je 0x590f3e
or ebp, 2
test al, 4
je 0x590f45
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x590f4f
or ebp, 0x10
test al, 0x20
je 0x590f56
or ebp, 0x20
test ecx, ecx
je 0x590f62
or ebp, 0x40000000
jmp 0x590f68
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x590f78
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0x28
jbe 0x591026
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x591026
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x14], ecx
jbe 0x591026
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x591020
cmp eax, 0x454e
je 0x591020
cmp eax, 0x454c
je 0x591020
cmp eax, 0x4550
jne 0x591026
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x591030
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x59103e
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
test esi, esi
je 0x5910bf
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.00599b70
mov dword [esi + 4], edx
push 0
mov ecx, ebx
sub ecx, 0xd53e8000
mov edx, edi
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi], eax
call fcn.00599b70
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [esi + 0xc], edx
call fcn.00599b70
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x5910ec
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push ebx
call fcn.00590e90
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x24]
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret