joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fae0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x44fb50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c47f5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x501040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x14], edx
jbe 0x44fb94
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x44fbb8
mov edi, dword [ebp - 0x14]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x44fba3
mov edi, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040acc0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44fbe8
mov dword [edi], eax
mov eax, edi
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x5d1745d
je 0x44fd2f
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x20], 0
call fcn.00472c0c
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.00407330
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4f5300]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x4f5300]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x44fcd1
divss xmm0, xmm3
call fcn.00401470
call fcn.004bfb80
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x44fcb5
cmp eax, 0x200
jae 0x44fcb3
shl eax, 3
cmp eax, ecx
jae 0x44fcb5
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004095e0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040acc0
mov edx, dword [eax]
jmp 0x44fcd4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x44fcfc
mov dword [ecx + eax*8], edi
jmp 0x44fd0e
cmp esi, edx
jne 0x44fd05
mov dword [ecx + eax*8], edi
jmp 0x44fd12
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x44fd12
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov byte [eax + 4], 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 8
push str.unordered_map_set_too_long
call fcn.004741ba
int3
Function at 0x4569e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x26c], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00456bf0
test al, al
je 0x456bbe
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
je 0x456bbe
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 0x8004667e
push esi
xor bl, bl
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x456b64
xorps xmm0, xmm0
mov eax, 2
push edi
movlpd qword [ebp - 0x38], xmm0
mov word [ebp - 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push eax
push 0
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x260], esi
push eax
push esi
mov dword [ebp - 0x264], 1
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x456b64
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov edi, dword [ebp - 0x4c]
test eax, eax
je 0x456b31
test edi, edi
je 0x456b64
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
je 0x456b64
nop dword [eax + eax]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x456b4b
cmp ecx, edi
je 0x456b56
add eax, 0x8c
cmp eax, edx
jne 0x456b40
jmp 0x456b64
mov ecx, dword [ebp - 0x268]
push eax
call fcn.00404fd0
mov bl, 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test bl, bl
jne 0x456bc0
mov ecx, dword [ebp - 0x1c]
mov eax, 0xea0ea0eb
mov edi, dword [ebp - 0x20]
xor esi, esi
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x456bc0
lea eax, [edi + 0x80]
cmp dword [eax - 4], 0
lea edx, [eax - 0x80]
je 0x456ba2
cmp dword [eax], 0
jne 0x456bae
inc esi
add eax, 0x8c
cmp esi, ecx
jb 0x456b94
jmp 0x456bc0
mov ecx, dword [ebp - 0x268]
push edx
call fcn.00404fd0
mov bl, 1
jmp 0x456bc0
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.0042aea0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
Function at 0x457170
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4571be
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x1f
push 0
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4571cf
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047299a
mov esp, ebp
pop ebp
ret
Function at 0x458480
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x501040]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
push 0x38
xor esi, esi
lea eax, [esp + 0x18]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x18], ebx
call fcn.0049cdf0
add esp, 0xc
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
je 0x4584f9
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [esp + 0x10]
push esi
push eax
push esi
call edi
cmp eax, 0x7a
jne 0x4584e8
push dword [esp + 0x10]
call fcn.004a0b20
mov esi, eax
add esp, 4
test esi, esi
je 0x4584f9
push 0
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x45850d
test esi, esi
je 0x4584f9
push esi
call fcn.004a0b05
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x45853b
mov eax, dword [esp + 0xc]
lea edi, [esi + 4]
nop word [eax + eax]
cmp dword [edi], eax
jne 0x458533
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
mov eax, dword [esp + 0xc]
inc ebx
add edi, 0x38
cmp ebx, dword [esi]
jb 0x458520
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 3
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.IPHLPAPI.DLL_CreateIpForwardEntry]
test eax, eax
jne 0x4584f9
push esi
call fcn.004a0b05
mov ecx, dword [esp + 0x50]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047299a
mov esp, ebp
pop ebp
ret

