joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435950
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], str._pcd_patches_iTunesDriver_86.zip
mov dword [eax + 0x10], 0
jb 0x435975
mov eax, dword [eax]
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 1
push 3
push 2
mov byte [eax], 0
call esi
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
push str.cs.d.appduoduo.com
mov ebx, eax
call edi
test eax, eax
jne 0x4359b4
push str.cs.d.appduoduo.com
push 0x4d9dc4
call fcn.00487d90
add esp, 8
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4359be
mov ecx, eax
call fcn.00430930
mov dword [ebp - 0xc], eax
push 1
push 3
push 2
call esi
push str.jn.d.appduoduo.com
mov ebx, eax
call edi
test eax, eax
jne 0x4359ea
push str.jn.d.appduoduo.com
push 0x4d9dc4
call fcn.00487d90
add esp, 8
or edi, 0xffffffff
jmp 0x4359f3
mov ecx, eax
call fcn.00430930
mov edi, eax
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 8], 0
test esi, esi
je 0x435a35
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x435a35
cmp dword [ebp - 8], 0
je 0x435a35
mov dword [ebp - 4], str._pcd_patches_iTunesDriver_64.zip
mov esi, dword [ebp - 0x10]
push 7
push 0x4d6950
mov ecx, esi
call fcn.00407660
mov eax, dword [ebp - 0xc]
push 0x12
mov ecx, esi
test eax, eax
je 0x435a94
test edi, edi
je 0x435a8d
cmp eax, edi
jae 0x435a60
push str.cs.d.appduoduo.com
jmp 0x435a65
push str.jn.d.appduoduo.com
call fcn.00407450
mov edx, dword [ebp - 4]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435a72
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00407450
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.cs.d.appduoduo.com
jmp 0x435a99
push str.jn.d.appduoduo.com
call fcn.00407450
mov edx, dword [ebp - 4]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435aa6
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00407450
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435ad0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10000000
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call edi
test ebx, ebx
je 0x435bd9
push 0x34
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
call edi
test esi, esi
jne 0x435b32
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x435b48
call edi
jmp 0x435bcd
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jne 0x435b72
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x435bcd
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x24], eax
call edi
cmp dword [ebp - 0x24], 0
je 0x435bcd
lea ecx, [ebp - 0x20]
push ecx
push esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x435bcd
nop
push 0x3e8
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 3
jg 0x435bd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c], 4
je 0x435b50
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x435ba0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x435bf0
Capabilities:
Acquire debug privileges
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x248], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x435c35
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x435ca4
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ecx]
mov ecx, str.WerFault.exe
lea eax, [ebp - 0x224]
jmp 0x435c60
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435c86
test dx, dx
je 0x435c82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435c86
add eax, 4
add ecx, 4
test dx, dx
jne 0x435c60
xor eax, eax
jmp 0x435c8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435c9f
lea ecx, [ebp - 0x248]
push ecx
push edi
call ebx
test eax, eax
jne 0x435c50
jmp 0x435ca4
mov esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
xor edi, edi
test esi, esi
je 0x435d29
lea edx, [ebp - 0x24c]
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x435d01
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [ebp - 0x24c]
push edi
push edi
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edi
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x240]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x435d29
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x436310
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4f4214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3c
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.0049f910
push 0x114
lea ecx, [ebp - 0x118]
push 0
push ecx
call fcn.0049f910
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov dword [ebp - 0x148], str.open
sbb esi, esi
neg esi
jne 0x436382
mov dword [ebp - 0x148], str.runas
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], 0x4da744
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x154], 0x3c
mov dword [ebp - 0x150], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x148]
push edi
push ecx
push esi
push 0x2a9
push str.SynStartInstallExe2
push str._s__d___SynStartInstall__System64:_d__s_sPath:__s__n
call fcn.00487d90
mov eax, dword [ebp - 0x11c]
add esp, 0x18
pop esi
test eax, eax
je 0x4363f7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x436b50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x4f4214]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x104
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0049f0ec
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436b90
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
lea eax, [esp + eax*2 + 0x10]
jne 0x436bb1
xor ecx, ecx
mov word [eax - 2], cx
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x222]
push eax
mov word [esp + 0x224], dx
call fcn.0049f910
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.0049ee11
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 8
test eax, eax
je 0x436c5c
add eax, 2
push 0x5c
push eax
call fcn.0049ee11
mov edi, eax
add esp, 8
test edi, edi
je 0x436c5c
mov edi, edi
lea eax, [esp + 0x10]
mov edx, edi
sub edx, eax
sar edx, 1
push edx
mov ecx, eax
push ecx
lea edx, [esp + 0x220]
push edx
call fcn.0049f0ec
add esp, 0xc
lea esi, [esp + 0x218]
call fcn.00436a90
test eax, eax
jne 0x436c48
push eax
mov eax, esi
push eax
call ebx
test eax, eax
je 0x436ca1
mov ecx, esi
push ecx
push 0x4da804
call fcn.00487d90
add esp, 8
push 0x5c
add edi, 2
push edi
call fcn.0049ee11
mov edi, eax
add esp, 8
test edi, edi
jne 0x436c00
lea esi, [esp + 0x10]
call fcn.00436a90
test eax, eax
jne 0x436ce6
push eax
mov eax, esi
push eax
call ebx
test eax, eax
jne 0x436cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
push ecx
push 0x4da7e4
call fcn.00487d90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x21c]
push edx
push 0x4da7e4
call fcn.00487d90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
push 0x4da804
call fcn.00487d90
add esp, 8
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0049c72a
mov esp, ebp
pop ebp
ret
Function at 0x437e00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor eax, eax
push eax
push 0x80
push 3
push eax
push 7
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x437e42
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437e50
Capabilities:
Check if file exists
Create http request
Download and write a file
Get file attributes
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbe88
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push esi
mov byte [ebp - 0xd], 1
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x437eb7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x437eb7
push esi
call fcn.00437e00
add esp, 4
or eax, edx
je 0x437eb7
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x437ee7
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x18]
push eax
push 6
push edi
mov dword [ebp - 0x18], 0x7530
call esi
push 4
lea ecx, [ebp - 0x18]
push ecx
push 5
push edi
call esi
mov edx, dword [ebp + 8]
push 0
push 0x84000100
push 0x3a
push str.Accept:___r_nConnection:_Keep_Alive_r_nPragma:_no_cache__r_n_r_n
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
je 0x437fdd
push 0x100000
mov dword [ebp - 0x14], 0
call fcn.0049c139
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
push 0x100000
push 0
push esi
call fcn.0049f910
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x437fbe
lea ecx, [ebp - 0x14]
push ecx
push 0x100000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x437fb3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x437fb7
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], 0
jne 0x437f80
jmp 0x437fb7
mov byte [ebp - 0xd], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0049c71f
mov bl, byte [ebp - 0xd]
mov edi, dword [ebp - 0x1c]
add esp, 4
jmp 0x437fdf
xor bl, bl
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4f9480
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4f9498], eax
mov esi, 9
nop
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4388d0
push 0
push 0
call edi
dec esi
jne 0x4389c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4392e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc90c
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [eax], vtable.TiXmlBase.0
xor ecx, ecx
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], ecx
mov edx, 0x4f9954
mov dword [eax], vtable.TiXmlNode.0
mov dword [eax + 0x20], edx
mov byte [ebp - 4], 1
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 5
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [ebp - 4], 2
mov dword [eax], vtable.TiXmlDeclaration.0
mov dword [eax + 0x2c], edx
mov byte [ebp - 4], 3
mov dword [eax + 0x30], edx
mov byte [ebp - 4], 4
mov dword [eax + 0x34], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x43a070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0a76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f4214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebx], vtable.TiXmlBase.0
xor eax, eax
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebx], vtable.TiXmlNode.0
mov dword [ebx + 0x20], 0x4f9954
mov byte [ebp - 4], 1
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], 2
lea edi, [ebx + 0x34]
mov dword [ebx], vtable.TiXmlDocument.0
mov dword [edi], 0x4f9954
mov byte [ebp - 4], 3
mov dword [ebx + 0x40], ecx
mov dword [ebx + 0x3c], ecx
push 0x4d837f
xor esi, esi
mov dword [ebx + 0x38], 4
mov byte [ebx + 0x44], al
mov byte [ebx + 0x2c], al
mov dword [ebx + 0x30], eax
call fcn.00438c40
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43fff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43fff7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4400cd
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 + 0x4d16a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4d16a8]
add ecx, 8
sub edx, 8
dec esi
jne 0x440010
pop edi
test edx, edx
je 0x4400ea
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4d16a8]
inc ecx
dec edx
jne 0x4400d1
not eax
pop esi
ret

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

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

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

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 + 0x4d16a8]
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 + 0x4d16a8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4407c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x4407f6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4407ec
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x440807
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0049fa60
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x4409c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x440a07
cmp byte [esi + 1], 0
je 0x440a0f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x440a22
cmp byte [esi + 1], 0
je 0x440a16
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x440a2a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4409e1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x440a2a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x440a3c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0049c7c6
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x440a59
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x440b6d
jmp 0x440a79
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x440a88
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x440a9f
mov ebx, 0x404
cmp byte [esi], 0
je 0x440ac4
cmp byte [esi + 1], 0
je 0x440b6d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x440ac7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x440af0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x440aeb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x440b19
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x440b01
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0049fa60
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x440b6d
lea eax, [ebx - 3]
test eax, eax
js 0x440b5b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x440b4f
cmp byte [eax + ecx + 1], 0x4b
jne 0x440b4f
cmp byte [eax + ecx + 2], 5
jne 0x440b4f
cmp byte [eax + ecx + 3], 6
je 0x440b55
test eax, eax
jns 0x440b30
jmp 0x440b5b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x440b6d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x440a70
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049c78c
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret