joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011080
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x100aa52a], 0
movups xmm0, xmmword [str._FWXY]
mov eax, dword [0x100aa528]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x618], eax
movups xmmword [ebp - 0x628], xmm0
je 0x100110e4
xor ecx, ecx
nop dword [eax]
mov eax, 0x5397829d
mul ecx
mov eax, 1
shr edx, 4
sub eax, edx
imul eax, eax, 0x31
add eax, ecx
xor word [ebp + ecx*2 - 0x628], ax
inc ecx
cmp ecx, 0xa
jl 0x100110c0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
cmp dword [esi + 0x18], 0
je 0x1001111c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop dword [eax]
push dword [esi + 0x30]
lea eax, [ebp - 0x628]
push eax
call ebx
test eax, eax
je 0x1001129a
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
jne 0x10011100
xor eax, eax
movq xmm0, qword [0x100aa50c]
xor ebx, ebx
mov dword [edi + 0x54], eax
mov ax, word [0x100aa514]
mov word [ebp - 0x60c], ax
mov al, byte [0x100aa516]
movq qword [ebp - 0x614], xmm0
mov byte [ebp - 0x60a], al
nop dword [eax + eax]
mov eax, 0x5397829d
mov cl, bl
mul ebx
shr edx, 4
movsx eax, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x31
xor byte [ebp + ebx - 0x614], cl
inc ebx
cmp ebx, 0xb
jl 0x10011150
lea eax, [ebp - 0x614]
push eax
push dword [edi + 0x54]
call fcn.10010b40
push 0x2cc
mov esi, eax
lea eax, [ebp - 0x5a8]
push 0
push eax
call fcn.1007d2d0
add esp, 0xc
mov dword [ebp - 0x5a8], 0x10012
lea eax, [ebp - 0x5a8]
mov dword [ebp - 0x5a4], esi
mov dword [ebp - 0x590], 1
push eax
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push 0xffffffffffffffff
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x10011283
mov ebx, dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp dword [ebp - 0x608], 1
jne 0x10011255
cmp dword [ebp - 0x5fc], reloc.WS2_32.dll_connect
jne 0x10011255
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.1007d2d0
add esp, 0xc
mov dword [ebp - 0x2d8], 0x1003f
lea eax, [ebp - 0x2d8]
push eax
push dword [edi + 0x48]
call ebx
cmp dword [ebp - 0x5f0], esi
je 0x100112a2
and dword [ebp - 0x218], 0xfffffeff
lea eax, [ebp - 0x2d8]
push eax
push dword [edi + 0x48]
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2c0], 1
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push 0x10002
push dword [ebp - 0x600]
push dword [ebp - 0x604]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push 0xffffffffffffffff
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
jne 0x100111e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
jmp 0x1001111e
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
Function at 0x10012270
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ecx + 0x30]
push esi
push edi
push eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebx + 0x10]
push 0x2000
call fcn.1008dfec
add esp, 4
mov edi, eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
imul eax, dword [0x100de4f0], 0x3fff
mov edx, 2
mov ecx, dword [0x100de4f0]
mov esi, dword [ebp - 0x4c]
shr esi, 6
shl ecx, 5
sub esi, ecx
add eax, 0x4b0f4aa
add esi, eax
lea ecx, [ebp - 0x24]
and esi, 0xfffffff
push 4
mov dword [0x100de4f0], esi
call fcn.10001020
add esp, 4
lea ecx, [ebp - 0x44]
mov edx, 3
push eax
push 8
call fcn.10001020
add esp, 4
mov ecx, str.POST
add ebx, 0x14
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, 0x100aaa20
cmovne eax, ecx
push eax
push str._s___d__s._s_HTTP_1.1_r_n
push edi
call esi
mov ecx, dword [ebp - 0x50]
mov edi, eax
add ecx, edi
push str.Connection:_keep_alive_r_n
push ecx
call esi
mov ecx, dword [ebp - 0x50]
add edi, eax
add ecx, edi
push str.User_Agent:_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_116.0.0.0_Safari_537.36_r_n
push ecx
call esi
add edi, eax
mov eax, dword [ebp - 0x50]
add eax, edi
push str.Accept:_text_html_application_xml_application_octet_stream_q0.9_image_avif_image_webp_image_apng___q0.8_r_n
push eax
call esi
add edi, eax
mov eax, dword [ebp - 0x50]
add eax, edi
push str.Accept_Encoding:_gzip__deflate_r_n
push eax
call esi
add edi, eax
mov eax, dword [ebp - 0x50]
add eax, edi
push str.Accept_Language:_en_US_q0.8_en_q0.7_r_n
push eax
call esi
add esp, 0x40
add edi, eax
mov eax, dword [ebp - 0x50]
add eax, edi
push str.Cache_Control:_no_cache_r_n
push eax
call esi
push ebx
mov ebx, dword [ebp - 0x50]
add edi, eax
push str.Content_Length:__d_r_n
lea eax, [ebx + edi]
push eax
call esi
add edi, eax
push 0x100aa378
lea eax, [ebx + edi]
push eax
call esi
mov ebx, dword [ebp - 0x54]
add esp, 0x1c
add eax, edi
mov ecx, dword [ebx + 0x1c]
push 0xea60
push eax
push dword [ebp - 0x50]
mov edx, dword [ecx]
call dword [edx + 0x20]
lea edi, [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebp - 0x58]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x100123ee
mov ecx, dword [ebx + 0x1c]
mov eax, dword [esi + 0x10]
push 0xea60
add eax, 0x14
mov edx, dword [ecx]
push eax
push esi
call dword [edx + 0x20]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
lea esi, [ebx + 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x6c]
push esi
call edi
push dword [ebp - 0x50]
call fcn.1007bd0d
inc dword [ebx + 0x80]
lea eax, [ebx + 0x30]
add esp, 4
push eax
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 4
Function at 0x10012a90
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x100b5004]
xor eax, esp
mov dword [esp + 0x150], eax
movzx eax, word [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push eax
lea eax, [esp + 0x150]
mov dword [esp + 0x14], 0
push 0x100aabb8
push eax
mov edi, ecx
mov dword [esp + 0x2c], 0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x154]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x10012c24
mov ecx, dword [esp + 0x10]
mov eax, ecx
mov dword [esp + 0xc], eax
test eax, eax
je 0x10012c22
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
nop
push dword [ecx + 0xc]
push dword [ecx + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [edi + 4], ecx
cmp ecx, 0xffffffff
je 0x10012c5e
mov eax, dword [edi + 0x34]
test eax, eax
je 0x10012c3b
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 1
call esi
mov eax, dword [esp + 0x10]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10012bc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10012c59
mov esi, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [edi + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 1
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x10012bf0
mov esi, 0x274c
jmp 0x10012c59
js 0x10012c51
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x8004667e
push dword [edi + 4]
call esi
push 0
push 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor esi, esi
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10012c09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push dword [edi + 4]
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10012b40
jmp 0x10012c18
Function at 0x10012c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
lea esi, [edi + 8]
push esi
push 0
push ebx
push 1
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x10012cd7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x10012d80
lea esi, [edi + 8]
mov eax, dword [edi + 0x30]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
sub eax, 0
je 0x10012d72
sub eax, 1
je 0x10012d3e
sub eax, 0x101
je 0x10012d1f
pop edi
pop esi
mov eax, 0x54f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
mov esi, 0x274c
jmp 0x10012d77
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
xor esi, esi
lea eax, [edi + 8]
push esi
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x10012d66
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp dword [ebx], 0
jne 0x10012d77
mov esi, 0x2746
jmp 0x10012d77
mov esi, 0x4c7
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10012da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
lea esi, [edi + 0x1c]
mov dword [ebp - 0x10], 0
push esi
push eax
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10012e00
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x10012eba
lea esi, [edi + 0x1c]
mov eax, dword [edi + 0x30]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
sub eax, 0
je 0x10012eac
sub eax, 1
je 0x10012e78
sub eax, 0x101
je 0x10012e4c
pop edi
pop esi
mov eax, 0x54f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x10012e71
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov esi, 0x274c
jmp 0x10012eb1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
xor esi, esi
lea eax, [edi + 0x1c]
push esi
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x10012ea0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp dword [ebx], 0
jne 0x10012eb1
mov esi, 0x2746
jmp 0x10012eb1
mov esi, 0x4c7
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10014130
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 4
je 0x10014144
mov dword [ebp + 8], eax
pop ebp
jmp method.CXTcpSocketClient.virtual_28
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], 4
pop ebp
ret 8

Function at 0x10014310
Capabilities:
Connect network resource
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
mov eax, dword [0x100b5004]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x40]
push 0x104
push 0
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
call fcn.1007d2d0
add esp, 0xc
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x100143b7
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
add edx, 0x5c
sub ecx, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
movzx eax, byte [edi]
mov byte [edx + esi], al
mov edx, dword [esp + 0x14]
mov al, byte [edi]
mov byte [ecx + edi], al
cmp al, 0x5c
lea ecx, [edx + 1]
cmovne ecx, edx
mov eax, ecx
mov dword [esp + 0x14], eax
cmp eax, 3
je 0x1001443d
push dword [esp + 0xc]
inc esi
inc edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp esi, eax
jl 0x10014375
mov edi, dword [esp + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x10]
mov word [esi + 0x46], ax
lea eax, [esi + 0x48]
push eax
lea eax, [esp + 0x46]
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 1
push dword [esi + 0x54]
xorps xmm0, xmm0
lea eax, [esi + 0x5c]
push dword [esi + 0x58]
movaps xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
movaps xmmword [esp + 0x30], xmm0
call dword [sym.imp.MPR.dll_WNetAddConnection2A]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10014467
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 8
cmp esi, 0x104
jae 0x1001448a
mov eax, dword [esp + 0x10]
push str.ipc_
push dword [esp + 0x1c]
mov byte [esp + esi + 0x48], 0
mov byte [eax + esi + 0x5d], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x100143b3
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [esp + 0x14c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 8
call fcn.1007c197
int3
Function at 0x10014490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
push esi
push ebx
push dword [ebp + 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100144d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x10014562
lea esi, [edi + 8]
mov eax, dword [edi + 0x30]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
sub eax, 0
je 0x1001455d
sub eax, 1
je 0x10014534
sub eax, 0x101
je 0x10014520
pop edi
pop esi
mov eax, 0x54f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
push 0
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov esi, 0x274c
jmp 0x10014562
xor esi, esi
lea eax, [edi + 8]
push esi
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x10014551
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp dword [ebx], 0
jne 0x10014562
mov esi, 0x2746
jmp 0x10014562
mov esi, 0x4c7
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10014580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
push ebx
push dword [ebp + 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100145c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x1001465f
lea esi, [edi + 0x1c]
mov eax, dword [edi + 0x30]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
sub eax, 0
je 0x1001465a
sub eax, 1
je 0x10014631
sub eax, 0x101
je 0x10014610
pop edi
pop esi
mov eax, 0x54f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
push 0
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001462a
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov esi, 0x274c
jmp 0x1001465f
xor esi, esi
lea eax, [edi + 0x1c]
push esi
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1001464e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebx], 0
jne 0x1001465f
mov esi, 0x2746
jmp 0x1001465f
mov esi, 0x4c7
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10014f74
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [0x100df528]
push edi
mov edi, ecx
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10014fa9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10015040
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100df54c], eax
test eax, eax
je 0x10014f9e
push edi
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x100df550], eax
test eax, eax
je 0x1001503a
mov ebx, edi
lea eax, [ebp - 8]
mov ecx, 0x10015314
push eax
push edi
push edi
test ebx, ebx
mov eax, 0x100153b8
cmove eax, ecx
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx*4 + 0x100df52c], eax
test eax, eax
je 0x1001503a
inc ebx
cmp ebx, 8
jl 0x10014fd5
push edi
push edi
push edi
push 0x10015055
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [ebp - 4]
push str.VTCP_10.12.08
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 0x3f2
mov dword [ebx], 0x6000500
mov word [ebx + 0x188], ax
jmp 0x10015047
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1001521f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001554f
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x490]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1001557b
mov dword [ebx + 0x44c], eax
jmp 0x1001568e
push 1
push edi
push edi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebx + 0x448], eax
cmp eax, 0xffffffff
jne 0x100155a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10015636
push edi
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
push ecx
push 4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push ecx
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 8], edi
push ecx
push 0x9800000c
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x10015596
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebx + 0x448]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10015596
push 4
lea eax, [ebp - 4]
push eax
push 0xe
push edi
push dword [ebx + 0x448]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10015596
push edi
push ebx
push dword [ebp + 8]
push dword [ebx + 0x448]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x10015630
push edi
push 1
push dword [ebx + 0x448]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x10015661
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 0x448]
cmp eax, 0xffffffff
je 0x1001568e
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebx + 0x448]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebx + 0x448], 0xffffffff
jmp 0x1001568e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x10
push eax
lea eax, [ebx + 0x470]
push eax
push dword [ebx + 0x448]
call dword [sym.imp.WS2_32.dll_getsockname]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
inc ecx
mov dword [ebx + 0x45c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1001569e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x10
lea esi, [edi + 0x490]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x45c], 1
je 0x100156ca
mov edi, 0x139f
jmp 0x1001570d
push dword [ebp - 4]
push dword [ebp + 8]
push dword [edi + 0x448]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x100156ea
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x1001570d
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0x470]
push eax
push dword [edi + 0x448]
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [edi + 0x45c], 2
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x100157c9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0xc
push esi
mov esi, ecx
test edx, edx
jne 0x100157df
lea edx, [esi + 0x460]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
lea eax, [ecx + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x44c]
test eax, eax
je 0x100157ff
mov eax, dword [eax + 0x448]
jmp 0x10015805
mov eax, dword [esi + 0x448]
xor ecx, ecx
push ecx
push ecx
push 0x10
push edx
push ecx
lea ecx, [ebp + 0xc]
push ecx
push 1
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x1001582a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10015837
call fcn.10014f0b
mov dword [esi + 0x480], eax
xor eax, eax
pop esi
leave
ret 8