joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100bd5f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1004a620
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x100bd60f
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x100bd6df
jb 0x100bd634
test eax, eax
jne 0x100bd6df
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x100bd680
nop
test esi, esi
je 0x100bd6d1
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x18], ecx
jne 0x100bd650
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call fcn.100bec90
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x100bd683
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x100bd6a5
push eax
push edi
push ecx
push ebx
call fcn.100bea60
add edi, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x100bd6cd
mov ecx, esi
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x100bd6b0
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x100be840
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.1004a620
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebp, 0xc
jne 0x100be8ab
mov eax, dword [esp + 0x24]
lea ebx, [ebp - 0xb]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x100be9da
push edi
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x40], edi
lea ebx, [esi + 0x40]
mov dword [ebx + 4], edi
lea edx, [esi + 0x60]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x100be93f
mov eax, ebp
lea ecx, [esi + 0x41]
shr eax, 4
mov esi, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
lea edx, [edi + 2]
mov eax, ecx
mov ebx, 4
nop dword [eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 5]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 2], cl
sub ebx, 1
jne 0x100be8f0
push dword [esp + 0x14]
push esi
call fcn.100bec90
mov ecx, dword [esp + 0x20]
add esp, 8
add edi, 0x10
sub ebp, 0x10
sub dword [esp + 0x2c], 1
jne 0x100be8e3
mov esi, dword [esp + 0x24]
lea ebx, [esi + 0x40]
lea edx, [esi + 0x60]
test ebp, ebp
je 0x100be95e
mov ecx, ebx
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub ebp, 1
jne 0x100be945
push edx
push ebx
call fcn.100bec90
add esp, 8
mov edx, dword [esp + 0x1c]
xor eax, eax
shld eax, edx, 3
xor byte [esi + 0x4b], al
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x24]
shl edx, 3
xor byte [esi + 0x4f], dl
mov ecx, edx
shrd ecx, eax, 0x18
mov eax, edi
xor byte [esi + 0x4c], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
xor byte [esi + 0x4d], cl
shrd eax, edi, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
push ebx
call fcn.100bec90
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
mov ecx, dword [esi + 0x44]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [esi + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
pop edi
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100c6100
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x100c6114
mov dword [esp + 0x18], fcn.100c48e0
jmp fcn.100bcb50
mov dword [esp + 0x18], fcn.100c3b80
jmp fcn.100bc850
Function at 0x10150d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.10002b80
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.1006506a
Function at 0x101566a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x101566d6
mov al, byte [esi]
push eax
call fcn.101616c0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x101566b8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x1015e3f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov eax, dword [edx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax + ecx*4 + 0x158]
push ecx
push eax
push edx
mov dword [ebp - 0x108], edx
call fcn.1015e870
add esp, 0xc
test eax, eax
je 0x1015e44b
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x1015e4c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x1015e490
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.101881f0
push eax
push str.Send_failure:__s
push dword [ebp - 0x108]
call fcn.1015e080
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x958], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100499a5
mov esp, ebp
pop ebp
ret

Function at 0x1015e870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x18]
mov eax, dword [ecx + 0x298]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1015e92b
cmp dword [ecx + edx*4 + 0x170], 0x1015e2f0
jne 0x1015e92b
cmp dword [esi], 0
je 0x1015e8b4
test edi, edi
je 0x1015e92b
mov ebx, dword [ecx + edx*4 + 0x158]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.1016b660
add esp, 0x14
cmp eax, 0xffffffff
je 0x1015e92b
test al, 1
je 0x1015e92b
mov ecx, dword [esi]
test ecx, ecx
jne 0x1015e914
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x1026a990]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x1015e903
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1015e92b
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1015eac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ac], 0
je 0x1015eae0
push eax
call fcn.10158c60
add esp, 4
test eax, eax
jne 0x1015eafe
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x158]
cmp eax, 0xffffffff
je 0x1015eadc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1015eadc
mov al, 1
pop ebp
ret
Function at 0x1015ecf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.1004e550
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1015ed6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.101881f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1015edb0
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.1015e940
add esp, 0x10
test al, al
jne 0x1015edb9
call fcn.10053c6c
mov esi, dword [eax]
call fcn.10053c6c
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.101881f0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1015e080
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100499a5
mov esp, ebp
pop ebp
ret

Function at 0x1015f4b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1027241c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1015f501
push 3
push 2
push eax
push 6
call fcn.10188f00
add esp, 0x10
test al, al
je 0x1015f4f5
mov dword [0x1027241c], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1027241c], 1
jmp 0x1015f506
cmp eax, 2
je 0x1015f546
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1015f52d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1015f546
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x10160320
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x70f], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1016037d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1015e140
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
push dword [esi + 0x6a8]
mov dword [ebp - 0x10], 1
call fcn.10150db0
push dword [esi + 0x6ac]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10150db0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x101603ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.1015e140
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100499a5
mov esp, ebp
pop ebp
ret

Function at 0x10160400
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10160462
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101881f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1015e140
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x10160780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x101607a0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x10240068
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x101e1bb0
push esi
mov dword [ebp - 8], ebx
call fcn.1006d4a9
add esp, 8
test eax, eax
je 0x101607ec
test ebx, ebx
je 0x101607dc
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10160815
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10160815
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x101608d8
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10160831
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x1026a990]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x101608ce
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x101608ce
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10160870
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10160890
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x101608a5
mov eax, dword [ebp - 8]
test eax, eax
je 0x101608c5
push 8
push 0
push ebx
call eax
jmp 0x101608cc
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x1026a994]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x101608f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x10160949
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10160936
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10160930
shr eax, 8
cmp al, 2
je 0x10160949
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
push str.iphlpapi.dll
call fcn.10160780
add esp, 4
mov dword [0x10272424], eax
test eax, eax
je 0x1016097c
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x10272420]
test eax, eax
cmovne ecx, eax
mov dword [0x10272420], ecx
push 3
push 2
push 0
push 6
call fcn.10188f00
add esp, 0x10
test al, al
setne byte [0x10272d68]
push 0x10272d70
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret

Function at 0x101628b0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x101628c5
mov eax, dword [eax + 0x7c]
mov al, byte [eax + 0xe7]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x101628da
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret

Function at 0x10162a70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10162a9b
cmp dword [esi + 0x84], 0
je 0x10162a9b
push 2
push 3
push esi
call fcn.10161cc0
push dword [ebp + 0xc]
call fcn.10162480
add esp, 0x10
jmp 0x10162aaa
push dword [ebp + 0xc]
call fcn.10162480
add esp, 4
test esi, esi
je 0x10162abe
cmp dword [esi + 0x84], 0
je 0x10162abe
push 3
push esi
call fcn.10161d00
add esp, 8
pop esi
pop ebp
ret
Function at 0x10168110
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10269114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x101682e1
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0x24], xmm0
mov word [ebp - 0x2c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x28], eax
xor eax, eax
push 4
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x101682cf
push 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x101682cf
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x101682cf
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x101682cf
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x101682cf
push 0x10
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x101682cf
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x101682cf
push ebx
push 0x101dbd58
lea eax, [ebp - 0x1c]
push 0xc
push eax
call fcn.10150ef0
lea esi, [ebp - 0x1c]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10168236
push 0
sub esi, ecx
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x101682cf
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x101682cf
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x10]
sub esi, 4
jb 0x10168283
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10168288
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10168272
cmp esi, 0xfffffffc
je 0x101682b5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x101682cf
cmp esi, 0xfffffffd
je 0x101682b5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x101682cf
cmp esi, 0xfffffffe
je 0x101682b5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x101682cf
cmp esi, 0xffffffff
je 0x101682b5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x101682cf
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100499a5
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100499a5
mov esp, ebp
pop ebp
ret
Function at 0x1016b7e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x14
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
test edx, edx
je 0x1016b7f9
cmp dword [edx], 0
jne 0x1016b819
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1016b805
cmp dword [eax], 0
jne 0x1016b819
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1016b95d
cmp dword [eax], 0
je 0x1016b95d
push esi
lea esi, [ebp - 0xc]
test ebx, ebx
jg 0x1016b840
jl 0x1016b827
test ecx, ecx
jae 0x1016b82e
xor esi, esi
jmp 0x1016b921
test ebx, ebx
jl 0x1016b913
jg 0x1016b840
test ecx, ecx
je 0x1016b913
mov eax, ecx
mov edx, 0x1a9fbe77
mul edx
push edi
mov dword [ebp - 0xc], eax
mov esi, edx
mov eax, ecx
mov edi, 0x624dd2f
mul edi
mov ecx, 0x1a9fbe77
mov edi, eax
mov dword [ebp - 4], edx
mov eax, ebx
mul ecx
push 0
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp + 0x1c]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov dword [ebp - 8], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 4]
adc ecx, 0
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x18]
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 8]
push 0x3e8
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp + 0x1c]
mov esi, ebx
adc edx, eax
mov eax, edi
sub eax, ecx
sbb esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, ecx
adc esi, edx
shrd eax, esi, 9
shr esi, 9
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10049e30
sub edi, eax
push 0
push 0x3e8
sbb ebx, edx
push ebx
push edi
call fcn.10049e30
pop edi
test esi, esi
jl 0x1016b902
jg 0x1016b8e8
mov ecx, dword [ebp - 4]
cmp ecx, 0x7fffffff
jbe 0x1016b905
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov ecx, closesocket
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jmp 0x1016b921
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jmp 0x1016b921
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1016b92d
cmp dword [eax], 0
jne 0x1016b92f
xor eax, eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1016b93b
cmp dword [ecx], 0
jne 0x1016b93d
xor ecx, ecx
test edx, edx
je 0x1016b946
cmp dword [edx], 0
jne 0x1016b948
xor edx, edx
push esi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
call fcn.1016b790
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1016e5f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.101620d0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.10161d40
push dword [ebp + 0xc]
mov edi, eax
call fcn.10161d40
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x1016e677
lea eax, [ebp - 0x20]
push eax
call fcn.101620d0
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.10162180
add esp, 0x20
test edx, edx
ja 0x1016e69a
jb 0x1016e665
cmp eax, 0x3e8
ja 0x1016e69a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x1016e630
test edi, edi
je 0x1016e684
push edi
call fcn.1005171d
add esp, 4
test esi, esi
je 0x1016e691
push esi
call fcn.1005171d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1016e6a7
push edi
call fcn.1005171d
add esp, 4
test esi, esi
je 0x1016e6b4
push esi
call fcn.1005171d
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret