joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400addb0
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.1400aec40
mov ecx, esi
call fcn.14016e394
mov r14, rax
mov ecx, dword [rbx + 4]
shl ecx, 4
add ecx, 0x10
call fcn.14016e394
mov r15, rax
mov rcx, rbx
mov rdx, r12
mov r8, rax
call fcn.1400ae980
test esi, esi
je 0x1400ade43
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.1400ade70
movups xmm0, xmmword [r14 + r13]
xorps xmm0, xmm6
movups xmmword [r14 + r13], xmm0
add ebp, 0x10
mov rax, r12
cmp ebp, esi
jb 0x1400ade10
mov rcx, r15
call fcn.14016e360
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 0x1400ae7a0
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 [0x140463cc0]
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, [0x140381620]
lea r9, [0x140380620]
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 0x1400ae860
movaps xmm0, xmmword [rsp + 0x80]
mov rax, qword [rsp + 0x28]
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14016e4d0
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b2150
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 [0x140463cc0]
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 0x1400b2180
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 0x1400b21c0
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, [0x140381690]
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 0x1400b2280
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.14016e4d0
nop
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400b23a0
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 0x1400b23ee
mov rcx, rsi
mov rdx, rdi
call fcn.140003610
jmp 0x1400b2408
mov rbx, rcx
mov qword [rcx + 0x18], rdi
mov rcx, rsi
mov rdx, r9
mov r8, rdi
call fcn.140373d30
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 0x1400b2421
mov rsi, qword [r9 + 8]
test rdx, rdx
je 0x1400b2484
mov r8, rdx
mov rcx, rsi
and r8, 3
je 0x1400b244d
nop word cs:[rax + rax]
ror ax, 1
xor byte [rcx], al
inc rcx
dec r8
jne 0x1400b2440
cmp rdx, 4
jb 0x1400b2484
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 0x1400b2460
mov rax, r9
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b5610
Capabilities:
Hash data using fnv

Disassembly:
mov r8d, edx
mov rdx, rcx
mov rcx, qword [0x1406c4b68]
jmp fcn.1400b2690
Function at 0x1401700e8
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.140170204
mov ebx, eax
test eax, eax
jne 0x140170118
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140170174
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14017016b
test al, 0x10
je 0x14017016b
bt eax, 0xa
jae 0x140170164
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14016fc6c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140170160
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140170184
test edi, edi
jne 0x14017016b
and dword [rsp + 0x3c], 0
jmp 0x140170170
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.140352d7c
int3

Function at 0x140170418
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 0x140170452
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140170457
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 0x1401704a0
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 0x1401704a0
dec r8
sub rdx, 1
jne 0x140170486
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140173718
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140173762
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140173762
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140173762
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140173762
cmp dword [rcx + 0x84], 0xe
jbe 0x140173762
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140173764
xor al, al
add rsp, 0x28
ret
Function at 0x140185190
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 0x1401851d2
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 0x140185330
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 [0x140463cc0]
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 0x14018543c
lea rax, [0x1401851e0]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x14018543c
cmp qword [rbx], 0
je 0x1401853c1
test rdi, rdi
je 0x14018543c
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.140193eb0
cmp eax, 0xffffffff
je 0x14018543c
test al, 1
je 0x14018543c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14018541b
mov eax, dword [rbp + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [str.h5_]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140185476
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 0x14018543c
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 0x1401854b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140185485
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x1401854b5
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x1401854b8
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1401a2700
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140184fd0
mov dword [rbp + 0xdcc], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14016e4d0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401866c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140463cc0]
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 0x140186773
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1401a2700
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140184fd0
jmp 0x14018683b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x140186810
sub edx, 1
je 0x1401867ba
cmp edx, 0x15
jne 0x1401867c1
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1401a2980
test rax, rax
je 0x1401867c1
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14018683b
lea rdx, [rsp + 0x34]
jmp 0x140186792
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.14034dadc
mov dword [rax], 0x273f
call fcn.14034dadc
mov ebx, dword [rax]
call fcn.14034dadc
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1401a2700
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140184fd0
jmp 0x14018683b
cmp dword [rsp + 0x20], 2
jle 0x140186832
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x140401430]
mov rcx, rbx
call fcn.140196580
jmp 0x140186835
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14016e4d0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401879d0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140463cc0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140187a36
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140187a19
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140187a13
shr ax, 8
cmp al, 2
je 0x140187a36
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14016e4d0
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 0x140187a69
mov qword [0x1406c4cc8], rsi
jmp 0x140187bf4
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14041f950]
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, [0x140402bc0]
call fcn.14035d910
test rax, rax
je 0x140187acd
mov rcx, rbx
test rbp, rbp
je 0x140187abf
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x140187bbc
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140187bbc
test rbp, rbp
je 0x140187afc
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140187afc
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x140187bbc
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 0x140187bb4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [str.h5_]
mov rdi, rax
test rax, rax
je 0x140187bab
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140187bab
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140187b50
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140187b62
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 0x140187b80
mov rcx, rdi
test rbp, rbp
je 0x140187ba2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140187ba8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140355fe8]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1406c4cc8], rsi
test rsi, rsi
je 0x140187bf4
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140187bf4
mov qword [0x1406c4cc0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401a2ef0
test al, al
lea rcx, [0x1406c4cd0]
setne byte [0x1406c4cd8]
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.14016e4d0
add rsp, 0x1e8
ret
Function at 0x14018afc0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x14018afd5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.14018ab80
Function at 0x140198870
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.14018a200
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140197c80
mov rcx, rdi
mov rsi, rax
call fcn.140197c80
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140198920
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14018a200
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14018a290
cmp rax, 0x3e8
ja 0x140198951
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 0x1401988d0
test rsi, rsi
je 0x14019892d
mov rcx, rsi
call fcn.140355fe8
test rbx, rbx
je 0x14019893a
mov rcx, rbx
call fcn.140355fe8
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 0x14019895e
mov rcx, rsi
call fcn.140355fe8
test rbx, rbx
je 0x14019896b
mov rcx, rbx
call fcn.140355fe8
mov eax, 1
jmp 0x14019893c
Function at 0x140198980
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 [0x140463cc0]
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 0x1401989d2
jmp 0x140198b9b
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 0x140198b72
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140198b72
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140198b72
cmp dword [rbp - 0x40], 0x10
jl 0x140198b72
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140198b72
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 0x140198b72
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140198b72
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1401a2950
test eax, eax
js 0x140198b72
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.140194010
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 0x140198b72
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 0x140198b72
cmp dword [rbp - 0x40], 0x10
jl 0x140198b72
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 0x140198b72
cmp dword [rbp - 0x40], 0x10
jl 0x140198b72
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x140198b72
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x140198b72
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x140198b72
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140198b93
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.14016e4d0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret