joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100046a0
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x10011010]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
mov ebp, dword [esp + 0x220]
push esi
mov esi, dword [esp + 0x228]
mov dword [esp + 0xc], esi
mov byte [esp + 0x14], 0
call fcn.1000a470
cmp eax, 3
jne 0x10004743
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000475c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
lea eax, [esp + 0x11c]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000475c
cmp eax, 2
jne 0x100048b9
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10004761
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x1000f288]
mov word [ecx + 4], ax
mov al, byte [0x1000f28a]
mov byte [ecx + 6], al
lea eax, [esp + 0x14]
push 0x1000f28c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x100047d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x100048b9
sub eax, 1
je 0x100048b9
mov dword [esi], 0
mov eax, 0xe
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1000de3c
add esp, 0x218
ret
push ebx
push esi
push dword [ebp]
push eax
call fcn.100017d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10004838
push edi
nop
mov edi, dword [esi]
mov edx, dword [ebp]
movsx ecx, word [edi + 8]
cmp edx, ecx
jne 0x10004873
cmp edx, 2
jne 0x10004810
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
cmp eax, dword [ebp + 4]
je 0x10004837
jmp 0x10004873
cmp edx, 0x17
jne 0x10004873
mov eax, dword [edi + 0xc]
lea edx, [ebp + 4]
mov esi, 0xc
mov ecx, dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000486f
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10004822
mov esi, dword [esp + 0x14]
pop edi
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp ebx, 0xd
jne 0x10004895
mov ebx, 4
mov dword [esi], 0
mov eax, ebx
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1000de3c
add esp, 0x218
ret
mov esi, dword [esp + 0x14]
push edi
call sym.cares.dll_ares_free_hostent
push esi
push dword [ebp]
push dword [esp + 0x1c]
call fcn.100017d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x100047f0
jmp 0x10004837
test ebx, ebx
je 0x1000489f
mov dword [esi], 0
mov eax, ebx
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1000de3c
add esp, 0x218
ret
mov ecx, dword [esp + 0x21c]
mov eax, 4
pop esi
pop ebp
xor ecx, esp
call fcn.1000de3c
add esp, 0x218
ret
Function at 0x100059a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
lea eax, [esp]
push ebx
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x64]
push eax
lea eax, [esp + 0x14]
mov dword [esi], 0
push eax
push edi
call sym.cares.dll_ares_save_options
mov ebx, eax
add esp, 0xc
lea eax, [esp + 0x10]
test ebx, ebx
je 0x100059e2
push eax
call sym.cares.dll_ares_destroy_options
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x50
ret
push dword [esp + 0xc]
push eax
push esi
call sym.cares.dll_ares_init_options
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
call sym.cares.dll_ares_destroy_options
add esp, 0x10
test ebx, ebx
jne 0x100059d9
mov ecx, dword [esi]
mov eax, dword [edi + 0x91a8]
push 0x20
mov dword [ecx + 0x91a8], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x91ac]
mov dword [ecx + 0x91ac], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x91b0]
mov dword [ecx + 0x91b0], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x91b4]
mov dword [ecx + 0x91b4], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x91b8]
mov dword [ecx + 0x91b8], eax
mov ecx, dword [esi]
mov eax, dword [edi + 0x91bc]
mov dword [ecx + 0x91bc], eax
lea eax, [edi + 0x3c]
push eax
mov eax, dword [esi]
add eax, 0x3c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [edi + 0x5c]
mov dword [ecx + 0x5c], eax
xor ecx, ecx
mov eax, dword [esi]
movups xmm0, xmmword [edi + 0x60]
movups xmmword [eax + 0x60], xmm0
mov edx, dword [edi + 0x78]
test edx, edx
jle 0x10005aa9
mov eax, dword [edi + 0x74]
add eax, 0x18
nop word [eax + eax]
cmp dword [eax - 0x18], 2
jne 0x10005ab2
cmp dword [eax - 4], 0
jne 0x10005ab2
cmp dword [eax], 0
jne 0x10005ab2
inc ecx
add eax, 0x58
cmp ecx, edx
jl 0x10005a90
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret
lea eax, [esp + 0x60]
push eax
push edi
call sym.cares.dll_ares_get_servers_ports
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
je 0x10005ae0
push eax
call sym.cares.dll_ares_destroy
add esp, 4
mov dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x50
ret
push dword [esp + 0x60]
push eax
call sym.cares.dll_ares_set_servers_ports
push dword [esp + 0x68]
mov edi, eax
call sym.cares.dll_ares_free_data
add esp, 0xc
test edi, edi
je 0x10005aa9
push dword [esi]
jmp 0x10005ac9
Function at 0x10006df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006e28
cmp eax, 0xea
jne 0x10006e85
mov eax, dword [esp + 4]
test eax, eax
je 0x10006e85
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x10006e85
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006e74
mov ecx, dword [esp + 4]
cmp ecx, 1
je 0x10006e74
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
pop ecx
ret
push dword [esi]
call dword [0x10011008]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0x1000a640
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x1000a669
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call eax
add esp, 0x10
ret
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
ret

Function at 0x1000a950
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x10011010]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
cmp dword [esi + 0x91b8], 0
jne 0x1000aa48
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x1000a9b3
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x1000aa10
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x1000a9d1
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x1000aa10
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x1000aa25
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1000aa48
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [esp + 0x10], xmm0
push eax
mov word [esp + 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1000aa48
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
cmp eax, 0x17
jne 0x1000aa48
lea ebx, [esi + 0x60]
mov edx, 0x1000f760
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000aa5c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1000aa37
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x10], xmm0
mov eax, 0x17
movq qword [esp + 0x20], xmm0
movups xmm0, xmmword [ebx]
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push 0x1c
push eax
push edi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
test eax, eax
pop edi
setns cl
pop esi
pop ebx
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
Function at 0x1000ac20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [esp + 0x40]
imul esi, ebp, 0x58
add esi, dword [edi + 0x74]
push esi
push edi
call fcn.100016e0
lea eax, [esp + 0x20]
push eax
call fcn.10007df0
lea eax, [esp + 0x24]
push eax
lea ebx, [esi + 0x44]
call fcn.10007e50
push ebx
mov esi, eax
call fcn.10007e50
movq xmm1, qword [ebx]
add esp, 0x14
movq xmm0, qword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
movq qword [esp + 0x24], xmm0
movq qword [esp + 0x10], xmm1
movq qword [esp + 0x30], xmm1
mov dword [esp + 0x44], ecx
test esi, esi
je 0x1000aca2
push ebx
call fcn.10007df0
movq xmm1, qword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x44]
jmp 0x1000acb6
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ebx
cmp dword [esp + 0x40], 0
je 0x1000accc
lea eax, [esp + 0x18]
push eax
call fcn.10007df0
add esp, 4
jmp 0x1000ace7
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
movq qword [esp + 0x18], xmm1
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
cmp esi, eax
je 0x1000ad29
mov ebx, dword [esp + 0x48]
nop word [eax + eax]
cmp dword [edi + 0x78], 1
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
jle 0x1000ad16
mov eax, dword [ecx + 0x5c]
mov dword [eax + ebp*8], 1
push ebx
push ecx
push edi
call fcn.1000af20
lea eax, [esp + 0x24]
add esp, 0xc
cmp esi, eax
jne 0x1000ad00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x1000ad40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
cmp ebp, 0xc
jl 0x1000af0f
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], 0
movzx ecx, byte [ebx + 4]
lea esi, [ebx + 0xc]
movzx eax, byte [ebx + 5]
movzx edx, byte [ebx + 6]
shl edx, 8
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or edx, eax
mov dword [esp + 0x28], ecx
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [ebx + 8]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x18], edx
movzx edx, byte [ebx + 0xa]
shl edx, 8
or edx, eax
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x1000adfe
nop dword [eax + eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push esi
call sym.cares.dll_ares_expand_name
add esp, 0x14
test eax, eax
jne 0x1000af0f
push dword [esp + 0x20]
call sym.cares.dll_ares_free_string
mov eax, dword [esp + 0x28]
lea edi, [ebx + ebp]
add eax, 4
add esp, 4
add esi, eax
cmp esi, edi
ja 0x1000af0f
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x28]
jb 0x1000adb0
jmp 0x1000ae01
lea edi, [ebx + ebp]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
add eax, dword [esp + 0x18]
je 0x1000ae7f
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebx
push esi
call sym.cares.dll_ares_expand_name
add esp, 0x14
test eax, eax
jne 0x1000af0f
push dword [esp + 0x28]
call sym.cares.dll_ares_free_string
mov eax, dword [esp + 0x30]
add esp, 4
lea edx, [eax + 0xa]
add edx, esi
cmp edx, edi
ja 0x1000af0f
movzx ecx, byte [eax + esi + 8]
movzx esi, byte [eax + esi + 9]
shl ecx, 8
or esi, ecx
add esi, edx
cmp esi, edi
ja 0x1000af0f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x1000ae13
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0
jbe 0x1000aef8
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push esi
call sym.cares.dll_ares_expand_name
add esp, 0x14
test eax, eax
jne 0x1000af0f
push dword [esp + 0x18]
call sym.cares.dll_ares_free_string
mov edx, dword [esp + 0x18]
add esp, 4
add edx, esi
lea esi, [edx + 0xa]
cmp esi, edi
ja 0x1000af0f
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl cx, 8
or cx, ax
cmp cx, 0x29
je 0x1000af02
movzx ecx, byte [edx + 8]
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
add esi, ecx
cmp esi, edi
ja 0x1000af0f
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x1c]
jb 0x1000ae90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
Function at 0x1000b200
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x10011010]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov eax, dword [ebx]
sub eax, 2
je 0x1000b272
sub eax, 0x15
jne 0x1000b309
mov eax, 0x17
mov dword [esp + 0xc], 0x1c
xorps xmm0, xmm0
mov word [esp + 0x10], ax
mov eax, dword [ebx + 0x14]
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x24], xmm0
test eax, eax
je 0x1000b25a
push eax
jmp 0x1000b25d
push dword [esi + 0x14]
call fcn.100080d0
movups xmm0, xmmword [ebx + 4]
mov word [esp + 0x16], ax
movups xmmword [esp + 0x1c], xmm0
jmp 0x1000b2ab
mov eax, 2
mov dword [esp + 0xc], 0x10
mov word [esp + 0x10], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x14]
movlpd qword [esp + 0x18], xmm0
test eax, eax
je 0x1000b297
push eax
jmp 0x1000b29a
push dword [esi + 0x14]
call fcn.100080d0
mov word [esp + 0x16], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x1000b2ce
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x1000b2d9
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000b309
push esi
push dword [ebx]
push edi
call fcn.1000a950
add esp, 0xc
test eax, eax
jns 0x1000b33a
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x1000b31e
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
mov eax, dword [esi + 0x91b0]
push ebp
test eax, eax
je 0x1000b359
push dword [esi + 0x91b4]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
js 0x1000b3c3
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.1000a640
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000b3a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x1000b3a5
cmp eax, 0x2733
je 0x1000b3a5
push edi
push esi
call fcn.1000a610
add esp, 8
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x1000b3e2
push dword [esi + 0x91ac]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jns 0x1000b3e2
push edi
push esi
call fcn.1000a610
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x1000b3fc
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [esp + 0x30]
xor eax, eax
pop ebp
mov dword [ebx + 0x1c], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000de3c
add esp, 0x24
ret
Function at 0x1000be10
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
mov edx, dword [ecx + 0x91b8]
test edx, edx
je 0x1000be4e
push dword [ecx + 0x91bc]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 1
push eax
push dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
call eax
add esp, 0x10
add esp, 8
ret
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
add esp, 8
ret
Function at 0x1000be70
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x1000be89
cmp edx, 0xffffffff
je 0x1000c050
push ebx
mov ebx, dword [esp + 0x18]
push ebp
xor ebp, ebp
cmp dword [ebx + 0x78], ebp
jle 0x1000c04e
xor eax, eax
mov dword [esp + 0xc], eax
push edi
mov edi, dword [ebx + 0x74]
add edi, eax
cmp dword [edi + 0x38], 0
je 0x1000c03a
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x1000c03a
cmp dword [edi + 0x54], 0
jne 0x1000c03a
test esi, esi
je 0x1000bf32
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1000c036
mov ecx, dword [esi]
xor edx, edx
test ecx, ecx
je 0x1000bf3a
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0x20]
add eax, 4
nop dword [eax + eax]
cmp dword [eax], esi
je 0x1000befe
inc edx
add eax, 4
cmp edx, ecx
jb 0x1000bef0
jmp 0x1000bf3a
lea eax, [ecx - 1]
cmp edx, eax
jae 0x1000bf27
mov ebx, dword [esp + 0x24]
lea esi, [ebx + 4]
lea esi, [esi + edx*4]
nop
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], eax
inc edx
mov ecx, dword [ebx]
lea eax, [ecx - 1]
cmp edx, eax
jb 0x1000bf10
mov ebx, dword [esp + 0x20]
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x1000bf3a
cmp eax, edx
jne 0x1000c03a
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x1000bf4b
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x1000bf43
lea eax, [ecx*8]
push eax
call dword [section..data]
mov ecx, dword [edi + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x1000bfe6
xor edx, edx
test ecx, ecx
je 0x1000bf89
nop
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
cmp edx, 0x10
jae 0x1000bf89
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x1000bf70
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x1000bfa9
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x1000bfb4
push edx
push esi
push eax
call fcn.1000d080
add esp, 0xc
push esi
mov edi, eax
call dword [0x10011008]
add esp, 4
test edi, edi
jns 0x1000bfe3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x1000c032
cmp eax, 0x2733
je 0x1000c032
push dword [esp + 0x2c]
push ebp
push ebx
call fcn.1000ac20
jmp 0x1000c02f
push edi
jmp 0x1000c028
mov esi, dword [ebx + 0x91b8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x20]
test esi, esi
je 0x1000c018
push dword [ebx + 0x91bc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x1000c023
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x1000bfc4
push eax
push ebp
push ebx
call fcn.1000a580
add esp, 0xc
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add dword [esp + 0x10], 0x58
inc ebp
mov eax, dword [esp + 0x10]
cmp ebp, dword [ebx + 0x78]
jl 0x1000bea1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x1000d080
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x1000d122
mov esi, dword [esp + 0x18]
xor ecx, ecx
add esi, 4
mov edx, esi
nop dword [eax]
mov ebp, dword [edx]
mov eax, closesocket
sub eax, edi
cmp ebp, eax
ja 0x1000d122
inc ecx
add edi, ebp
add edx, 8
cmp ecx, ebx
jl 0x1000d0a0
test edi, edi
jne 0x1000d0c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
call dword [section..data]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1000d0e4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov ebp, eax
push dword [esi]
push dword [esi - 4]
push ebp
call sub.VCRUNTIME140.dll_memcpy
add ebp, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub ebx, 1
jne 0x1000d0e6
push ebx
push edi
mov edi, dword [esp + 0x24]
push edi
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call dword [0x10011008]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x1000d260
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 2
jne 0x1000d27b
push 4
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1000d420
jmp 0x1000d28f
cmp eax, 0x17
jne 0x1000d2b3
push 0x10
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.1000d7c0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1000d2a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000d2a8
xor eax, eax
pop esi
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
ret