joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e920
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b64f0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jne 0x44eb13
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
mov eax, 2
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44eb0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x44ea02
xor esi, esi
jmp 0x44e9c0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44eb0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x44ea02
inc esi
cmp esi, 0xa
jl 0x44e9c0
jmp 0x44eb0a
push 0
push 0x5fe3a5
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.004057c0
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00405a50
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44ea9e
cmp dword [ebp - 0x14], 0x10
jb 0x44ea83
push dword [ebp - 0x28]
call fcn.0044ed01
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004045a0
cmp dword [ebp - 0x50], 0x10
jb 0x44eaaf
push dword [ebp - 0x64]
call fcn.0044ed01
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x44ead6
push dword [ebp - 0x7c]
call fcn.0044ed01
add esp, 4
cmp byte [edi + 0x2d], 0
jne 0x44eaf9
cmp dword [edi + 0xc], 0
je 0x44eaf9
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004066c0
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
jb 0x44eb0a
push dword [ebp - 0x28]
call fcn.0044ed01
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057468d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x453a17
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x453a5c
call fcn.0044f2c2
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x453a5c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x453a78
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045b61c
mov ebx, eax
test edi, edi
je 0x453a76
test esi, esi
je 0x453a76
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x459b3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044f2c2
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x459b73
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00459b94
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46e507
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0045ac2e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x46e543
call fcn.0046e726
mov dword [esi + 0xc], 1
jmp 0x46e548
call fcn.0046e726
cmp dword [esi], 0
je 0x46e591
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x46e56b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00453aec
jmp 0x46e57c
push 0xff
mov ecx, esi
call fcn.00442960
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004519f5
jmp 0x46e5b5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x46e5b5
push dword [esi]
push dword [ebp - 4]
call fcn.00460a9b
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46e67b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0046e726
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x46e6c3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00453aec
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004519f5
jmp 0x46e6ce
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00460a9b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x479e3c
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0048d127
call fcn.0044f316
cmp dword [eax + 0x14], 0
jne 0x479e57
mov ecx, esi
pop esi
jmp fcn.0047921a
pop esi
ret

Function at 0x487939
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004057b0
call fcn.0044f316
cmp dword [eax + 0x14], 0
jne 0x487954
mov ecx, esi
pop esi
jmp fcn.00487222
pop esi
ret
Function at 0x58c8a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0057ee5c
mov dword [ebp - 0x14], eax
cmp dword [0x63ab6c], esi
jne 0x58c99b
push 0x800
push esi
push 0x5f6bf0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x58c928
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x58ca7b
push esi
push esi
push 0x5f6bf0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x58ca7b
push 0x5f6c08
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58ca7b
push eax
call ebx
push 0x5f6c14
push edi
mov dword [0x63ab6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f6c24
push edi
mov dword [0x63ab70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f6c38
push edi
mov dword [0x63ab74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63ab7c], eax
test eax, eax
je 0x58c998
push 0x5f6c54
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63ab78], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x58c9c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x58c9b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x58c9d5
push 4
pop eax
jmp 0x58ca7d
cmp dword [ebp - 0x14], esi
je 0x58c9d5
push dword [0x63ab6c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x58c9ba
mov eax, dword [0x63ab78]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x58ca33
cmp dword [0x63ab7c], edi
je 0x58ca33
push eax
call ebx
push dword [0x63ab7c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x58ca33
test eax, eax
je 0x58ca33
call ecx
test eax, eax
je 0x58ca28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x58ca28
test byte [ebp - 8], 1
jne 0x58ca33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x58ca63
mov eax, dword [0x63ab70]
cmp eax, edi
je 0x58ca60
push eax
call ebx
test eax, eax
je 0x58ca60
call eax
mov esi, eax
test esi, esi
je 0x58ca60
mov eax, dword [0x63ab74]
cmp eax, edi
je 0x58ca60
push eax
call ebx
test eax, eax
je 0x58ca60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x63ab6c]
call ebx
test eax, eax
je 0x58ca7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x58ca7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057468d
mov esp, ebp
pop ebp
ret
Function at 0x59c71f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401f3b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401f34
test esi, esi
je 0x401f34
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f10
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402120
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 sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402170
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 sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402244
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x4021ae
cmp eax, 4
jne 0x4021d0
test esi, esi
je 0x4021c2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x4021b4
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 sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40220f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402201
cmp ecx, 0x40
je 0x4021c2
cmp ecx, 4
je 0x4021c2
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 sub.KERNEL32.dll_VirtualProtect
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.00402120
lea esi, [esi]
Function at 0x4030b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8e70
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6dd1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
je 0x403113
push fcn.0051dfd0
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 0xc
push eax
call fcn.0041eb24
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e89b
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x403149
push fcn.0051dfd0
lea esi, [eax - 4]
mov dword [ebp - 4], 1
push dword [esi]
push 0xc
push eax
call fcn.0041eb24
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e89b
add esp, 8
lea ecx, [edi + 0x48]
call fcn.0051dfd0
lea ecx, [edi + 0x3c]
call fcn.0051dfd0
lea ecx, [edi + 0x30]
call fcn.0051dfd0
lea ecx, [edi + 0x24]
call fcn.0051dfd0
lea ecx, [edi + 0x18]
call fcn.0051dfd0
lea ecx, [edi + 0xc]
call fcn.0051dfd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9201
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6dd1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
mov byte [esi], 0
lea ecx, [esi + 0x68]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movsd qword [esi + 0x18], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
call fcn.0051e180
mov dword [ebp - 4], 0
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 1
call fcn.0050c930
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 2
call fcn.0050c930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490920
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf538
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6dd1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x40], 0x64
call fcn.00490790
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c9950
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.0051aa10
cmp eax, 0x26
jge 0x4c9965
pop edi
xor al, al
pop esi
ret
movzx eax, word [esi + 0x10]
mov edx, 0x14
mov word [edi], ax
movzx eax, word [esi + 0xe]
mov word [edi + 2], ax
movzx eax, word [esi + 0xc]
mov word [edi + 4], ax
movzx eax, word [esi + 0xa]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
movzx eax, word [esi + 6]
mov word [edi + 0xa], ax
movzx eax, word [esi + 4]
mov word [edi + 0xc], ax
movzx eax, word [esi + 2]
mov word [edi + 0xe], ax
movzx eax, word [esi + 0x1a]
mov word [edi + 0x10], ax
movzx eax, word [esi + 0x18]
mov word [edi + 0x12], ax
movzx eax, word [esi + 0x16]
mov word [edi + 0x14], ax
movzx eax, word [esi + 0x14]
mov word [edi + 0x16], ax
movzx eax, word [esi + 0x24]
mov word [edi + 0x18], ax
movzx eax, word [esi + 0x22]
mov word [edi + 0x1a], ax
movzx eax, word [esi + 0x20]
mov word [edi + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x1e], ax
mov eax, 0x10
nop
movzx ecx, word [esi + edx*2 + 2]
mov word [edi + eax*2], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 + 2], cx
add eax, 2
cmp edx, 0x18
jl 0x4c99f0
mov edx, 0x19
movzx ecx, word [esi + edx*2 + 2]
lea eax, [eax + 2]
mov word [edi + eax*2 - 4], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 - 2], cx
cmp edx, 0x24
jl 0x4c9a12
pop edi
mov al, 1
pop esi
ret
Function at 0x4da670
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5fffd0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x4da6c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4da6cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4da787
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
sub edi, 1
jne 0x4da6e0
pop edi
test esi, esi
je 0x4da7aa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
sub esi, 1
jne 0x4da790
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4dd5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6dd1e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x5c], eax
mov edi, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], edx
push eax
push edi
call dword [0x5de434]
test eax, eax
jne 0x4dd5ef
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e885
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x48]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, eax
or edx, 0x20
and bl, 0x20
mov ebx, 0x81000000
cmove edx, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, ebx
or edx, eax
mov dword [ebp - 0x4c], edx
test esi, esi
jne 0x4dd648
or edx, 0x800000
mov dword [ebp - 0x4c], edx
push 0
push edi
call dword [0x5de33c]
mov esi, eax
cmp esi, 0x28
jbe 0x4dd6f3
mov ebx, dword [0x5de49c]
push 0
push 0
push 0
push edi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 8]
push eax
push edi
call dword [0x5de504]
push 0
push 0
push 0x24
push edi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [0x5de504]
mov eax, 0x54ad
cmp word [ebp - 8], ax
jne 0x4dd6f3
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x4dd6f3
push 0
push 0
push ecx
push edi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [0x5de504]
mov eax, dword [ebp - 0x14]
cmp eax, 0x5a4d
je 0x4dd6e9
cmp eax, 0x454e
je 0x4dd6e9
cmp eax, 0x454c
je 0x4dd6e9
cmp eax, 0x4550
jne 0x4dd6f3
mov eax, dword [ebp - 0x4c]
or eax, 0x400000
jmp 0x4dd6f6
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4dd6ff
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4dd708
mov dword [eax], esi
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
test ebx, ebx
je 0x4dd746
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.004dd800
push esi
push edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.004dd800
push dword [ebp - 0x40]
mov dword [ebx + 8], eax
push dword [ebp - 0x44]
mov dword [ebx + 0xc], edx
call fcn.004dd800
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x4dd76c
push esi
push edi
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 8]
call fcn.004dd780
movzx ecx, word [ebp - 8]
add esp, 8
movzx eax, word [ebp - 0x4c]
shl ecx, 0x10
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e885
mov esp, ebp
pop ebp
ret
Function at 0x4dd950
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5fffd0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x4dd9a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4dd9ab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4dda67
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
sub edi, 1
jne 0x4dd9c0
pop edi
test esi, esi
je 0x4dda8a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fffd0]
sub esi, 1
jne 0x4dda70
not ecx
mov eax, ecx
pop esi
pop ebp
ret