joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030b30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x10086014]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 4]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 8], 2
mov dword [esp + 0xc], 0
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x10030b90
call fcn.1002ccc0
mov dword [esp + 0xc], eax
mov eax, 0x2719
mov dword [esp + 8], 0x2719
jmp 0x10030bc2
lea ecx, [esp + 8]
mov dword [esp + 8], 0x1c
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10030bf8
call fcn.1002ccc0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi], 2
mov dword [edi + 4], 0
test eax, eax
jne 0x10030c31
jmp 0x10030c1c
cmp dword [esp + 8], 0x80
ja 0x10030c3f
movups xmm0, xmmword [esp + 0x10]
mov ecx, dword [esp + 0x28]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], ecx
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret 4
mov edx, str.local_endpoint
lea ecx, [esp + 8]
call fcn.1002cc70
call fcn.1002ccc0
lea ecx, [esp + 8]
mov dword [esp + 8], 0x2726
mov dword [esp + 0xc], eax
call fcn.1002cc10
int3

Function at 0x10030ed0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x10086014]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
push edi
mov esi, ecx
mov eax, 1
lock xadd dword [0x10089554], eax
inc eax
mov edi, 0x10089558
cmp eax, 1
jne 0x10030f15
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [ebp + 8], 0
je 0x10030f25
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
jne 0x10030f3d
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1003c310
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 8], eax
call fcn.1002ccc0
mov edx, str.winsock
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
call fcn.1002cc70
int3
Function at 0x10031c30
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c0dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xc]
mov esi, dword [ecx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], ecx
cmp dword [eax], 0xffffffff
je 0x10031ca1
mov esi, 1
call fcn.1002cdb0
mov dword [edi], esi
mov dword [edi + 4], eax
jmp 0x10031d98
push 1
push 0
push 0
push 6
push 1
push esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
je 0x10031ce4
mov dword [edi], 0
cmp esi, 0x17
jne 0x10031cfc
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1b
push 0x29
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x1c]
jmp 0x10031cfc
call fcn.1002ccc0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ecx, 0xffffffff
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
cmp ecx, 0xffffffff
jne 0x10031d1d
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call fcn.1002eda0
mov esi, dword [ebp - 0x1c]
jmp 0x10031d98
mov eax, dword [ebp - 0x2c]
push 0
push 0
mov eax, dword [eax + 0x18]
push dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x10031d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1002ccc0
mov dword [edi], esi
mov dword [edi + 4], eax
jmp 0x10031d56
mov dword [edi], 0
mov dword [edi + 4], 0x10086bd4
cmp dword [edi], 0
jne 0x10031d0b
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
push ecx
mov dword [ecx], eax
mov byte [ecx + 4], 0x10
add ecx, 8
mov dword [ebp - 0x20], 0xffffffff
call fcn.100314b0
lea ecx, [ebp - 0x20]
mov dword [edi], 0
mov dword [edi + 4], 0x10086bd4
call fcn.1002eda0
mov dword [ebp - 0x2c], 0x10086bd4
xor esi, esi
test esi, esi
jne 0x10031dd7
mov ecx, dword [ebp - 0x24]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x38]
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x54], 2
mov eax, dword [eax]
mov dword [ebp - 0x50], esi
movups xmm0, xmmword [ebp - 0x54]
mov dword [ecx + 0x1c], eax
mov byte [ecx + 0x20], 0
movups xmmword [ecx + 0x24], xmm0
movq xmm0, qword [ebp - 0x44]
movq qword [ecx + 0x34], xmm0
mov dword [ecx + 0x3c], esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x10032560
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x128], ecx
mov dword [esi], 0
mov dword [esi + 4], 0x10086bd4
mov edi, dword [edx + 4]
mov eax, dword [edx]
xor edx, edx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x120], edx
test edi, edi
je 0x100326f8
nop dword [eax]
mov eax, dword [esi]
xor ecx, ecx
test eax, eax
mov ebx, 0x10000
cmovne ebx, ecx
jne 0x100326f8
cmp edx, edi
mov ecx, edi
mov eax, edi
cmovb ecx, edx
mov edx, dword [ebp - 0x124]
sub eax, ecx
add edx, ecx
mov ecx, dword [ebp - 0x128]
cmp eax, ebx
mov dword [ebp - 0xc], edx
cmovb ebx, eax
mov dword [ebp - 0x10], ebx
mov edi, dword [ecx + 4]
mov al, byte [ecx + 8]
mov dword [ebp - 8], ebx
cmp edi, 0xffffffff
jne 0x10032609
call fcn.1002ccc0
mov dword [esi], 0x2719
mov dword [esi + 4], eax
jmp 0x100326da
test ebx, ebx
mov bl, al
jne 0x1003261f
test bl, 0x10
je 0x1003261f
mov dword [esi], 0
jmp 0x100326da
push esi
push ecx
push 1
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.1002eaf0
add esp, 0xc
test eax, eax
jns 0x100326dc
and bl, 1
nop dword [eax + eax]
test bl, bl
jne 0x100326da
call fcn.1002ccc0
mov ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x10032662
cmp dword [esi], 0x2733
je 0x1003267c
call fcn.1002ccc0
mov ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x100326da
cmp dword [esi], 0x4d5
jne 0x100326da
push 0
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x114], edi
push eax
push 0
lea eax, [edi + 1]
mov dword [ebp - 0x118], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x100326c8
push esi
push ecx
push 1
lea edx, [ebp - 0x10]
mov dword [esi], 0
mov ecx, edi
call fcn.1002eaf0
add esp, 0xc
test eax, eax
js 0x10032640
jmp 0x100326dc
call fcn.1002ccc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
xor eax, eax
mov edx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x12c]
add edx, eax
mov dword [ebp - 0x120], edx
cmp edx, edi
jb 0x100325b0
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c310
mov esp, ebp
pop ebp
ret

Function at 0x10033c60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10033c7a
add ecx, 8
call fcn.10030260
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x10033cbc
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10033cac
mov edx, dword [eax + 4]
test edx, edx
je 0x10033cac
mov ecx, 4
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x10033cbf
inc ecx
cmp ecx, 6
jl 0x10033ca0
push esi
call fcn.1003c7bc
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x2c]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10034d70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c675
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10086014]
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 dword [ebp - 0x10], esp
mov edi, ecx
test byte [edi + 8], 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
jne 0x10034ddb
mov eax, dword [edi]
push dword [0x1008955c]
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10034ddb
nop word [eax + eax]
cmp dword [eax], esi
je 0x10034df6
mov eax, dword [eax + 8]
test eax, eax
jne 0x10034dd0
push dword [0x1008955c]
lea eax, [edi + 4]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10034e5c
mov ecx, dword [eax + 4]
jmp 0x10034e5e
cmp dword [eax + 4], 0
je 0x10034ddb
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.100327c0
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10034f1f
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x10034f1f
xor ecx, ecx
push ecx
push dword [ebp - 0x1c]
mov edx, 0x28
call fcn.100313d0
mov esi, eax
add esp, 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10035210
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov dword [ebx], 0
mov eax, dword [edi]
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10034f09
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x10034ef2
mov dword [eax + 0x14], esi
jmp 0x10034ef5
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.10034fd0
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.1003c310
mov esp, ebp
pop ebp
ret 4
Function at 0x10034f60
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x10034f71
mov dword [esi + 8], 0
mov edi, dword [esi + 4]
test edi, edi
je 0x10034fb0
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10034fa0
mov edx, dword [eax + 4]
test edx, edx
je 0x10034fa0
mov ecx, 4
cmp dword [edx + ecx*4], 0
je 0x10034fb3
inc ecx
cmp ecx, 6
jl 0x10034f94
push edi
call fcn.1003c7bc
add esp, 4
mov dword [esi + 4], 0
pop edi
pop esi
ret
mov al, byte [edi + 0x14]
mov byte [edi], al
mov dword [edx + ecx*4], edi
pop edi
mov dword [esi + 4], 0
pop esi
ret

Function at 0x10034fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068960
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10086014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x1003501c
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x10035015
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1003505c
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003504c
mov edx, dword [eax + 4]
test edx, edx
je 0x1003504c
xor ecx, ecx
nop dword [eax]
cmp dword [edx + ecx*4], 0
je 0x1003506d
inc ecx
cmp ecx, 2
jl 0x10035040
push esi
call fcn.1003c7bc
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [edx + ecx*4], esi
jmp 0x10035055

Function at 0x10035490
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x100354cc
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x100354c5
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100354c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x100354c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1003550c
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100354fc
mov edx, dword [eax + 4]
test edx, edx
je 0x100354fc
mov ecx, 4
nop
cmp dword [edx + ecx*4], 0
je 0x1003550f
inc ecx
cmp ecx, 6
jl 0x100354f0
push esi
call fcn.1003c7bc
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x40]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x10035560
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1003559c
mov esi, dword [esi + 0x24]
test esi, esi
je 0x10035595
push ebx
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10035594
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10035594
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x100355dc
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100355cc
mov edx, dword [eax + 4]
test edx, edx
je 0x100355cc
mov ecx, 4
nop
cmp dword [edx + ecx*4], 0
je 0x100355df
inc ecx
cmp ecx, 6
jl 0x100355c0
push esi
call fcn.1003c7bc
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [edx + ecx*4], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x10039880
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.10039a50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003995d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100398ca
mov eax, dword [ebp - 4]
cmp eax, dword [0x10086004]
ja 0x100398ca
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003989a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10041e60
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 0x100398ef
jmp 0x1003995d
cmp dword [ebp - 0x14], 0x10000
jne 0x10039943
cmp dword [ebp - 0x18], 0x10000
jb 0x10039943
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 0x10039926
mov eax, dword [ebp - 8]
jmp 0x1003995f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10039936
xor eax, eax
jmp 0x1003995f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10039958
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10039a50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003989a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10039a80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10039a45
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100399b5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10086004]
ja 0x100399b5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10039985
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10041e60
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 0x100399da
jmp 0x10039a45
cmp dword [ebp - 0x14], 0x10000
jne 0x10039a2e
cmp dword [ebp - 0x18], 0x10000
jb 0x10039a2e
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 0x10039a11
mov eax, dword [ebp - 8]
jmp 0x10039a47
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10039a21
xor eax, eax
jmp 0x10039a47
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10039a40
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10039a80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10039985
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039ab0
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.10039ea0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1008800c], 0
jne 0x10039aed
cmp dword [0x10088008], 0
je 0x10039aed
mov eax, dword [0x10088008]
mov dword [0x1008800c], eax
cmp dword [0x1008800c], 0
je 0x10039b6a
mov ecx, dword [0x1008800c]
cmp dword [ecx + 8], 0
je 0x10039b6a
mov edx, dword [0x1008800c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10039b6a
mov ecx, dword [0x1008800c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10039b6a
mov eax, dword [0x1008800c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10039b39
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10039b40
xor eax, eax
jmp 0x10039c89
mov ecx, dword [0x1008800c]
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.10041e60
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10039c89
mov edx, dword [0x10088008]
mov dword [0x1008800c], edx
jmp 0x10039b86
mov eax, dword [0x1008800c]
mov ecx, dword [eax + 4]
mov dword [0x1008800c], ecx
cmp dword [0x1008800c], 0
je 0x10039bc6
cmp dword [0x1008800c], 0
je 0x10039bc4
mov edx, dword [0x1008800c]
cmp dword [edx + 8], 0
je 0x10039bc4
mov eax, dword [0x1008800c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10039bc4
mov edx, dword [0x1008800c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10039bc4
jmp 0x10039b1e
jmp 0x10039b78
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.10039c90
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10039c87
mov eax, dword [ebp - 0x18]
mov dword [0x1008800c], eax
mov ecx, dword [0x1008800c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1008800c]
mov dword [edx + 8], 0
mov eax, dword [0x1008800c]
mov ecx, dword [0x10088008]
mov dword [eax + 4], ecx
mov edx, dword [0x1008800c]
mov dword [0x10088008], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1008800c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10039c57
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10039c77
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 0x10039c4e
mov eax, dword [0x1008800c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10039b1e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003a9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10088008]
mov dword [ebp - 4], eax
jmp 0x1003a9e9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003aa10
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 0x1003aa0e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003aa12
jmp 0x1003a9e0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003ae80
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10088018], eax
je 0x1003ae9d
mov eax, 0x10dd
jmp 0x1003af80
mov eax, dword [0x10088028]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003af1c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003aef8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003aef8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10039f30
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003c31e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003aea5
mov dword [0x10088028], 0
call fcn.1003a810
mov ecx, dword [0x10088024]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003af6a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003c31e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003af34
mov dword [0x10088024], 0
mov dword [0x10088018], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003b460
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1008801c], 0
je 0x1003b479
mov eax, dword [0x1008801c]
jmp 0x1003b518
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003b48a
xor eax, eax
jmp 0x1003b518
push 8
call fcn.1003c34f
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003b4e2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003b4cb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003c31e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1008801c], eax
mov dword [0x10088020], 0
mov eax, dword [ebp - 8]
jmp 0x1003b518
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003b4fa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003b4aa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10088024]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10088024], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4