joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call dbg.debug_is_active
test eax, eax
je 0x403442
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408475
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xe
mov dword [esp + 4], 1
mov dword [esp], str._socket_accept
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4034db
call dbg.debug_is_active
test eax, eax
je 0x4034db
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408475
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.socket_addr2string
mov dword [esp + 8], eax
mov dword [esp + 4], str._accepted_connection_from__s_
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call dbg.debug_is_active
test eax, eax
je 0x403547
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408475
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._socket_accept__sock_d_
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40354f
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x10]
cmp dword [ebp + 8], eax
jne 0x40359b
mov dword [ebp - 0xc], 0
mov eax, dword [0x410f98]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0xc]
jmp 0x4035bf
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
leave
ret
Function at 0x4035c1
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call dbg.debug_is_active
test eax, eax
je 0x40363b
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408475
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__socket_write_fd_d_count_d...
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call dbg.debug_is_active
test eax, eax
je 0x4036c8
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408475
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [eax + 0x50]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [eax + 0x30]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.stdinfd_d_stdoutfd_d_stderrfd_d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x30]
cmp dword [ebp + 8], eax
je 0x4036e2
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x10]
cmp dword [ebp + 8], eax
jne 0x40370a
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
jmp 0x403763
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x50]
cmp dword [ebp + 8], eax
jne 0x40373f
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
jmp 0x403763
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403876
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call dbg.debug_is_active
test eax, eax
je 0x4038f2
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], str._Debug_starting_
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call dbg.debug_is_active
test eax, eax
je 0x40395f
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov dword [esp + 8], str.0.13._BUILD15.12.2019_16:49__Win32
mov dword [esp + 4], str.vsockets_tools_version_s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
nop
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x404880
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410f64
call sym._EnterCriticalSection_4
mov ebx, dword [0x410f5c]
sub esp, 4
test ebx, ebx
je 0x4048cb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4048c4
test esi, esi
je 0x4048c4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4048a0
mov dword [esp], 0x410f64
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x404ad0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x404b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x404bf4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x404b5e
cmp eax, 4
jne 0x404b80
test esi, esi
je 0x404b72
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x404b64
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x404bbf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x404bb1
cmp ecx, 0x40
je 0x404b72
cmp ecx, 4
je 0x404b72
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404ad0
lea esi, [esi]
Function at 0x401270
Capabilities:
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43781b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a8
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x8a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4487e8]
xor eax, esp
push eax
lea eax, [esp + 0x8b8]
mov dword fs:[0], eax
push 0x401140
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00407bfc
push 0
call fcn.00408dd5
add esp, 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6ae]
push edx
mov word [esp + 0x6b0], cx
call fcn.00425160
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a6]
push ecx
mov word [esp + 0x4a8], ax
call fcn.00425160
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x29e]
push eax
mov word [esp + 0x2a0], dx
call fcn.00425160
add esp, 0xc
lea ecx, [esp + 0x6a4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x6a4]
push edx
lea eax, [esp + 0x4a0]
push 0x104
push eax
call fcn.0042391d
add esp, 0xc
lea ecx, [esp + 0x6a4]
push ecx
lea edx, [esp + 0x298]
push 0x104
push edx
call fcn.0042391d
add esp, 0xc
push 0x43dd40
lea eax, [esp + 0x4a0]
push 0x104
push eax
call fcn.0042398c
add esp, 0xc
push str.Zt57643.exe
lea ecx, [esp + 0x298]
push 0x104
push ecx
call fcn.0042398c
lea edx, [esp + 0x4a8]
add esp, 0xc
test edx, edx
je 0x4014f5
mov eax, edx
call fcn.00401520
test eax, eax
je 0x4014f5
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
mov edi, eax
test esi, esi
jne 0x401431
cmp edi, 2
je 0x401431
lea ecx, [esp + 0x294]
push ecx
call fcn.004015b0
add esp, 4
lea edx, [esp + 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401431
call ebx
mov edi, eax
cmp edi, 5
je 0x401494
mov eax, dword [0x44c5c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x44c5c0
call edx
add eax, 0x10
mov dword [esp + 0x28c], eax
mov eax, dword [0x44c5c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x44c5c0
call edx
add eax, 0x10
mov dword [esp + 0x290], eax
lea eax, [esp + 0x49c]
push eax
lea edx, [esp + 0x298]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8c4], 0
call fcn.00401b00
lea esi, [esp + 0x54]
call fcn.00401ab0
push 0x38
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x24], 0x3c
call fcn.00425160
add esp, 0xc
lea eax, [esp + 0x18]
lea edx, [esp + 0x294]
push eax
mov dword [esp + 0x28], str.open
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
lea ecx, [esp + 0x29c]
push ecx
call esi
push 4
push 0
lea edx, [esp + 0x4a4]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x8b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.004238bd
mov esp, ebp
pop ebp
ret
Function at 0x401520
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
mov esi, eax
xor eax, eax
cmp ax, word [esi]
jne 0x40152e
pop esi
pop ecx
ret
push ebx
push edi
push 0x43dd7c
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401594
push edi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4015b0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x121c
call fcn.00426b40
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x1218], eax
mov eax, dword [esp + 0x1220]
mov dword [esp], eax
test eax, eax
je 0x4015f4
cmp word [eax], 0
je 0x4015f4
lea eax, [esp + 8]
push eax
push 0x1000
lea ecx, [esp + 0x18]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40160b
xor eax, eax
mov ecx, dword [esp + 0x1218]
xor ecx, esp
call fcn.004238bd
add esp, 0x121c
ret
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x102a]
push eax
shr ebx, 2
mov word [esp + 0x102c], dx
call fcn.00425160
add esp, 0xc
xor edi, edi
test ebx, ebx
jbe 0x4016a9
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + edi*4 + 0x20]
push ecx
push 0
push 0x410
call ebp
mov esi, eax
test esi, esi
je 0x40169d
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40169d
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x1024]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1020]
push eax
push ecx
call fcn.00423d0b
add esp, 8
test eax, eax
je 0x4016c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x401642
xor eax, eax
mov ecx, dword [esp + 0x1228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004238bd
add esp, 0x121c
ret
mov edx, dword [esp + edi*4 + 0x20]
push 0
push edx
push 0
push 1
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x4016ab
Function at 0x4017b0
Capabilities:
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4487e8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
test esi, esi
je 0x40184d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017d5
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x40184d
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00425160
push 0
lea ebx, [esp + 0x18]
call fcn.00401720
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebx
cmp eax, 0x10
je 0x401832
lea edx, [esp + 4]
push edx
call fcn.004017b0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004238bd
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004238bd
add esp, 0x20c
ret

Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4019e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019d0
cmp esi, eax
jb 0x4019ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4041d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4041d7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4042b4
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 + 0x43f868]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x43f868]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4041f0
pop edi
test edx, edx
je 0x4042db
jmp 0x4042c0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x43f868]
inc ecx
sub edx, 1
jne 0x4042c0
not eax
pop esi
ret

Function at 0x4042e0
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 + 0x43f868]
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 + 0x43f868]
mov dword [edx + 8], ecx
ret

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

Function at 0x404ae0
Capabilities:
Read file on windows

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

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x404b73
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404b6d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x404b9f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x404b85
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0042ad70
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x404bb6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x404bb0
cmp byte [esi + 8], 0
je 0x404bb0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x404c50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x404c95
cmp byte [esi + 1], 0
je 0x404c9d
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 ebp
je 0x404cb2
cmp byte [esi + 1], 0
je 0x404ca4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x404cbb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x404c6e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x404cbb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x404ccf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042409f
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404ced
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x404e01
jmp 0x404d10
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x404d21
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x404d3a
mov ebp, 0x404
cmp byte [esi], 0
je 0x404d5f
cmp byte [esi + 1], 0
je 0x404e01
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 0x404d62
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x404d8a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404d84
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x404db0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x404d9b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0042ad70
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x404e01
lea eax, [ebp - 3]
test eax, eax
jl 0x404dec
dec eax
cmp byte [eax + ebx], 0x50
jne 0x404ddc
cmp byte [eax + ebx + 1], 0x4b
jne 0x404ddc
cmp byte [eax + ebx + 2], 5
jne 0x404ddc
cmp byte [eax + ebx + 3], 6
je 0x404de2
test eax, eax
jge 0x404dc0
jmp 0x404dec
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x404e01
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x404d04
push ebx
call fcn.00423fc2
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret