joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006eb20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14006ebc4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14006eb80
mov ecx, dword [r10]
jmp 0x14006eca7
cmp ecx, 0x4e0
jb 0x14006eca7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14006ebe0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14006ec30
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 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 ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x14006eb60
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x14006eb50
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14006f560
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401503a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, dword [rdx + 0x20]
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov rbx, r9
mov qword [rsp + 0x40], r12
mov rbp, rdx
mov qword [rsp + 0x48], r12
mov r15, rcx
mov r8d, r12d
mov esi, r12d
test rdi, rdi
je 0x14006f609
cmp rdi, 0x1000
jb 0x14006f5dc
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14006f7c0
call fcn.1400e1f00
mov rcx, rax
test rax, rax
je 0x14006f6eb
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14006f5e4
mov rcx, rdi
call fcn.1400e1f00
lea rsi, [rax + rdi]
mov qword [rsp + 0x38], rax
mov r8, rdi
mov qword [rsp + 0x48], rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x40], rsi
mov rdi, r12
cmp rsi, r8
je 0x14006f6ae
mov rbp, qword [rbp + 0x18]
mov rsi, r12
nop dword [rax]
mov r14, rbp
mov qword [rsp + 0x20], r12
sub r14, rsi
lea r8, [rsp + 0x30]
sub r14, 0x10000
mov r9d, 1
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14006f68e
mov r8, qword [rsp + 0x38]
mov r9, rbx
mov rdx, r14
mov qword [rsp + 0x20], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test rbx, rbx
je 0x14006f68e
mov r8, qword [rsp + 0x38]
mov eax, 1
mov rcx, rax
cmp byte [r8 + rax - 1], r12b
jne 0x14006f693
cmp rax, rbx
je 0x14006f6f2
inc rax
cmp rcx, rbx
jb 0x14006f675
jmp 0x14006f693
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
inc rdi
sub rax, r8
add rsi, 0x10000
cmp rdi, rax
jb 0x14006f620
mov r14, r12
test r8, r8
je 0x14006f7a1
mov rdx, qword [rsp + 0x48]
mov rax, r8
sub rdx, r8
cmp rdx, 0x1000
jb 0x14006f799
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006f799
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rdi, dword [rsp + 0xc0]
cmp edi, 1
jle 0x14006f748
movsxd rbp, dword [rsp + 0xc8]
lea rsi, [rdi - 1]
imul rsi, rbp
add rsi, 0x1000
add rsi, r14
nop dword [rax]
sub rsi, rbp
mov dword [rsp + 0x20], 0x40
mov rdx, rsi
mov r9d, 0x3000
mov r8, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
dec edi
test edi, edi
jg 0x14006f720
jmp 0x14006f772
test edi, edi
je 0x14006f772
movsxd r8, dword [rsp + 0xc8]
lea rdx, [r14 + 0x1000]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, rbx
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8, qword [rsp + 0x38]
jmp 0x14006f6b1
mov rcx, r8
call fcn.1400e1f3c
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400e2050
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140003d80
int3
Function at 0x14007afe0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x140150da3], 0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
je 0x14007b040
mov ebx, 8
mov edi, 0xffff8001
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, di
je 0x14007b024
inc ebx
cmp ebx, 0xbe
jle 0x14007b001
xor ecx, ecx
mov ebx, ecx
mov dword [0x140150da4], ecx
jmp 0x14007b046
movzx eax, byte [0x140150da3]
xor ecx, ecx
test ebx, ebx
mov dword [0x140150da4], ebx
cmovne eax, ecx
mov byte [0x140150da3], al
jmp 0x14007b046
mov ebx, dword [0x140150da4]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
test al, 1
je 0x14007b06a
cmp byte [0x140150c7b], 0
sete byte [0x140150c7b]
add rsp, 0x28
ret
Function at 0x140084220
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13e0
call fcn.1400e26e0
sub rsp, rax
mov rax, qword [0x1401503a8]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
cmp ecx, edx
mov ebx, ecx
mov esi, edx
cmovle esi, ecx
cmovle ebx, edx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rsp + 0x44], eax
mov ecx, 1
mov dword [rsp + 0x13c4], 0xffffffff
nop dword [rax]
nop dword [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x44], eax
inc rcx
cmp rcx, 0x270
jb 0x140084280
mov ebp, 0x80000000
mov dword [rsp + 0x40], 0x270
cmp esi, ebp
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea eax, [rsi - 0x80000000]
lea edi, [rsi + rbp]
cmovae edi, eax
lea edx, [rbx + rbp]
cmp ebx, ebp
lea eax, [rbx - 0x80000000]
cmovae edx, eax
sub edx, edi
cmp edx, 0xffffffff
jne 0x1400842f6
call fcn.14006eb20
jmp 0x1400842fd
inc edx
call fcn.14006cbc0
lea edx, [rdi + rax]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1400e2050
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140084340
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1350]
mov eax, 0x1450
call fcn.1400e26e0
sub rsp, rax
mov rax, qword [0x1401503a8]
xor rax, rsp
mov qword [rbp + 0x1340], rax
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x80], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
movdqa xmm0, xmmword [str.Rbc_afgdejk]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x14012de50]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm0, xmmword [0x14012e2f0]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [str._________]
movdqa xmmword [rsp + 0x70], xmm1
mov ecx, edi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rcx + 0x41], al
movzx eax, byte [rsp + 0x40]
xor byte [rsp + rcx + 0x42], al
add rcx, 2
cmp rcx, 0x3e
jb 0x1400843d0
mov byte [rsp + 0x7f], dil
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x78], dil
lea rax, [rsp + 0x41]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140084411
lea rdx, [rsp + 0x41]
lea rcx, [rbp - 0x78]
call fcn.140003dc0
nop
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov dword [rbp + 0x1334], 0xffffffff
mov dword [rbp - 0x4c], eax
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x4c], edx
inc rcx
cmp rcx, 0x270
jb 0x140084460
mov dword [rbp - 0x50], 0x270
mov edi, dword [rbp - 0x68]
dec edi
mov r15, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x78]
test r14, r14
je 0x14008452b
nop dword [rax]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x38], 0xffffffff
lea rcx, [rsp + 0x28]
cmp edi, 0xffffffff
jne 0x1400844cb
call fcn.14006eb20
jmp 0x1400844d3
lea edx, [rdi + 1]
call fcn.14006cbc0
lea rcx, [rbp - 0x78]
cmp r15, 0x10
cmovae rcx, rsi
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140084512
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140084507
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140084521
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.140063f30
sub r14, 1
jne 0x1400844a0
cmp r15, 0x10
jb 0x140084565
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14008455d
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008455d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400e1f3c
mov rax, rbx
mov rcx, qword [rbp + 0x1340]
xor rcx, rsp
call fcn.1400e2050
lea r11, [rsp + 0x1450]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400a1c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xb36], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400a1cf6
cmp qword [rcx + 0x278], 0
je 0x1400a1cab
mov dl, 1
call fcn.140091520
mov rax, qword [rdi + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140091520
mov eax, ebx
jmp 0x1400a1cf8
mov edx, ebx
test ebx, ebx
je 0x1400a1cbb
sub edx, 1
je 0x1400a1cbb
cmp edx, 1
jne 0x1400a1cf6
mov r9, qword [rdi + 0x1d0]
lea rax, [0x14012ffd8]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a1d10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x160
mov rax, qword [0x1401503a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xb36], 0
mov rbx, rcx
jne 0x1400a1d53
cmp qword [rcx + 0x1e0], 0
je 0x1400a1e20
mov r8, rdx
mov qword [rsp + 0x158], rdi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400b49e0
mov rdx, qword [rbx + 0x1e0]
movsxd rdi, eax
test rdx, rdx
je 0x1400a1db8
cmp byte [rbx + 0x12eb], 0
jne 0x1400a1db8
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400a1da0
mov byte [rbx + 0x12eb], 1
mov byte [rsp + rdi + 0x30], 0xa
inc rdi
cmp rdi, 0x102
jae 0x1400a1e71
cmp byte [rbx + 0xb36], 0
mov byte [rsp + rdi + 0x30], 0
je 0x1400a1e18
cmp qword [rbx + 0x278], 0
je 0x1400a1e39
mov dl, 1
mov rcx, rbx
call fcn.140091520
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x278]
xor edx, edx
mov rcx, rbx
call fcn.140091520
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400e2050
add rsp, 0x160
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x14012ffd8]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x1400a1e18
call fcn.1400e29e4
int3

Function at 0x1400a1fa0
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 0x1400a1fe2
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 0x1400a2180
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 [0x1401503a8]
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 + 0x230]
mov r14, qword [rcx + r8*8 + 0x1e8]
add rbx, rax
mov rax, qword [rcx + 0x418]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x1400a228c
lea rax, [0x1400a2030]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x1400a228c
cmp qword [rbx], 0
je 0x1400a2211
test rdi, rdi
je 0x1400a228c
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1400b3100
cmp eax, 0xffffffff
je 0x1400a228c
test al, 1
je 0x1400a228c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400a226b
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1400a22c6
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 0x1400a228c
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 0x1400a2305
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1400a22d5
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x1400a2305
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x1400a2308
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1400b6450
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1400a1d10
mov dword [rbp + 0xdec], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400e2050
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x280], 0
je 0x1400a27ad
call fcn.14009b880
test eax, eax
jne 0x1400a27d3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x1400a27a6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400a27a6
mov al, 1
add rsp, 0x28
ret
Function at 0x1400a2a20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1401503a8]
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 0x1400a2ad3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400b6450
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400a1d10
jmp 0x1400a2ba3
movzx ecx, word [rsp + 0x30]
sub ecx, 1
je 0x1400a2b78
sub ecx, 1
je 0x1400a2b1d
cmp ecx, 0x15
jne 0x1400a2b29
lea rdx, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
mov r8, rbx
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.1400d28a0
test rax, rax
je 0x1400a2b29
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1400a2ba3
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x1400a2af5
mov byte [rbx], 0
mov dword [rdi], 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x273f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400b6450
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400a1d10
jmp 0x1400a2ba3
cmp dword [rsp + 0x20], 2
jle 0x1400a2b9a
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x1400ea210]
mov rcx, rbx
call fcn.1400b48c0
jmp 0x1400a2b9d
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400e2050
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a48c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret

Function at 0x1400a4bb0
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_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400a4bda
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140130490]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strpbrk
test rax, rax
je 0x1400a4c3d
mov rcx, rbx
test r14, r14
je 0x1400a4c27
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400a4c75
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400a4c75
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400a4d38
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400a4ca0
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400a4d2a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400a4d2a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400a4cd0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400a4ce4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400a4d00
mov rcx, rdi
test r14, r14
je 0x1400a4d21
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400a4d27
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400e3294]
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 0x1400b7cd0
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.1400aa390
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x140096829.0
mov rcx, rdi
mov rsi, rax
call case.0x140096829.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1400b7d80
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400aa390
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400aa420
cmp rax, 0x3e8
ja 0x1400b7db1
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_MoveFileExA]
test eax, eax
je 0x1400b7d30
test rsi, rsi
je 0x1400b7d8d
mov rcx, rsi
call fcn.1400e3294
test rbx, rbx
je 0x1400b7d9a
mov rcx, rbx
call fcn.1400e3294
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 0x1400b7dbe
mov rcx, rsi
call fcn.1400e3294
test rbx, rbx
je 0x1400b7dcb
mov rcx, rbx
call fcn.1400e3294
mov eax, 1
jmp 0x1400b7d9c