joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140136c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
push r15
or ebx, 0xffffffff
lea r15, [0x140405450]
mov rdi, rdx
mov r14, rcx
cmp rdx, 0x140
jb 0x140136d6b
lea rsi, [rdx - 0x100]
shr rsi, 6
imul rax, rsi, 0xffffffffffffffc0
add rdi, rax
mov ebp, 4
xor ebx, dword [r14]
mov r9d, dword [r14 + 4]
mov r10d, dword [r14 + 8]
mov r11d, dword [r14 + 0xc]
add r14, 0x10
mov r8d, ebx
mov eax, ebx
shr rax, 0x10
movzx edx, al
mov eax, ebx
shr rax, 8
movzx ecx, al
mov eax, r9d
mov ebx, dword [r15 + rdx*4 + 0x3400]
shr rax, 0x10
xor ebx, dword [r15 + rcx*4 + 0x3800]
movzx ecx, al
mov eax, r9d
shr rax, 8
xor ebx, dword [r15 + rcx*4 + 0x2400]
movzx ecx, al
mov eax, r10d
shr rax, 0x10
xor ebx, dword [r15 + rcx*4 + 0x2800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor ebx, dword [r15 + rcx*4 + 0x1400]
movzx ecx, al
mov eax, r11d
shr rax, 0x10
xor ebx, dword [r15 + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r11d
shr rax, 8
xor ebx, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
mov eax, r8d
shr rax, 0x18
xor ebx, dword [r15 + rcx*4 + 0x800]
xor ebx, dword [r15 + rax*4 + 0x3000]
mov eax, r9d
shr rax, 0x18
xor ebx, dword [r15 + rax*4 + 0x2000]
mov eax, r10d
shr rax, 0x18
xor ebx, dword [r15 + rax*4 + 0x1000]
mov eax, r11d
shr rax, 0x18
xor ebx, dword [r15 + rax*4]
movzx eax, r8b
xor ebx, dword [r15 + rax*4 + 0x3c00]
movzx eax, r9b
xor ebx, dword [r15 + rax*4 + 0x2c00]
movzx eax, r10b
xor ebx, dword [r15 + rax*4 + 0x1c00]
movzx eax, r11b
xor ebx, dword [r15 + rax*4 + 0xc00]
sub rbp, 1
jne 0x140136c4b
sub rsi, 1
jne 0x140136c46
test rdi, rdi
je 0x140136d8a
movzx eax, byte [r14]
inc r14
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r15 + rcx*4]
sub rdi, 1
jne 0x140136d70
mov rbp, qword [rsp + 0x20]
not ebx
mov rsi, qword [rsp + 0x28]
mov eax, ebx
mov rbx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x140136f58
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14042e200]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x70], WSAGetLastError
xor esi, esi
mov qword [rsp + 0x78], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x140409ea0]
movups xmmword [rbp - 0x70], xmm1
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov dword [rbp - 0x50], esi
mov qword [rbp - 0x48], rsi
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rsi
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea r8d, [rsi + 7]
lea rdx, [0x140409450]
lea rcx, [rsp + 0x50]
call fcn.14012ffe8
nop
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 8]
call fcn.140136db0
nop
lea rcx, [rsp + 0x50]
call fcn.14012eb4c
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rdx, qword [rbp - 8]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x28
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14013704f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140137059
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 8]
call fcn.14012eb4c
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140151510
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret
Function at 0x140137148
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14042e200]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov edx, 0x2a
mov rbx, rcx
call fcn.1403156ac
xor edi, edi
mov rcx, rbx
test rax, rax
je 0x1401372e8
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401372f3
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x1401371c1
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1401302c4
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x14013727a
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140137235
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140137230
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140137338
call fcn.140151530
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1401371a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140151510
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 5
je 0x1401372a3
cmp edi, 0x20
je 0x14013729c
mov ebx, 4
jmp 0x1401372a8
mov ebx, 2
jmp 0x1401372a8
mov ebx, 3
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1401372e1
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401372dc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140137338
call fcn.140151530
mov eax, ebx
jmp 0x140137256
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401372fd
mov eax, 1
jmp 0x140137256
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140137254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 5
je 0x14013732e
mov eax, 2
cmp ecx, 0x20
lea ebx, [rax + 2]
cmovne eax, ebx
jmp 0x140137256
mov eax, 3
jmp 0x140137256
call fcn.14031ce4c
int3
Function at 0x140137340
Capabilities:
Connect socket
Convert ip address from string
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x330]
sub rsp, 0x430
mov rax, qword [0x14042e200]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
lea rbx, [rcx + 0x18]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x18], r14
mov byte [rbx], 0
mov r8, qword [rdx + 0x10]
mov r12d, 0x1000
test r8, r8
je 0x14013744a
movups xmmword [rsp + 0x40], xmm0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
cmp qword [rdx + 0x18], r14
jbe 0x1401373c5
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
call fcn.140130384
nop
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x1401373f7
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], r14
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1401348a8
mov ecx, 0x202
lea rdx, [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1401374b4
mov rdx, qword [rsp + 0x58]
cmp rdx, r14
jbe 0x14013744a
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, r12
jb 0x140137444
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140137590
call fcn.140151530
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, r14
jbe 0x14013747f
inc rdx
mov rcx, qword [rdi]
cmp rdx, r12
jb 0x14013747a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140137596
mov rcx, r8
call fcn.140151530
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], r14
mov byte [rdi], 0
mov rax, rsi
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140151510
mov rbx, qword [rsp + 0x470]
add rsp, 0x430
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x140137411
mov dword [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rbx, [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov word [rbx], 2
mov ecx, getservbyport
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 0xa], ax
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], r14
cmova rdx, qword [rsp + 0x40]
lea r8, [rsi + 0xc]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x68], 3
and dword [rsp + 0x6c], 0
mov rax, qword [rsi]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140137411
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140137411
call fcn.14031ce4c
nop
call fcn.14031ce4c
int3
Function at 0x14013a000
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x14013a06b
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x14013a02e
mov ecx, dword [r9]
jmp 0x14013a139
cmp ecx, 0x4e0
jb 0x14013a139
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + 0x630]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x14013a091
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov edi, dword [rbx + 4]
mov edx, eax
lea rbx, [rbx + 4]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx - 0xd50]
xor ecx, edx
mov dword [rbx - 0x9c4], ecx
sub rsi, 1
jne 0x14013a0d2
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x14013fa60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14042e200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
xor edi, edi
mov qword [rbp - 0x29], r8
mov qword [rbp - 0x21], r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x14013faaf
mov rcx, qword [rcx]
mov rdx, rcx
lea rcx, [rbp - 0x19]
call fcn.140130384
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14013fad8
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140130384
nop
mov ecx, 0x50
call fcn.140151538
mov rbx, rax
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x37], rax
mov rcx, qword [rbp - 0x29]
mov qword [rax], rcx
mov rcx, qword [rbp - 0x21]
mov qword [rax + 8], rcx
lea rcx, [rax + 0x10]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
call fcn.140130384
nop
lea rcx, [rbx + 0x30]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
mov r8, qword [rbp + 0x17]
call fcn.140130384
nop
mov qword [rbp + 0x37], rbx
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140144bd0]
xor edx, edx
xor ecx, ecx
call fcn.140320b0c
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14013fbe2
cmp dword [rbp - 0x31], edi
je 0x14013fbd7
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call fcn.140150d18
test eax, eax
jne 0x14013fbd7
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x29]
call fcn.1401414f4
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140151510
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call fcn.1401508a0
nop
mov dword [rbp - 0x31], edi
mov ecx, 6
call fcn.1401508a0
int3
Function at 0x14014da90
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 0x14014daca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14014dacf
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 0x14014db18
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 0x14014db18
dec r8
sub rdx, 1
jne 0x14014dafe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140152358
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xaa8], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1401684c9
cmp qword [rcx + 0x260], 0
je 0x14016847e
mov qword [rsp + 0x40], rbx
call fcn.140155d20
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140156070
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.140156070
mov rbx, qword [rsp + 0x40]
jmp 0x1401684c9
mov ecx, esi
test edx, edx
je 0x14016848e
sub ecx, 1
je 0x14016848e
cmp ecx, 1
jne 0x1401684c9
mov r9, qword [rdi + 0x1d0]
lea rax, [0x14034d290]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14031b2d4
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.14031b2d4
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016a3d0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140334338
cdqe
add rsp, 0x28
ret
Function at 0x14016a6b0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14016a6da
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14034d4e8]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14034d4f8]
mov rcx, rbx
mov r14, rax
call fcn.14032b84c
test rax, rax
je 0x14016a739
mov rcx, rbx
test r14, r14
je 0x14016a726
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x14016a770
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016a770
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14016a83a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14016a7a0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.140322704]
mov rsi, rax
test rax, rax
je 0x14016a82c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14016a82c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14016a7d3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14016a7e5
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14016a800
mov rcx, rsi
test r14, r14
je 0x14016a823
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14016a829
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14031c50c]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14016a850
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14042e200]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14016a8b6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14016a899
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14016a893
shr ax, 8
cmp al, 2
je 0x14016a8b6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140151510
add rsp, 0x1e8
ret
call fcn.14019e0b0
test eax, eax
jne 0x14016aac7
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 0x14016a8f6
mov qword [0x140436538], rsi
jmp 0x14016aa84
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14034d4e8]
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, [0x14034d4f8]
call fcn.14032b84c
test rax, rax
je 0x14016a95a
mov rcx, rbx
test rbp, rbp
je 0x14016a94c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14016aa4c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14016aa4c
test rbp, rbp
je 0x14016a989
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016a989
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14016aa4c
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 0x14016aa44
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.140322704]
mov rdi, rax
test rax, rax
je 0x14016aa3b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14016aa3b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14016a9e0
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x14016a9f2
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 0x14016aa10
mov rcx, rdi
test rbp, rbp
je 0x14016aa32
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14016aa38
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14031c50c]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x140436538], rsi
test rsi, rsi
je 0x14016aa84
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016aa84
mov qword [0x140436530], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14019dc60
test al, al
lea rcx, [0x14043a460]
setne byte [0x14043a45c]
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.140151510
add rsp, 0x1e8
ret
Function at 0x140171550
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140171565
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140171030
Function at 0x14017cf10
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.14015b870
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14017ae00
mov rcx, rdi
mov rsi, rax
call fcn.14017ae00
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14017cfc0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14015b870
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14015b900
cmp rax, 0x3e8
ja 0x14017cff1
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 0x14017cf70
test rsi, rsi
je 0x14017cfcd
mov rcx, rsi
call fcn.14031c50c
test rbx, rbx
je 0x14017cfda
mov rcx, rbx
call fcn.14031c50c
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 0x14017cffe
mov rcx, rsi
call fcn.14031c50c
test rbx, rbx
je 0x14017d00b
mov rcx, rbx
call fcn.14031c50c
mov eax, 1
jmp 0x14017cfdc