Function at 0x4585e0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x501040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
cmp eax, 0xffffffff
je 0x458649
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [esp + 0x10]
push edi
push eax
push edi
call esi
cmp eax, 0x7a
jne 0x458638
push dword [esp + 0x10]
call fcn.004a0b20
mov edi, eax
add esp, 4
test edi, edi
je 0x458649
push 0
lea eax, [esp + 0x14]
push eax
push edi
call esi
test eax, eax
je 0x45865b
test edi, edi
je 0x458649
push edi
call fcn.004a0b05
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047299a
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test edi, edi
je 0x458649
lea esi, [edi + 4]
cmp ebx, dword [edi]
jae 0x458640
mov eax, dword [esp + 0xc]
cmp dword [esi], eax
jne 0x458677
push esi
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
inc ebx
add esi, 0x38
jmp 0x458664
Function at 0x45ae60
Capabilities:
Check for time delay via queryperformancecounter
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x501040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
cmp dword [esi + 0x10], 0
je 0x45b008
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x45b008
cmp dword [esi + 0x14], 7
jbe 0x45aea5
mov esi, dword [esi]
push 0x24
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x45affe
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x40]
push eax
push esi
call edi
test eax, eax
je 0x45aff7
cmp dword [esp + 0x44], 1
je 0x45aff5
lea eax, [esp + 0x40]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x45aff7
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x45af2e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x45af2e
push 0
push 0x3e8
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.004bfe30
push edx
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
jmp 0x45af43
lea ecx, [esp + 0x30]
call fcn.00415d10
push 0
push 0xf4240
push dword [eax + 4]
push dword [eax]
call fcn.004bfe30
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x40]
push eax
push esi
call edi
test eax, eax
je 0x45aff7
mov eax, dword [esp + 0x44]
cmp eax, 1
je 0x45aff5
cmp eax, 3
jne 0x45aff7
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x45afbf
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x45afbf
push 0
push 0x3e8
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.004bfe30
push edx
push eax
push dword [esp + 0x3c]
push dword [esp + 0x3c]
jmp 0x45afd4
lea ecx, [esp + 0x10]
call fcn.00415d10
push 0
push 0xf4240
push dword [eax + 4]
push dword [eax]
call fcn.004bfe30
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x28]
jne 0x45aff7
jb 0x45af50
cmp eax, 0xea60
ja 0x45aff7
jmp 0x45af50
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x5c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047299a
mov esp, ebp
pop ebp
ret

Function at 0x45b970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x45b9a1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x45b990
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x46dfb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call fcn.004a556e
push eax
call fcn.004a8160
add esp, 8
push 0x505ef8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x505f08
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x505ee0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x505f00], eax
cmp eax, 0xffffffff
je 0x46dffb
mov esp, ebp
pop ebp
ret
push str.D:codeworkspacewintunsockslwIP_srcwin32_sys_arch.c
push 0x93
push str.TlsAlloc_failed
push str.Assertion___s__failed_at_line__d_in__s_n
call fcn.004638d0
push 0
call fcn.004a6e8a
add esp, 0x14
call fcn.004a07f0
int3

Function at 0x47373e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47377d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47377d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47377d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47377d
cmp dword [ecx + 0x74], 0xe
jbe 0x47377d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x475690
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.00475860
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x47576d
mov edx, dword [ebp - 4]
cmp edx, dword [0x50113c]
jb 0x4756da
mov eax, dword [ebp - 4]
cmp eax, dword [0x501140]
ja 0x4756da
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x4756aa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0049cdf0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x4756ff
jmp 0x47576d
cmp dword [ebp - 0x14], 0x10000
jne 0x475753
cmp dword [ebp - 0x18], 0x10000
jb 0x475753
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x475736
mov eax, dword [ebp - 8]
jmp 0x47576f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x475746
xor eax, eax
jmp 0x47576f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x475768
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.00475860
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4756aa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x475780
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00475890
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x475855
mov edx, dword [ebp - 4]
cmp edx, dword [0x50113c]
jb 0x4757c5
mov eax, dword [ebp - 4]
cmp eax, dword [0x501140]
ja 0x4757c5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x475795
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0049cdf0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x4757ea
jmp 0x475855
cmp dword [ebp - 0x14], 0x10000
jne 0x47583e
cmp dword [ebp - 0x18], 0x10000
jb 0x47583e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x475821
mov eax, dword [ebp - 8]
jmp 0x475857
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x475831
xor eax, eax
jmp 0x475857
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x475850
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.00475890
add esp, 4
mov dword [ebp - 4], eax
jmp 0x475795
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4758c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00475cb0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x503f80], 0
jne 0x4758fd
cmp dword [0x503f7c], 0
je 0x4758fd
mov eax, dword [0x503f7c]
mov dword [0x503f80], eax
cmp dword [0x503f80], 0
je 0x47597a
mov ecx, dword [0x503f80]
cmp dword [ecx + 8], 0
je 0x47597a
mov edx, dword [0x503f80]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x47597a
mov ecx, dword [0x503f80]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x47597a
mov eax, dword [0x503f80]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x475949
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x475950
xor eax, eax
jmp 0x475a99
mov ecx, dword [0x503f80]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0049cdf0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x475a99
mov edx, dword [0x503f7c]
mov dword [0x503f80], edx
jmp 0x475996
mov eax, dword [0x503f80]
mov ecx, dword [eax + 4]
mov dword [0x503f80], ecx
cmp dword [0x503f80], 0
je 0x4759d6
cmp dword [0x503f80], 0
je 0x4759d4
mov edx, dword [0x503f80]
cmp dword [edx + 8], 0
je 0x4759d4
mov eax, dword [0x503f80]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x4759d4
mov edx, dword [0x503f80]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x4759d4
jmp 0x47592e
jmp 0x475988
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00475aa0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x475a97
mov eax, dword [ebp - 0x18]
mov dword [0x503f80], eax
mov ecx, dword [0x503f80]
mov dword [ecx], 0x52727464
mov edx, dword [0x503f80]
mov dword [edx + 8], 0
mov eax, dword [0x503f80]
mov ecx, dword [0x503f7c]
mov dword [eax + 4], ecx
mov edx, dword [0x503f80]
mov dword [0x503f7c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x503f80]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x475a67
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x475a87
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x475a5e
mov eax, dword [0x503f80]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x47592e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4767e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503f7c]
mov dword [ebp - 4], eax
jmp 0x4767f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x476820
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x47681e
call sub.KERNEL32.dll_GetLastError
jmp 0x476822
jmp 0x4767f0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x476cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x503f8c], eax
je 0x476ce4
mov eax, 0x10dd
jmp 0x476e8c
cmp dword [0x503f90], 0
je 0x476cf7
mov eax, dword [0x503f90]
jmp 0x476e8c
cmp dword [ebp + 0xc], 0
jne 0x476d07
mov eax, 0x57
jmp 0x476e8c
cmp dword [ebp + 8], 0
jne 0x476d17
mov eax, 6
jmp 0x476e8c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x476d40
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x503f90], ecx
mov edx, dword [ebp + 8]
mov dword [0x503f94], edx
mov eax, dword [ebp - 8]
jmp 0x476e8c
push 0x18
call fcn.00472c0c
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x476d9b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x503f90], ecx
cmp dword [ebp - 4], 0
je 0x476d8a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.00472bfe
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x503f94], ecx
mov eax, dword [ebp - 8]
jmp 0x476e8c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00476ca0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00476ca0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x476ddb
cmp dword [ebp - 0xc], 0x1e
jbe 0x476df7
mov dword [ebp - 8], 9
cmp dword [0x503f84], 0
je 0x476df2
jmp 0x476d69
jmp 0x476d60
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x476e1e
mov dword [ebp - 8], 9
cmp dword [0x503f84], 0
je 0x476e19
jmp 0x476d69
jmp 0x476d60
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x476e49
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x476d60
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x503f9c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x503f9c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8