joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076ef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.100b0420
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x10076f5d
call fcn.100b0420
mov dword [ebx], 0x2746
jmp 0x10076f6f
cmp eax, 0x4d2
jne 0x10076f72
call fcn.100b0420
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10076f8a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
call fcn.100b0420
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret

Function at 0x10077090
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.100b0420
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x100770f4
call fcn.100b0420
mov dword [ebx], 0x2746
jmp 0x10077106
cmp eax, 0x4d2
jne 0x10077109
call fcn.100b0420
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10077121
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
call fcn.100b0420
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret
Function at 0x10077210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
push 0
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.100b0420
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x10077272
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x17
jne 0x10077290
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.100b0420
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, edi
mov dword [ebx], 0
pop edi
pop esi
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret

Function at 0x10077370
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x100773b1
call fcn.100b0420
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.100b0420
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x10077408
jle 0x10077416
call fcn.100b0420
mov dword [edi + 4], eax
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret
Function at 0x10077430
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x10077471
call fcn.100b0420
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.100b0420
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x100774c8
jle 0x100774d6
call fcn.100b0420
mov dword [edi + 4], eax
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret

Function at 0x100774f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x10077530
call fcn.100b0420
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.100b0420
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x1007759a
call fcn.100b0420
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret
Function at 0x100779d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c35c8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x102bd850]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x102bd850]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0xc]
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x50], 0
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x10077b3f
call fcn.100b0420
cmp dword [esi], 0xffffffff
je 0x10077a9d
push 0
push 0
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [esp + 0x38], eax
test eax, eax
je 0x10077a9d
mov edi, dword [esi]
lea ebx, [eax + 0x18]
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x34], 1
mov byte [esp + 0x50], 1
call fcn.100b0420
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push edi
mov dword [esp + 0x28], 0x3e3
call fcn.10077820
mov byte [esp + 0x50], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x1c]
xorps xmm0, xmm0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x38], 0
call fcn.100b0420
mov ecx, dword [esi]
lea edx, [esi + 4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push 1
call fcn.10076cb0
add esp, 8
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x50], 2
mov edi, dword [esi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov dword [esi + 8], 0
mov byte [esp + 0x50], 0
test edi, edi
je 0x10077b34
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10077b34
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10077b34
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10077a33
mov dword [esp + 0x50], 0xffffffff
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
Function at 0x10078410
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x104], 0x68004c
push esi
push edi
push 1
push 0x102cbfe8
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x104]
push 0x1e
push eax
mov dword [ebp - 0x100], 0x720072
mov dword [ebp - 0xfc], 0x6f0068
mov dword [ebp - 0xf8], 0x210066
mov dword [ebp - 0xf4], 0x60006c
mov dword [ebp - 0xf0], 0x65006f
mov dword [ebp - 0xec], 0x750060
mov dword [ebp - 0xe8], 0x73006e
mov dword [ebp - 0xe4], 0x210078
mov dword [ebp - 0xe0], 0x640069
mov dword [ebp - 0xdc], 0x650060
mov dword [ebp - 0xd8], 0x730064
mov dword [ebp - 0xd4], 0x21003b
mov dword [ebp - 0xd0], 0x300024
mov dword [ebp - 0xcc], 0x10024
call fcn.10048e70
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.1008e065
mov esp, ebp
pop ebp
ret

Function at 0x10079540
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x102bd850]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
push 0x102cc06c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10079586
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x102cc070
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 8], 0
je 0x1007959d
push 0
push 0x102cc070
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x100795b4
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1008e065
mov esp, ebp
pop ebp
ret 4
xorps xmm0, xmm0
movq qword [esp + 8], xmm0
mov dword [esp + 8], eax
call fcn.100b0420
mov edx, str.winsock
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.10075810
int3
Function at 0x10079ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3c83
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x102bd850]
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 ebx, ecx
push 4
mov dword [ebp - 0x1c], ebx
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1008e26d
mov esi, eax
add esp, 4
test esi, esi
je 0x10079b3a
push 1
mov dword [esi], 0
call fcn.10089cb8
add esp, 4
mov dword [esi], eax
jmp 0x10079b3c
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.100094c0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x38]
mov eax, dword [ebp + 8]
mov dword [ebx], vtable.boost::asio::basic_streambuf_class_std::allocator_char__.0
mov dword [ecx], eax
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
cmp dword [ecx], 0x80
mov dword [ebp - 0x18], 0x80
cmovbe eax, ecx
lea ecx, [ebp - 0x14]
mov esi, dword [eax]
cmp esi, 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmovae eax, ecx
mov dword [ebp - 0x18], 1
lea ecx, [ebx + 0x3c]
push dword [eax]
call fcn.1007a1d0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
add esi, edx
sub esi, edx
mov dword [ecx], edx
mov ecx, dword [ebx + 0x20]
mov dword [ecx], edx
mov ecx, dword [ebx + 0x30]
mov dword [ecx], esi
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret 8
Function at 0x10082460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x102bd850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x102cd26c]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x100824a0
cmp dword [eax + 4], 0
jne 0x10082558
mov eax, dword [eax]
test eax, eax
jne 0x10082490
and esi, 0xfffff000
mov dword [ebp - 0x2c], esi
add esi, 0xfffff000
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, ecx
jb 0x100824e0
lea ebx, [ebx]
push 0x40
push 0x3000
push 0x1000
push esi
call edi
test eax, eax
jne 0x1008251f
sub esi, 0x1000
cmp esi, dword [ebp - 0x30]
jae 0x100824c0
jmp 0x100824e4
test eax, eax
jne 0x1008251f
mov esi, dword [ebp - 0x2c]
add esi, 0x1000
cmp esi, ebx
jae 0x10082557
push 0x40
push 0x3000
push 0x1000
push esi
call edi
test eax, eax
jne 0x1008251f
add esi, 0x1000
cmp esi, ebx
jb 0x100824f1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008e065
mov esp, ebp
pop ebp
ret
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov esi, edx
mov dword [eax + 8], 0
sub esi, eax
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10082534
mov ecx, dword [0x102cd26c]
mov dword [eax], ecx
mov dword [0x102cd26c], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1008e065
mov esp, ebp
pop ebp
ret

Function at 0x100835e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x100835eb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10083600
Function at 0x10088ea0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x102ca840
mov word [0x102cad40], 0
push esi
dec eax
mov word [0x102ca840], 0x301
push edi
mov edi, 0x102ca840
mov byte [0x102cad43], 1
mov ebx, 2
sub edi, eax
lea esi, [eax + 2]
mov cl, byte [esi]
lea esi, [esi + 1]
mov dl, cl
mov al, cl
and dl, 0x80
neg dl
sbb dl, dl
add al, al
xor al, cl
and dl, 0x1b
xor al, dl
mov byte [edi + esi - 1], al
movzx eax, al
mov byte [eax + 0x102cad40], bl
inc ebx
cmp ebx, 0x100
jl 0x10088ed5
mov byte [0x102ca5c0], 0x63
mov ebx, 1
mov byte [0x102ca723], 0
jmp 0x10088f20
movzx eax, bl
mov ecx, 0x102ca93f
movzx eax, byte [eax + 0x102cad40]
sub ecx, eax
mov cl, byte [ecx]
mov dl, cl
rol dl, 1
xor cl, dl
rol dl, 1
xor cl, dl
rol dl, 1
mov al, dl
rol al, 1
xor al, cl
xor al, dl
xor al, 0x63
mov byte [ebx + 0x102ca5c0], al
movzx eax, al
mov byte [eax + 0x102ca6c0], bl
inc ebx
cmp ebx, 0x100
jl 0x10088f20
mov al, 1
mov edx, 0x102ca7c0
movzx ecx, al
mov dword [edx], ecx
mov cl, al
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
add edx, 4
xor al, cl
cmp edx, 0x102ca838
jl 0x10088f68
mov ecx, dword [0x102bea98]
xor esi, esi
mov edi, 0xff
mov ah, byte [esi + 0x102ca5c0]
mov bl, ah
mov bh, ah
and bl, 0x80
mov al, bl
neg al
sbb al, al
add bh, bh
and al, 0x1b
mov dl, bh
xor dl, al
xor dl, ah
neg bl
movzx edx, dl
sbb bl, bl
movzx eax, ah
shl edx, 8
and bl, 0x1b
or edx, eax
xor bh, bl
mov bl, byte [esi + 0x102ca6c0]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x102ca940], edx
test cl, cl
je 0x1008900c
test bl, bl
je 0x1008900c
movzx eax, cl
movzx edx, bl
movzx eax, byte [eax + 0x102cad40]
movzx edx, byte [edx + 0x102cad40]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x102ca840]
mov byte [ebp - 1], al
jmp 0x10089010
mov byte [ebp - 1], 0
test ch, ch
je 0x1008903c
test bl, bl
je 0x1008903c
movzx eax, ch
movzx edx, bl
movzx eax, byte [eax + 0x102cad40]
movzx edx, byte [edx + 0x102cad40]
add eax, edx
cdq
idiv edi
mov al, byte [edx + 0x102ca840]
mov byte [ebp - 2], al
jmp 0x10089040
mov byte [ebp - 2], 0
mov al, byte [0x102bea9a]
test al, al
je 0x1008906e
test bl, bl
je 0x1008906e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x102cad40]
movzx edx, byte [edx + 0x102cad40]
add eax, edx
cdq
idiv edi
mov bh, byte [edx + 0x102ca840]
jmp 0x10089070
xor bh, bh
mov al, byte [0x102bea9b]
test al, al
je 0x1008909e
test bl, bl
je 0x1008909e
movzx eax, al
movzx edx, bl
movzx eax, byte [eax + 0x102cad40]
movzx edx, byte [edx + 0x102cad40]
add eax, edx
cdq
idiv edi
mov bl, byte [edx + 0x102ca840]
jmp 0x100890a0
xor bl, bl
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 2]
shl edx, 8
or edx, eax
movzx eax, bh
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
mov dword [esi*4 + 0x102ca1c0], edx
inc esi
cmp esi, 0x100
jl 0x10088f95
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5c0008], 0x8088405
inc edx
mov dword [ebx + 0x5c0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5a7a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7a6a
ret