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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov r12, r9
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov edx, r8d
call fcn.1400b0a90
mov ecx, esi
call fcn.140170d00
mov r14, rax
mov ecx, dword [rbx + 4]
shl ecx, 4
add ecx, 0x10
call fcn.140170d00
mov r15, rax
mov rcx, rbx
mov rdx, r12
mov r8, rax
call fcn.1400b07a0
test esi, esi
je 0x1400b0773
mov rax, qword [rsp + 0xa0]
xor ebp, ebp
mov r13d, ebp
lea r8, [r14 + r13]
lea r12, [rdi + r13]
movups xmm6, xmmword [rax]
mov rcx, rbx
mov rdx, r12
mov r9, r15
call fcn.1400b0b60
movups xmm0, xmmword [r14 + r13]
xorps xmm0, xmm6
movups xmmword [r14 + r13], xmm0
add ebp, 0x10
mov rax, r12
cmp ebp, esi
jb 0x1400b0740
mov rcx, r15
call fcn.140170ccc
mov rax, r14
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b1400
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movzx eax, byte [rdx + 6]
mov qword [rsp + 0x78], rax
movzx eax, byte [rdx + 7]
mov qword [rsp + 0x70], rax
movzx eax, byte [rdx + 8]
mov qword [rsp + 0x68], rax
movzx eax, byte [rdx + 9]
mov qword [rsp + 0x60], rax
movzx eax, byte [rdx + 0xa]
mov qword [rsp + 0x58], rax
movzx eax, byte [rdx + 0xb]
mov qword [rsp + 0x50], rax
movzx eax, byte [rdx + 0xc]
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov qword [rsp + 0x40], rax
movzx eax, byte [rdx + 1]
mov qword [rsp + 0x38], rax
movzx eax, byte [rdx + 2]
mov qword [rsp + 0x30], rax
movzx r15d, byte [rdx + 3]
movzx r12d, byte [rdx + 4]
movzx r13d, byte [rdx + 5]
movzx ebp, byte [rdx + 0xd]
movzx eax, byte [rdx + 0xe]
mov qword [rsp + 0x28], rdx
movzx edx, byte [rdx + 0xf]
mov ecx, 3
lea r8, [0x140380d40]
lea r9, [0x14037fd40]
nop dword [rax]
movzx ebx, byte [rcx + r8 - 3]
shl rbx, 8
add rbx, r9
movzx r10d, byte [rsp + rcx + 0x7d]
movzx r11d, byte [rsp + rcx + 0x7e]
mov rsi, qword [rsp + 0x40]
xor r10b, byte [rsi + rbx]
mov rsi, qword [rsp + 0x38]
xor r11b, byte [rsi + rbx]
movzx esi, byte [rsp + rcx + 0x7f]
mov rdi, qword [rsp + 0x30]
xor sil, byte [rdi + rbx]
movzx edi, byte [rsp + rcx + 0x80]
xor dil, byte [r15 + rbx]
movzx ebx, byte [rcx + r8 - 2]
shl rbx, 8
add rbx, r9
xor r10b, byte [r12 + rbx]
xor r11b, byte [r13 + rbx]
mov r14, qword [rsp + 0x78]
xor sil, byte [r14 + rbx]
mov r14, qword [rsp + 0x70]
xor dil, byte [r14 + rbx]
movzx ebx, byte [rcx + r8 - 1]
shl rbx, 8
add rbx, r9
mov r14, qword [rsp + 0x68]
xor r10b, byte [r14 + rbx]
mov r14, qword [rsp + 0x60]
xor r11b, byte [r14 + rbx]
mov r14, qword [rsp + 0x58]
xor sil, byte [r14 + rbx]
mov r14, qword [rsp + 0x50]
xor dil, byte [r14 + rbx]
movzx ebx, byte [rcx + r8]
shl rbx, 8
add rbx, r9
mov r14, qword [rsp + 0x48]
xor r10b, byte [r14 + rbx]
xor r11b, byte [rbp + rbx]
xor sil, byte [rax + rbx]
xor dil, byte [rdx + rbx]
mov byte [rsp + rcx + 0x7d], r10b
mov byte [rsp + rcx + 0x7e], r11b
mov byte [rsp + rcx + 0x7f], sil
mov byte [rsp + rcx + 0x80], dil
add rcx, 4
cmp rcx, 0x13
jne 0x1400b14c0
movaps xmm0, xmmword [rsp + 0x80]
mov rax, qword [rsp + 0x28]
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140170e40
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b4a90
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor eax, eax
nop word [rax + rax]
mov edx, dword [rcx + rax*4]
bswap edx
mov dword [rsp + rax*4 + 0x50], edx
inc rax
cmp rax, 0x10
jne 0x1400b4ac0
mov eax, reloc.WS2_32.dll_recv
movabs rdx, 0x100000000
xor r10d, r10d
movabs r8, 0xe00000000
movabs r9, 0x900000000
nop dword [rax + rax]
lea r11, [r10 + r8]
sar r11, 0x1e
mov r11d, dword [rsp + r11 + 0x50]
mov esi, r11d
rol esi, 0xf
mov edi, r11d
rol edi, 0xd
xor edi, esi
shr r11d, 0xa
xor r11d, edi
lea rsi, [r10 + r9]
sar rsi, 0x1e
add r11d, dword [rsp + rsi + 0x50]
lea rsi, [r10 + rdx]
mov rdi, rsi
sar rdi, 0x1e
mov edi, dword [rsp + rdi + 0x50]
mov ebx, edi
rol ebx, 0x19
mov ebp, edi
rol ebp, 0xe
sar r10, 0x1e
add r11d, dword [rsp + r10 + 0x50]
mov r10, rsi
xor ebp, ebx
shr edi, 3
xor edi, ebp
add r11d, edi
mov dword [rsp + rax*4 + 0x50], r11d
inc rax
cmp rax, 0x40
jne 0x1400b4b00
mov ebp, dword [rcx + 0x50]
mov r15d, dword [rcx + 0x54]
mov r11d, dword [rcx + 0x58]
mov r12d, dword [rcx + 0x5c]
mov r13d, dword [rcx + 0x60]
mov r9d, dword [rcx + 0x64]
mov eax, dword [rcx + 0x68]
mov qword [rsp + 0x48], rcx
mov edx, dword [rcx + 0x6c]
xor r14d, r14d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], r15d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x34], r12d
nop word cs:[rax + rax]
mov ecx, r12d
mov r8d, r13d
mov esi, r13d
rol esi, 0x1a
mov r10d, r9d
mov r9d, r13d
rol r9d, 0x15
xor r9d, esi
mov ebx, r13d
rol ebx, 7
xor ebx, r9d
add ebx, edx
mov edx, eax
mov edi, ebp
mov esi, r15d
mov r12d, r11d
mov eax, r15d
or eax, r11d
and eax, ebp
mov r9d, r15d
and r9d, r11d
or r9d, eax
mov eax, ebp
rol eax, 0x1e
mov r11d, ebp
rol r11d, 0x13
rol ebp, 0xa
xor r11d, eax
xor ebp, r11d
mov r13d, r10d
xor r13d, edx
and r13d, r8d
xor r13d, edx
add r13d, dword [rsp + r14 + 0x50]
add ebp, r9d
lea rax, [0x140380d90]
add r13d, dword [r14 + rax]
add r13d, ebx
add ebp, r13d
add r13d, ecx
add r14, 4
mov r11d, esi
mov r15d, edi
mov eax, r10d
mov r9d, r8d
cmp r14, 0x100
jne 0x1400b4bc0
mov ecx, dword [rsp + 0x28]
add ecx, ebp
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x50], ecx
mov ecx, dword [rsp + 0x2c]
add ecx, edi
mov dword [rax + 0x54], ecx
mov ecx, dword [rsp + 0x30]
add ecx, esi
mov dword [rax + 0x58], ecx
mov ecx, dword [rsp + 0x34]
add ecx, r12d
mov dword [rax + 0x5c], ecx
mov ecx, dword [rsp + 0x38]
add ecx, r13d
mov dword [rax + 0x60], ecx
mov ecx, dword [rsp + 0x3c]
add ecx, r8d
mov dword [rax + 0x64], ecx
mov ecx, dword [rsp + 0x40]
add ecx, r10d
mov dword [rax + 0x68], ecx
mov ecx, dword [rsp + 0x44]
add ecx, edx
mov dword [rax + 0x6c], ecx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140170e40
nop
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b4ce0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
lea rsi, [rcx + 8]
xorps xmm0, xmm0
movups xmmword [rcx + 8], xmm0
mov qword [rcx + 0x18], 0
mov qword [rcx + 0x20], reloc.WS2_32.dll_ntohs
mov r9, qword [rdx]
mov rdi, qword [rdx + 8]
cmp rdi, 0xf
mov qword [rbp - 8], rcx
jbe 0x1400b4d2e
mov rcx, rsi
mov rdx, rdi
call fcn.140001ac0
jmp 0x1400b4d48
mov rbx, rcx
mov qword [rcx + 0x18], rdi
mov rcx, rsi
mov rdx, r9
mov r8, rdi
call fcn.1403766a0
mov byte [rbx + rdi + 8], 0
rdtsc
mov r9, qword [rbp - 8]
mov word [r9], ax
mov rdx, qword [r9 + 0x18]
cmp qword [r9 + 0x20], 0x10
jb 0x1400b4d61
mov rsi, qword [r9 + 8]
test rdx, rdx
je 0x1400b4dc4
mov r8, rdx
mov rcx, rsi
and r8, 3
je 0x1400b4d8d
nop word cs:[rax + rax]
ror ax, 1
xor byte [rcx], al
inc rcx
dec r8
jne 0x1400b4d80
cmp rdx, 4
jb 0x1400b4dc4
add rsi, rdx
nop word cs:[rax + rax]
mov edx, eax
shr edx, 1
xor byte [rcx], dl
mov edx, eax
rol dx, 0xe
xor byte [rcx + 1], dl
shr edx, 1
xor byte [rcx + 2], dl
rol ax, 0xc
xor byte [rcx + 3], al
add rcx, 4
cmp rcx, rsi
jne 0x1400b4da0
mov rax, r9
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400b4f90
Capabilities:
Hash data using fnv

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x1406c3b68]
jmp fcn.1400b5360
Function at 0x140172a58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140172b74
mov ebx, eax
test eax, eax
jne 0x140172a88
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140172ae4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140172adb
test al, 0x10
je 0x140172adb
bt eax, 0xa
jae 0x140172ad4
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1401725dc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140172ad0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140172af4
test edi, edi
jne 0x140172adb
and dword [rsp + 0x3c], 0
jmp 0x140172ae0
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1403556ec
int3

Function at 0x140172d88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140172dc2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140172dc7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140172e10
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140172e10
dec r8
sub rdx, 1
jne 0x140172df6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140176088
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401760d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401760d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401760d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401760d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1401760d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401760d4
xor al, al
add rsp, 0x28
ret
Function at 0x140187b00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140187b42
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140187ca0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x238]
mov r14, qword [rcx + r8*8 + 0x1f0]
add rbx, rax
mov rax, qword [rcx + 0x428]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x140187dac
lea rax, [0x140187b50]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x140187dac
cmp qword [rbx], 0
je 0x140187d31
test rdi, rdi
je 0x140187dac
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.140196820
cmp eax, 0xffffffff
je 0x140187dac
test al, 1
je 0x140187dac
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140187d8b
mov eax, dword [rbp + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.14035a4d8]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140187de6
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140187dac
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x140187e25
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140187df5
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x140187e25
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140187e28
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1401a5070
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140187940
mov dword [rbp + 0xdcc], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140189030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401890e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1401a5070
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140187940
jmp 0x1401891ab
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x140189180
sub edx, 1
je 0x14018912a
cmp edx, 0x15
jne 0x140189131
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1401a52f0
test rax, rax
je 0x140189131
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1401891ab
lea rdx, [rsp + 0x34]
jmp 0x140189102
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.14035044c
mov dword [rax], 0x273f
call fcn.14035044c
mov ebx, dword [rax]
call fcn.14035044c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1401a5070
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140187940
jmp 0x1401891ab
cmp dword [rsp + 0x20], 2
jle 0x1401891a2
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x140400b00]
mov rcx, rbx
call fcn.140198ef0
jmp 0x1401891a5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14018a340
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14018a3a6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14018a389
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14018a383
shr ax, 8
cmp al, 2
je 0x14018a3a6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x1e8
ret
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14018a3d9
mov qword [0x1406c3cc8], rsi
jmp 0x14018a564
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14041f020]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x140402290]
call fcn.140360280
test rax, rax
je 0x14018a43d
mov rcx, rbx
test rbp, rbp
je 0x14018a42f
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14018a52c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14018a52c
test rbp, rbp
je 0x14018a46c
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14018a46c
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14018a52c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14018a524
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.14035a4d8]
mov rdi, rax
test rax, rax
je 0x14018a51b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14018a51b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14018a4c0
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x14018a4d2
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14018a4f0
mov rcx, rdi
test rbp, rbp
je 0x14018a512
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14018a518
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140358958]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1406c3cc8], rsi
test rsi, rsi
je 0x14018a564
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14018a564
mov qword [0x1406c3cc0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401a5860
test al, al
lea rcx, [0x1406c3cd0]
setne byte [0x1406c3cd8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140170e40
add rsp, 0x1e8
ret
Function at 0x14018d930
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x14018d945
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.14018d4f0
Function at 0x14019b1e0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14018cb70
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14019a5f0
mov rcx, rdi
mov rsi, rax
call fcn.14019a5f0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14019b290
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14018cb70
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14018cc00
cmp rax, 0x3e8
ja 0x14019b2c1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14019b240
test rsi, rsi
je 0x14019b29d
mov rcx, rsi
call fcn.140358958
test rbx, rbx
je 0x14019b2aa
mov rcx, rbx
call fcn.140358958
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14019b2ce
mov rcx, rsi
call fcn.140358958
test rbx, rbx
je 0x14019b2db
mov rcx, rbx
call fcn.140358958
mov eax, 1
jmp 0x14019b2ac
Function at 0x14019b2f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140462cc0]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14019b342
jmp 0x14019b50b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14019b4e2
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14019b4e2
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14019b4e2
cmp dword [rbp - 0x40], 0x10
jl 0x14019b4e2
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14019b4e2
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x14019b4e2
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14019b4e2
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1401a52c0
test eax, eax
js 0x14019b4e2
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.140196980
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14019b4e2
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14019b4e2
cmp dword [rbp - 0x40], 0x10
jl 0x14019b4e2
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x14019b4e2
cmp dword [rbp - 0x40], 0x10
jl 0x14019b4e2
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x14019b4e2
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x14019b4e2
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x14019b4e2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14019b503
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140170e40
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret