joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002dad0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bab0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10086014]
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 esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
je 0x1002db90
call fcn.1002e0c0
mov ebx, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebx + 8]
call edi
xor eax, eax
mov ecx, 0x10089528
lock xadd dword [ecx], eax
mov ecx, dword [ebx + 4]
push 0
push ecx
test eax, eax
je 0x1002db5c
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1002db72
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x1002db89
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.1003c31e
add esp, 8
mov dword [esi + 0x60], 0
lea ecx, [esi + 0x54]
call fcn.10030e10
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1002dbac
push eax
call edi
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x1002dbc3
push dword [ebx + 4]
call edi
push 0xc
push ebx
call fcn.1003c31e
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1002dbcd
push eax
call edi
test byte [ebp + 8], 1
mov dword [esi], vtable.asio::execution_context::service.0
je 0x1002dbe4
push 0x64
push esi
call fcn.1003c31e
add esp, 8
mov eax, esi
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.1003c310
mov esp, ebp
pop ebp
ret 4
Function at 0x1002df30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bb35
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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 esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x1002df86
call fcn.1002e0c0
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x10086bd4
jmp 0x1002e065
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
call fcn.100405f7
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
add esp, 4
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x1008955c]
neg ecx
movq qword [ebp - 0x20], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.1002e340
test eax, eax
je 0x1002e02c
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, esi
call fcn.1002e340
test eax, eax
jne 0x1002e010
push dword [ebp - 0x18]
push dword [0x1008955c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x54]
test eax, eax
je 0x1002e051
push eax
call fcn.1003c7bc
add esp, 4
inc esi
cmp esi, 0xa
jl 0x1002e040
lea eax, [ebp - 0x28]
push eax
call fcn.100406e2
add esp, 4
mov eax, edi
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 0x1002e140
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1008955c]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002e16b
nop dword [eax]
cmp dword [eax], esi
je 0x1002e16d
mov eax, dword [eax + 8]
test eax, eax
jne 0x1002e160
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002e16b
pop esi
jmp fcn.1002cef0
Function at 0x1002e9c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x1002eada
mov al, byte [edx]
test al, 8
je 0x1002ea1c
or al, 8
xor ecx, ecx
push 4
mov byte [edx], al
lea eax, [ebp - 8]
push eax
push 0x80
push 0xffff
push ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1002ea1c
call fcn.1002ccc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
test ebx, ebx
je 0x1002ea9c
call fcn.1002ccc0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
call fcn.1002ccc0
mov ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x1002ea55
cmp dword [edi], 0x2733
je 0x1002ea6f
call fcn.1002ccc0
mov ecx, eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [ecx + 4]
jne 0x1002eaa2
cmp dword [edi], 0x4d5
jne 0x1002eaa2
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x10]
push esi
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
test ebx, ebx
jne 0x1002eab5
mov dword [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
call fcn.1002ccc0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov eax, ebx
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c310
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push 0
push 0
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.1002ccc0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x1002eb48
call fcn.1002ccc0
mov dword [edi], 0x2746
jmp 0x1002eb5a
cmp eax, 0x4d2
jne 0x1002eb5d
call fcn.1002ccc0
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x1002eb75
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1003c310
mov esp, ebp
pop ebp
ret
Function at 0x1002eb90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
mov edx, ecx
push edi
cmp edx, 0xffffffff
jne 0x1002ebb8
call fcn.1002ccc0
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov dword [ecx], 0x2719
pop edi
pop esi
pop ecx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp ecx, 0xa5100000
jne 0x1002ec19
cmp eax, 2
jne 0x1002ebe4
call fcn.1002ccc0
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov dword [ecx], 0x2726
pop edi
pop esi
pop ecx
pop ebp
ret
cmp eax, 1
jne 0x1002ec2b
cmp dword [ebp + 0x14], 4
jne 0x1002ebcb
mov cl, byte [esi]
mov al, cl
or cl, 4
and al, 0xfb
movzx edx, cl
movzx ecx, al
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
mov eax, dword [ebp + 0x18]
cmove edx, ecx
mov byte [esi], dl
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ecx
pop ebp
ret
cmp ecx, 0xffff
jne 0x1002ec2b
cmp eax, 0x80
jne 0x1002ec2b
or byte [esi], 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
test edi, edi
jne 0x1002ec4a
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop edi
pop esi
pop ecx
pop ebp
ret
call fcn.1002ccc0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, edi
pop edi
mov dword [ecx + 4], esi
pop esi
pop ecx
pop ebp
ret
Function at 0x1002ee00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bc3d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10086014]
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 eax, ecx
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 8]
lea esi, [eax + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 4
nop dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002ee91
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi]
mov ecx, dword [esi - 0x10]
lea edx, [eax + edx*8]
mov eax, dword [edx]
cmp eax, ecx
je 0x1002ee94
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
cmp eax, edx
je 0x1002ee91
cmp dword [eax + 8], edi
je 0x1002eeae
mov ecx, dword [eax]
mov eax, ecx
cmp ecx, edx
jne 0x1002ee84
mov ecx, dword [esi - 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push ecx
lea ecx, [esi - 0x14]
call fcn.10031020
test al, al
jne 0x1002eeb2
test bl, bl
jne 0x1002eeb2
jmp 0x1002eeb4
mov ecx, eax
jmp 0x1002ee94
mov bl, 1
add esi, 0x1c
sub dword [ebp - 0x24], 1
jne 0x1002ee60
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi + 0x14]
call fcn.1002e180
test bl, bl
je 0x1002ef1d
push 0
push 0
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push dword [esi + 0x34]
mov dword [ebp - 0x20], 0
call dword [sym.imp.WS2_32.dll_WSASend]
call fcn.1002ccc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1002ef18
cmp eax, 0x4d2
jne 0x1002ef1d
call fcn.1002ccc0
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
mov ecx, edi
test ecx, ecx
je 0x1002ef63
mov esi, ecx
nop
mov eax, dword [edi + 0x14]
mov edi, eax
mov dword [esi + 0x14], 0
mov esi, eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ecx + 0x18]
push ecx
push 0
mov dword [ebp - 0x18], 0x10086bd4
call eax
add esp, 0x10
mov ecx, esi
test esi, esi
jne 0x1002ef30
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.1003c310
mov esp, ebp
pop ebp
ret 8
Function at 0x1002f000
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x1002f095
mov esi, dword [ebx + 4]
mov dword [edi + 0x1c], 1
call fcn.1002ccc0
mov dword [edi + 8], 0
push edi
push 2
push 0
mov dword [edi], eax
mov dword [edi + 0xc], 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1002f16b
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1002f07f
mov dword [eax + 0x14], edi
jmp 0x1002f082
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
jmp 0x1002f165
mov eax, dword [ecx]
cmp eax, 0xffffffff
jne 0x1002f0b4
mov esi, dword [ebx + 4]
mov dword [edi + 0x1c], 1
call fcn.1002ccc0
mov dword [edi + 8], 0x2719
jmp 0x1002f043
push 0
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x1002f110
cmp eax, 0x3e5
je 0x1002f110
push dword [ebp - 8]
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.1002e240
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [ebx + 4]
lea ecx, [edi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x1002f16b
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1002f16b
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1002f156
mov dword [eax + 0x14], edi
jmp 0x1002f159
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
xchg dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c310
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1002f180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
cmp byte [ebp + 0x18], 0
je 0x1002f215
mov edi, dword [edi + 4]
mov dword [esi + 0x1c], 1
call fcn.1002ccc0
mov dword [esi + 8], 0
push esi
push 2
push 0
mov dword [esi], eax
mov dword [esi + 0xc], 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1002f2fe
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 0x1002f1ff
mov dword [eax + 0x14], esi
jmp 0x1002f202
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
jmp 0x1002f2f8
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
jne 0x1002f234
mov edi, dword [edi + 4]
mov dword [esi + 0x1c], 1
call fcn.1002ccc0
mov dword [esi + 8], 0x2719
jmp 0x1002f1c3
mov eax, dword [ebp + 0x14]
push 0
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x1002f26b
mov eax, 0x2746
jmp 0x1002f278
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x1002f2a3
cmp eax, 0x3e5
je 0x1002f2a3
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push esi
call fcn.1002e240
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [edi + 4]
lea ecx, [esi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x1002f2fe
push esi
push 2
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1002f2fe
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x1002f2e9
mov dword [eax + 0x14], esi
jmp 0x1002f2ec
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
xchg dword [eax], ebx
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c310
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1002fb80
Capabilities:
Create thread

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 0x1006bd15
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
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 edi, ecx
cmp dword [ebx + 0xc], 0
mov esi, dword [ebx + 8]
jne 0x1002fcd8
mov ecx, dword [edi]
lea edx, [esi - 1]
add ecx, 0x64
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp dword [ecx + 0x10], edx
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x1002fbfd
mov ecx, dword [ecx]
push edx
push ecx
lea ecx, [ebp - 0x38]
call fcn.1000fb90
push 0x20
mov dword [ebp - 4], 0
call fcn.1003c34f
movups xmm0, xmmword [ebp - 0x38]
add esp, 4
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x18], eax
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
mov ecx, dword [edi]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], 0x10030030
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x10032710
push 0
push 0
call fcn.1004a281
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1002fd8b
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.10032190
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.10019d10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x1002fd86
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
add edx, 0x64
mov eax, dword [edx + 0x10]
lea ecx, [edx + 0x10]
cmp eax, esi
cmovb esi, eax
cmp dword [edx + 0x14], 0x10
jb 0x1002fcb9
mov edx, dword [edx]
sub eax, esi
mov dword [ecx], eax
inc eax
push eax
lea eax, [edx + esi]
push eax
push edx
call fcn.100418e0
mov ecx, dword [edi]
add esp, 0xc
call fcn.1002fa70
jmp 0x1002fd66
call fcn.1002cdb0
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x1002fcee
cmp dword [ebx + 0xc], 2
je 0x1002fd66
mov edx, str.Read_error:
mov ecx, 0x100884f8
call fcn.10011ab0
mov ecx, dword [ebx + 0x10]
mov esi, eax
push dword [ebx + 0xc]
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [ebp - 4], 3
lea edx, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
mov ecx, esi
push dword [ebp - 0x40]
cmovae edx, dword [ebp - 0x50]
call fcn.10014c20
add esp, 4
push eax
call fcn.10031540
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 0x10
jb 0x1002fd66
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002fd5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002fd99
push edx
push ecx
call fcn.1003c31e
add esp, 8
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 0xc
call fcn.1004735b
push 6
mov dword [ebp - 0x1c], 0
call fcn.1003f6b8
call fcn.100475cc
int3
Function at 0x100302e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006be40
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10086014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x60]
movzx edi, word [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x20], eax
call fcn.1002f940
mov dword [ebp - 4], 0
xorps xmm0, xmm0
cmp dword [ebp - 0x60], 0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
push edi
jne 0x10030371
mov eax, 2
mov word [ebp - 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x5c]
mov word [ebp - 0x3e], ax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x3c], eax
jmp 0x100303a3
mov eax, 0x17
mov word [ebp - 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x60], 1
mov word [ebp - 0x3e], ax
mov dword [ebp - 0x3c], 0
jne 0x100304a3
movups xmm0, xmmword [ebp - 0x58]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x38], xmm0
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x40]
sub esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push eax
push edi
call fcn.100315e0
push edi
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [esi + 0x5c]
call fcn.10032040
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10030b30
movzx ecx, word [eax + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x1008932c
movzx edi, ax
mov dword [ebp - 0x24], 0x1008932c
call fcn.1003e322
add esp, 4
test eax, eax
jne 0x100304b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
movzx edx, di
mov byte [0x10089329], 1
mov word [0x1008935c], di
call fcn.10021ad0
cmp dword [eax + 0x14], 0x10
jb 0x10030430
mov eax, dword [eax]
push eax
push str.EALsxPort
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1003046c
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10030462
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100304b6
push edx
push ecx
call fcn.1003c31e
add esp, 8
push 0x1008932c
mov byte [ebp - 4], 2
call fcn.1003e333
add esp, 4
mov ecx, esi
call fcn.100304c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c310
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1c]
call fcn.1002f910
call fcn.10031520
push eax
call fcn.1003f68b
call fcn.100475cc
int3
Function at 0x100304c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006be7d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10086014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx]
lea eax, [ecx + 0x5c]
mov dword [ebp - 0x18], eax
lea ebx, [ecx + 4]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
push 0x180
lea edi, [ecx + 0x44]
mov dword [ebp - 0x1c], ebx
call fcn.1002d030
add esp, 8
mov dword [ebp - 0x14], eax
mov dl, byte [ebx + 4]
mov ecx, dword [ebx]
lea ebx, [esi + 0x14]
mov dword [eax + 0x24], ecx
lea esi, [eax + 0x28]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0x10033170
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esi], 0xffffffff
shr dl, 2
and dl, 1
mov eax, dword [eax + 0x1c]
push edi
mov dword [ecx + 0x30], eax
sub esp, 8
mov dword [ecx + 0x34], 0
mov byte [ecx + 0x158], dl
mov dword [ecx + 0x15c], 0
mov dword [ecx + 0x160], 0
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x164], eax
add ecx, 0x168
call fcn.10033630
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push ecx
push 0x90
lea edx, [ecx + 0x38]
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + 4], 0xffffffff
push edx
push 6
push 1
push dword [ecx + 0x1c]
setne al
push esi
push eax
push ecx
mov ecx, ebx
call fcn.1002f320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret