joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011f470
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r9d, r9d
movsx edx, byte [rcx]
test dl, dl
je 0x14011f4d6
imul r8d, eax, 0x21
movsx eax, byte [rcx + 1]
add r8d, edx
test al, al
je 0x14011f4d3
imul edx, r8d, 0x21
add edx, eax
movsx eax, byte [rcx + 2]
test al, al
je 0x14011f4d0
imul r8d, edx, 0x21
add r8d, eax
movsx eax, byte [rcx + 3]
test al, al
je 0x14011f4d3
imul edx, r8d, 0x21
movsx r8d, byte [rcx + 4]
add edx, eax
test r8b, r8b
je 0x14011f4d0
imul eax, edx, 0x21
add rcx, 5
add r9d, 5
add eax, r8d
cmp r9d, 0xf
jb 0x14011f478
ret
mov eax, edx
ret
mov eax, r8d
ret

Function at 0x14011f4e0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
movsx edx, byte [rcx]
test dl, dl
je 0x14011f500
imul eax, eax, 0x21
inc r8d
inc rcx
add eax, edx
cmp r8d, 0xb
jb 0x14011f4e8
ret
Function at 0x140123640
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1401237ef
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1401128f0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1401237b4
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14012372d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1401237a3
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14012376a
mov r10, qword [rdx]
cmp r10, rax
je 0x140123764
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1401237a3
cmp r9, rdx
je 0x14012377f
nop
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1401237c9
cmp r9, rdx
jne 0x140123770
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1401236e0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1401237a3
lea rcx, str.invalid_hash_bucket_count
call fcn.1401506e4
int3
Function at 0x1401246d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x18], r8d
push r13
sub rsp, 0x30
mov r10d, r8d
xor r13d, r13d
mov r8, qword [rcx + 0x58]
cmp r9d, 0xffffffff
movabs rax, 0x8f5c28f5c28f5c29
mov rbp, rcx
cmove r9d, dword [0x1406a2bd8]
mov rbx, rdx
sub r8, qword [rcx + 0x50]
mov r11d, r13d
sar r8, 3
movabs rdi, 0xcbf29ce484222325
imul r8, rax
movabs rcx, 0x100000001b3
cmp r9d, r8d
jge 0x1401247f9
movsxd rax, r9d
imul rdi, rax, 0xc8
movabs rax, 0xcbf29ce484222325
movzx edx, r10b
add rdi, qword [rbp + 0x50]
xor rdx, rax
movzx eax, byte [rsp + 0x51]
imul rdx, rcx
mov r11, qword [rdi + 0x30]
xor rdx, rax
movzx eax, byte [rsp + 0x52]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x53]
imul rdx, rcx
xor rdx, rax
mov rax, qword [rdi + 0x40]
imul rdx, rcx
mov rcx, qword [rdi + 0x58]
and rcx, rdx
add rcx, rcx
mov rdx, qword [rax + rcx*8 + 8]
cmp rdx, r11
je 0x1401247c1
mov rax, qword [rax + rcx*8]
cmp r10d, dword [rdx + 0x10]
je 0x1401247c4
nop dword [rax]
cmp rdx, rax
je 0x1401247c1
mov rdx, qword [rdx + 8]
cmp r10d, dword [rdx + 0x10]
jne 0x1401247b0
jmp 0x1401247c4
mov rdx, r13
test rdx, rdx
cmove rdx, r11
cmp rdx, r11
je 0x1401247e1
add rdx, 0x18
mov rcx, rbx
call fcn.14011d1c0
jmp 0x140124949
mov r11d, dword [rdi + 8]
movabs rcx, 0x100000001b3
movabs rdi, 0xcbf29ce484222325
cmp r9d, r11d
je 0x140124894
cmp r11d, r8d
jge 0x140124894
movsxd rax, r11d
imul r8, rax, 0xc8
movzx eax, byte [rsp + 0x51]
add r8, qword [rbp + 0x50]
movzx edx, r10b
xor rdx, rdi
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x52]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x53]
imul rdx, rcx
xor rdx, rax
mov rax, qword [r8 + 0x40]
imul rdx, rcx
mov rcx, qword [r8 + 0x58]
and rcx, rdx
shl rcx, 4
add rax, rcx
mov rcx, qword [r8 + 0x30]
mov rdx, qword [rax + 8]
cmp rdx, rcx
je 0x140124881
mov rax, qword [rax]
cmp r10d, dword [rdx + 0x10]
je 0x140124884
cmp rdx, rax
je 0x140124881
mov rdx, qword [rdx + 8]
cmp r10d, dword [rdx + 0x10]
jne 0x140124870
jmp 0x140124884
mov rdx, r13
test rdx, rdx
cmove rdx, rcx
cmp rdx, rcx
jne 0x1401247d0
test r9d, r9d
je 0x140124934
test r11d, r11d
je 0x140124934
movzx eax, byte [rsp + 0x51]
movabs rcx, 0x100000001b3
mov r8, qword [rbp + 0x50]
movzx edx, r10b
xor rdx, rdi
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x52]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [rsp + 0x53]
imul rdx, rcx
xor rdx, rax
mov rax, qword [r8 + 0x40]
imul rdx, rcx
mov rcx, qword [r8 + 0x58]
and rcx, rdx
shl rcx, 4
add rax, rcx
mov rcx, qword [r8 + 0x30]
mov rdx, qword [rax + 8]
cmp rdx, rcx
je 0x140124921
mov rax, qword [rax]
cmp r10d, dword [rdx + 0x10]
je 0x140124924
nop dword [rax + rax]
cmp rdx, rax
je 0x140124921
mov rdx, qword [rdx + 8]
cmp r10d, dword [rdx + 0x10]
jne 0x140124910
jmp 0x140124924
mov rdx, r13
test rdx, rdx
cmove rdx, rcx
cmp rdx, rcx
jne 0x1401247d0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r13b
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x140125570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1401255a1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14012561b
mov rdi, r14
mov rcx, rbx
call fcn.14011e1b0
test rax, rax
jle 0x1401255f3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140355880
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14012560b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140125613
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1401255b5
sub r14, rdi
jmp 0x1401256ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140125632
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140125634
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140125666
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140355880
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1401256fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1401256a1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1401256dd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14019edb4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1401256fc
cmp rbp, rax
ja 0x1401256b0
test rbp, rbp
je 0x1401256fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14019edb4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140127f00
Capabilities:
Hash data using fnv

Disassembly:
mov rdx, qword [rcx + 0x10]
mov r9, rcx
add rdx, 1
mov r8, qword [rcx + 0x38]
xorps xmm1, xmm1
js 0x140127f1b
cvtsi2ss xmm1, rdx
jmp 0x140127f30
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm1, dword [rcx]
cvttss2si ecx, xmm1
cmp ecx, 0x80000000
je 0x140127f61
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
je 0x140127f61
unpcklps xmm1, xmm1
movmskps eax, xmm1
and eax, 1
xor eax, 1
add ecx, eax
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss xmm0, dword [0x14040d5a8]
xor ecx, ecx
comiss xmm1, xmm0
jb 0x140127f86
subss xmm1, xmm0
comiss xmm1, xmm0
jae 0x140127f86
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm1
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp r8, rcx
jae 0x140127fb8
cmp r8, 0x200
jae 0x140127fb5
lea r8, [r8*8]
cmp r8, rcx
jae 0x140127fb8
mov r8, rcx
mov rdx, r8
mov rcx, r9
jmp fcn.140128dd0
Function at 0x140128dd0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140128f81
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1401128f0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140128f46
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140128ec0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140128f35
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140128efd
mov r10, qword [rdx]
cmp r10, rax
je 0x140128ef7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140128f35
cmp r9, rdx
je 0x140128f11
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140128f5b
cmp r9, rdx
jne 0x140128f02
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140128e70
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140128f35
lea rcx, str.invalid_hash_bucket_count
call fcn.1401506e4
int3
Function at 0x140151524
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 0x14015155e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140151563
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 0x1401515ac
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 0x1401515ac
dec r8
sub rdx, 1
jne 0x140151592
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140151c7c
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.140151790
mov ebx, eax
test eax, eax
jne 0x140151cac
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140151d08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140151cff
test al, 0x10
je 0x140151cff
bt eax, 0xa
jae 0x140151cf8
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140151d20
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140151cf4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140151d18
test edi, edi
jne 0x140151cff
and dword [rsp + 0x3c], 0
jmp 0x140151d04
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.14019f75c
int3

Function at 0x140155b0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140155b56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140155b56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140155b56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140155b56
cmp dword [rcx + 0x84], 0xe
jbe 0x140155b56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140155b58
xor al, al
add rsp, 0x28
ret
Function at 0x140169c50
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 0x140169c92
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 0x140169e30
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 [0x14043c0c0]
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 0x140169f3c
lea rax, [0x140169ce0]
cmp qword [rcx + r8*8 + 0x218], rax
jne 0x140169f3c
cmp qword [rbx], 0
je 0x140169ec1
test rdi, rdi
je 0x140169f3c
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.14017a0c0
cmp eax, 0xffffffff
je 0x140169f3c
test al, 1
je 0x140169f3c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140169f1b
mov eax, dword [rbp + 0x71c]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.14019fb0c]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140169f76
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 0x140169f3c
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 0x140169fb5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140169f85
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x140169fb5
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140169fb8
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140186e80
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140169a60
mov dword [rbp + 0xdcc], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14016a660
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14043c0c0]
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 0x14016a713
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140186e80
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140169a60
jmp 0x14016a7db
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x14016a7b0
sub edx, 1
je 0x14016a75a
cmp edx, 0x15
jne 0x14016a761
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.140187120
test rax, rax
je 0x14016a761
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x14016a7db
lea rdx, [rsp + 0x34]
jmp 0x14016a732
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.140193868
mov dword [rax], 0x273f
call fcn.140193868
mov ebx, dword [rax]
call fcn.140193868
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140186e80
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140169a60
jmp 0x14016a7db
cmp dword [rsp + 0x20], 2
jle 0x14016a7d2
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x14040b294]
mov rcx, rbx
call fcn.14016eb30
jmp 0x14016a7d5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14016c330
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14016c396
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14016c379
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14016c373
shr ax, 8
cmp al, 2
je 0x14016c396
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140154c90
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 0x14016c3c9
mov qword [0x14069eaf8], rsi
jmp 0x14016c554
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x140364f90]
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, [0x140364fa0]
call fcn.1401adb04
test rax, rax
je 0x14016c42d
mov rcx, rbx
test rbp, rbp
je 0x14016c41f
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14016c51c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14016c51c
test rbp, rbp
je 0x14016c45c
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016c45c
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14016c51c
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 0x14016c514
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.14019fb0c]
mov rdi, rax
test rax, rax
je 0x14016c50b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14016c50b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14016c4b0
mov dword [rdi + rax*2], 0x5c
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14016c4c2
add rcx, rcx
sub rcx, rbx
add rcx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14016c4e0
mov rcx, rdi
test rbp, rbp
je 0x14016c502
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14016c508
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.140198f38]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x14069eaf8], rsi
test rsi, rsi
je 0x14016c554
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016c554
mov qword [0x14069eaf0], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140187690
test al, al
lea rcx, [0x1406a3560]
setne byte [0x1406a3558]
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.140154c90
add rsp, 0x1e8
ret
Function at 0x140171890
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1401718a5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140171410
Function at 0x14017d010
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.140170040
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14017c2e0
mov rcx, rdi
mov rsi, rax
call fcn.14017c2e0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14017d0c0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140170040
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1401700d0
cmp rax, 0x3e8
ja 0x14017d0f1
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 0x14017d070
test rsi, rsi
je 0x14017d0cd
mov rcx, rsi
call fcn.140198f38
test rbx, rbx
je 0x14017d0da
mov rcx, rbx
call fcn.140198f38
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 0x14017d0fe
mov rcx, rsi
call fcn.140198f38
test rbx, rbx
je 0x14017d10b
mov rcx, rbx
call fcn.140198f38
mov eax, 1
jmp 0x14017d0dc