joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404a7a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403ee0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402bdc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404a64
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a81
lea eax, [ebp - 0x10]
call fcn.00403c8c
ret

Function at 0x406c18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406c51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d7c
jmp 0x406c5a
mov eax, ebx
mov edx, esi
call fcn.00403ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406c64
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406c85
mov al, byte [esp]
jmp 0x406c87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40731c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407184
mov eax, dword [0x40d4b0]
cmp byte [eax], 0
je 0x407398
mov eax, dword [0x40d400]
call fcn.00402acc
call fcn.00402998
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004060d8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4073e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4073ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40d3e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40e660]
call fcn.004043e4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407dec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407e50
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ee0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405fa0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e57
lea eax, [ebp - 0xc]
call fcn.00403c8c
ret

Function at 0x408f30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x408f76
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00408e94
mov eax, dword [ebp - 4]
call fcn.00404068
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f7d
lea eax, [ebp - 4]
call fcn.00403c8c
ret

Function at 0x40912c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor eax, eax
mov dword [ebp - 8], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x409187
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineA_1
lea edx, [ebp - 8]
call fcn.00409048
mov dword [esi], eax
xor ebx, ebx
jmp 0x40916a
inc ebx
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.00409048
mov dword [esi], eax
mov eax, dword [esi]
cmp byte [eax], 0
jne 0x40915d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40918e
lea eax, [ebp - 8]
call fcn.00403c8c
ret

Function at 0x409198
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409231
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4091e2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
lea edx, [ebp - 0x10c]
mov eax, esi
call fcn.00403d7c
jmp 0x40921b
call sub.kernel32.dll_GetCommandLineA_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x4091fc
lea eax, [ebp - 4]
call fcn.00403c8c
jmp 0x409211
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00409048
mov dword [ebp - 8], eax
test ebx, ebx
je 0x409211
dec ebx
jmp 0x4091ea
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409238
lea eax, [ebp - 4]
call fcn.00403c8c
ret

Function at 0x409240
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00406198
add esp, 0x104
pop ebx
ret
Function at 0x409384
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4094b8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4094a2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4093e1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4094a2
cmp dword [ebp - 0x10], 0
jne 0x4093f6
mov eax, dword [ebp - 8]
call fcn.00403c8c
mov bl, 1
jmp 0x4094a2
cmp dword [ebp - 0x10], 0x70000000
jb 0x409404
call fcn.00407408
mov esi, dword [ebp - 0x10]
shr esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403d7c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004040b8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x4093aa
test eax, eax
jne 0x4094a2
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x409452
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4094a2
mov esi, dword [ebp - 0x10]
shr esi, 0
jmp 0x40945b
dec esi
test esi, esi
je 0x409469
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x40945a
cmp dword [ebp - 0xc], 7
jne 0x409474
test esi, esi
je 0x409474
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.0040415c
cmp dword [ebp - 0xc], 7
jne 0x409495
test esi, esi
je 0x409495
lea eax, [ebp - 0x14]
call fcn.004040b8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00403ce0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094bf
lea eax, [ebp - 0x14]
call fcn.00403c8c
ret

Function at 0x409e60
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e7d4
mov eax, esi
mov edx, 8
test al, 1
je 0x409e7c
shr eax, 1
xor eax, 0xedb88320
jmp 0x409e7e
shr eax, 1
dec edx
jne 0x409e6f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409e68
pop esi
ret

Function at 0x409e94
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e7d0], 0
jne 0x409eb8
call fcn.00409e60
push 1
push 0x40e7d0
call sub.kernel32.dll_InterlockedExchange
mov dword [esp], edi
test esi, esi
je 0x409ee8
mov eax, ebx
and eax, 0xff
mov edx, dword [esp]
movzx edx, byte [edx]
xor ax, dx
movzx eax, ax
mov eax, dword [eax*4 + 0x40e7d4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
dec esi
inc dword [esp]
test esi, esi
jne 0x409ebf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40b8f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b8ac
test al, al
jne 0x40b919
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40b965
xor eax, eax
push ebp
push 0x40b955
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404068
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b95c
lea eax, [ebp - 0xc]
call fcn.0040b8e8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bca4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40bcac
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40bd99
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040926c
mov edx, dword [ebp - 8]
mov ecx, 0x40bdb0
xor eax, eax
call fcn.0040bb94
push 0
mov eax, dword [ebp - 4]
call fcn.00404068
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40bd67
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40bcc6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040b6a0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00405f78
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409750
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040b670
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x405380]
call fcn.00407414
call fcn.004036c4
jmp 0x40bcc6
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bda0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403cb0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403cb0
ret

Function at 0x40bdc0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d500]
cmp dword [eax], 2
jne 0x40be28
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40bde3
xor eax, eax
jmp 0x40be37
lea eax, [esp + 8]
push eax
push 0x40be3c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40be28
xor eax, eax
jmp 0x40be37
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40be50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40beaa
inc esi
xor edi, edi
cmp edi, 1
jne 0x40be76
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40be84
cmp edi, 1
jle 0x40be84
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040b8f8
test eax, eax
jne 0x40beaa
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40beaa
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40beaa
inc edi
dec esi
jne 0x40be66
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40c324
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c3f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c410
push ebx
push 0x40c41c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403fcc
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402ba0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404068
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c3a4
mov al, 0x62
call fcn.0040beec
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.0040c2f8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40c3ad
call fcn.0040c2f8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c400
lea eax, [ebp - 4]
call fcn.00403c8c
ret
Function at 0x40c4bc
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov ebp, eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov dword [esp], ebp
push 0x1c
push esi
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c58e
jmp 0x40c583
cmp dword [esi + 0x10], 0x1000
jne 0x40c56a
test byte [esi + 0x15], 1
jne 0x40c56a
mov byte [esp + 4], 0
mov edi, dword [esi + 0x14]
cmp edi, 1
je 0x40c51b
cmp edi, 2
je 0x40c51b
cmp edi, 0x10
je 0x40c51b
cmp edi, 0x20
jne 0x40c537
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40c537
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40c548
mov eax, dword [esi]
add eax, ebx
call fcn.0040c4b4
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40c53b
cmp byte [esp + 4], 0
je 0x40c56a
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov dword [esp], eax
push 0x1c
push esi
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c58e
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40c4f0
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x444e0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x6bd90
sub esp, 0x14
lea edx, [eax + 2]
jmp 0x444f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x444f0
sub eax, edx
sar eax, 1
jne 0x44507
xor eax, eax
add esp, 0x14
ret
push 0x6b69c
lea eax, [esp + 4]
push 0x6bd90
push eax
mov dword [esp + 0xc], 0
call fcn.000530bc
add esp, 0xc
test eax, eax
jne 0x44501
mov edx, dword [esi + 4]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov word [esp + 0x10], ax
mov eax, dword [esp]
push eax
mov ecx, 0x4d42
push 1
mov word [esp + 0xc], cx
lea ecx, [esp + 0xc]
add edx, 0xe
push 0xe
push ecx
mov dword [esp + 0x16], edx
mov dword [esp + 0x1e], 0x36
call fcn.00053271
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 1
push eax
push ecx
call fcn.00053271
mov edx, dword [esp + 0x20]
push edx
call fcn.0005336a
add esp, 0x24
mov eax, 1
add esp, 0x14
ret

Function at 0x45970
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x45a61
cmp edi, 0xa
jb 0x45a61
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.00052e9e
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.000457f0
add esp, 8
test eax, eax
je 0x45a5a
mov eax, dword [esp + 0x1c]
push 0x6ab5c
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.000530bc
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x459e5
lea ebp, [eax - 2]
jmp 0x45a10
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.00053271
add esp, 0x10
cmp eax, edi
je 0x45a27
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45a10
push eax
call fcn.0005336a
add esp, 4
test esi, esi
je 0x45a1d
push esi
call fcn.00052f68
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0x65124]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00053271
add esp, 0x10
jmp 0x459ff
mov ebp, 0xfffffffd
jmp 0x459ff
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x477e0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x477e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x478c4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x69ea0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x47800
pop edi
test edx, edx
je 0x478eb
jmp 0x478d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x69ea0]
inc ecx
sub edx, 1
jne 0x478d0
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x69ea0]
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 + 0x69ea0]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x69ea0]
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 + 0x69ea0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x48d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x48d5e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x48d52
cmp dword [edi + 0x7c], ebx
je 0x48d6d
call fcn.00049120
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00048ab0
add esp, 0xc
test eax, eax
je 0x48d94
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00052e9e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x48dd2
push 0x4000
call fcn.00052e9e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
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 0x48ddf
push esi
call fcn.00052f68
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
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 0x48e27
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00047c00
test eax, eax
jne 0x48e27
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x48e4e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x48e54
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x48e91
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x48e91
call fcn.000478f0
add ebp, 1
jne 0x48e80
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret