joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049730
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jne 0x10049770
call fcn.10063b70
mov dword [edi + 4], eax
or eax, esi
mov dword [edi], 0x2719
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
push ebx
push 0
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x100497db
call fcn.10063b70
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret

Function at 0x100497f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x10049835
call fcn.10063b70
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.1004eb8b
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [ebp - 0xc]
and bl, 1
cmove eax, ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x110]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x114]
mov dword [edi], eax
test esi, esi
jne 0x100498e2
test bl, bl
je 0x100498be
call fcn.10063b70
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x100498ef
mov dword [ebp - 0x118], 0
call fcn.10063b70
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x100498ef
jle 0x100498f2
call fcn.10063b70
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x10049910
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x10049955
call fcn.10063b70
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.1004eb8b
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, 0
lea eax, [ebp - 0xc]
and bl, 1
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x110]
push eax
push ecx
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x114], eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 4], esi
mov esi, dword [ebp - 0x114]
mov dword [edi], eax
test esi, esi
jne 0x10049a02
test bl, bl
je 0x100499de
call fcn.10063b70
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x10049a0f
mov dword [ebp - 0x118], 0
call fcn.10063b70
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
jmp 0x10049a0f
jle 0x10049a12
call fcn.10063b70
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x1004b490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
push 0
push 0
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 esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x1004b4fd
call fcn.10063b70
mov dword [edi], 0x2746
jmp 0x1004b50f
cmp eax, 0x4d2
jne 0x1004b512
call fcn.10063b70
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x1004b52a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
call fcn.10063b70
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x1004bee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100928c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x1004bf3c
mov ecx, edi
call fcn.1004d500
call fcn.10063b70
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x1004bfcf
mov dword [ebp - 0x14], 0
push dword [0x100c6e40]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0x20], xmm0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edi
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 [0x100c6e40]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
xor esi, esi
call fcn.10044f60
test eax, eax
je 0x1004bfae
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
mov ecx, edi
push 1
mov esi, eax
call fcn.10044f60
test eax, eax
jne 0x1004bf95
push dword [ebp - 0x18]
push dword [0x100c6e40]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004bfcd
push ecx
call fcn.1004eb86
add esp, 4
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.1004eb8b
mov esp, ebp
pop ebp
ret 4
Function at 0x1004c000
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
mov edi, dword [0x100c6e20]
mov byte [0x100c6d57], 0
mov dword [ebp - 8], eax
test edi, edi
je 0x1004c0b9
push 0
push eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x1004c0a6
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1004c0a6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x100c6e27], 0
mov eax, 1
movzx ebx, byte [ebp - 1]
push dword [ebp - 8]
cmove ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1004c0a0
push str.exit_pipe_thread_success
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004c0b6
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.exit_pipe_thread_failed__use_TerminateThread
call esi
push edi
call ebx
mov eax, dword [0x100c6e1c]
mov dword [0x100c6e20], 0
test eax, eax
je 0x1004c0fe
cmp dword [0x100bb084], 0
jne 0x1004c0dc
push str.exit_heartbeat_success
jmp 0x1004c0ea
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.exit_heartbeat_failed__use_TerminateThread
call esi
push dword [0x100c6e1c]
call ebx
mov dword [0x100c6e1c], 0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cbd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
cmp eax, 0x40
jne 0x1004cc36
call fcn.10063b70
mov dword [edi], 0x2746
jmp 0x1004cc48
cmp eax, 0x4d2
jne 0x1004cc4b
call fcn.10063b70
mov dword [edi], 0x274d
mov dword [edi + 4], eax
test ebx, ebx
je 0x1004cc63
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
call fcn.10063b70
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
mov dword [edi], 0
pop edi
pop esi
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret

Function at 0x1004ccd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.100643b0
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1004cd25
push str.skyguard_bho
lea eax, [ebp - 0x404]
mov ecx, 0x100c6d58
push eax
call fcn.10001b50
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret

Function at 0x1004d2f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.10063b70
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x1004d34f
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0x17
jne 0x1004d36d
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.10063b70
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.1004eb8b
mov esp, ebp
pop ebp
ret
Function at 0x1004d390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
mov dword [ebp - 0x18], eax
push 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x1004d3f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], esi
call fcn.10063b70
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1004d4cd
mov esi, dword [ebp - 0x14]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x1004d43e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], esi
call fcn.10063b70
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1004d4db
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push ebx
push 0x1004e620
push dword [ebp - 0x18]
push 0
call fcn.10076b52
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1004d4aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp - 0x18], eax
call dword [edx]
test edi, edi
je 0x1004d483
push edi
call esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1004d490
push eax
call esi
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x10], ebx
call fcn.10063b70
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x1004d4e9
test edi, edi
je 0x1004d4ba
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret 8
push str.thread.entry_event
lea eax, [ebp - 0x10]
push eax
call fcn.10045560
push str.thread.exit_event
lea eax, [ebp - 0x10]
push eax
call fcn.10045560
push str.thread
lea eax, [ebp - 0x10]
push eax
call fcn.10045560
int3
Function at 0x10062bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093dfe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bb0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100bb12c]
cmp eax, 0xffffffff
jne 0x10062c26
xor ebx, ebx
jmp 0x10062c2f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10062c71
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x10062cb0
test esi, esi
jne 0x10062cb4
push 0x10062650
push 0x100c76a0
call fcn.10062180
mov eax, dword [0x100bb12c]
add esp, 8
cmp eax, 0xffffffff
je 0x10062c71
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10062c9e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10062c9e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10062cf6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10062cdf
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10062cb4
cmp dword [ebx + 0x18], 0
je 0x10062c40
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10062d19
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10062d19
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10062680
cmp dword [ebx + 0x18], 0
jne 0x10062d00
jmp 0x10062c40
Function at 0x10063f20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093f40
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x100bb0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
push 0x1009e7b0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.10015630
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
call fcn.1004ffe4
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.10017d50
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1007faaf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f772

Function at 0x1007faba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f8f3

Function at 0x100832e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10082fa1
Function at 0x401100
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
mov eax, dword [esi + 4]
lea edx, [esp + 4]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
pop esi
inc eax
add esp, 0x10
ret 8

Function at 0x401150
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401183
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0xc]
push ecx
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.00401100
test eax, eax
je 0x401183
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x4011d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x40609b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc08
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc2c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc28]
and ecx, 0xffff
push eax
push ecx
push eax
push str.CONNECT__s:_d_HTTP_1.0_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.21022__r_nHost:__s_r_nContent_Length:_0_r_nProxy_Connection:_Keep_Alive_r_nPragma:_no_cache_r_n_r_n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push ecx
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x401348
xor esi, esi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x418]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + 0x13], 0
mov bl, 0xd
mov eax, dword [ebp + 4]
push 0
lea edx, [esp + 0x17]
push 1
push edx
push eax
call edi
cmp eax, 1
jne 0x401348
mov cl, byte [esp + 0x13]
mov byte [esp + esi + 0x418], cl
inc esi
cmp esi, 4
jl 0x4012c5
cmp byte [esp + esi + 0x414], bl
jne 0x4012c5
cmp byte [esp + esi + 0x415], 0xa
jne 0x4012c5
cmp byte [esp + esi + 0x416], bl
jne 0x4012c5
cmp byte [esp + esi + 0x417], 0xa
je 0x4012cd
cmp esi, 0x800
jl 0x401276
lea edx, [esp + 0x418]
mov ecx, ebp
push edx
call fcn.00401190
cmp eax, 0xc8
jne 0x4012ea
mov eax, 1
jmp 0x40134a
cmp eax, 0x197
jne 0x401348
lea ecx, [esp + 0x14]
mov dword [0x408848], 1
call fcn.00402c50
push 0x4080d4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc24], 0
call fcn.00403530
lea ecx, [esp + 0x14]
call fcn.00403090
cmp eax, 6
jg 0x401334
lea ecx, [esp + 0x14]
call fcn.00403110
lea ecx, [esp + 0x14]
mov dword [esp + 0xc20], 0xffffffff
call fcn.00402c80
xor eax, eax
mov ecx, dword [esp + 0xc18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc14
ret 8
Function at 0x401370
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xc04
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov byte [esp + 0x414], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x415]
mov edx, dword [str.CONNECT]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc1c]
push 0x408854
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc1c]
and ecx, 0xffff
push eax
push ecx
push eax
push edx
lea eax, [esp + 0x28]
push str._s__s:_d_HTTP_1.0_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.21022__r_nHost:__s_r_nContent_Length:_0_r_nProxy_Connection:_Keep_Alive_r_nPragma:_no_cache_r_nProxy_Authorization:_Basic__s_r_n_r_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 4]
push eax
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4014b7
xor esi, esi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x414]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + 0x13], 0
mov bl, 0xa
mov ecx, dword [ebp + 4]
push 0
lea eax, [esp + 0x17]
push 1
push eax
push ecx
call edi
cmp eax, 1
jne 0x4014b7
mov dl, byte [esp + 0x13]
mov byte [esp + esi + 0x414], dl
inc esi
cmp esi, 4
jl 0x401473
cmp byte [esp + esi + 0x410], 0xd
jne 0x401473
cmp byte [esp + esi + 0x411], bl
jne 0x401473
cmp byte [esp + esi + 0x412], 0xd
jne 0x401473
cmp byte [esp + esi + 0x413], bl
je 0x40147b
cmp esi, 0x800
jl 0x401428
lea eax, [esp + 0x414]
mov ecx, ebp
push eax
call fcn.00401190
cmp eax, 0xc8
jne 0x4014ad
pop edi
pop esi
pop ebp
mov dword [0x408850], 0
mov eax, 1
pop ebx
add esp, 0xc04
ret 8
mov dword [0x408850], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc04
ret 8