joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bb10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
lea r11, [rdx + 8]
lea r10, [rcx + 2]
mov ebx, 0xa
nop word [rax + rax]
mov ecx, dword [r11 - 4]
lea r10, [r10 + 8]
movzx eax, byte [r11 - 8]
mov r8d, dword [r11 - 8]
lea r11, [r11 + 0xc]
and al, 7
mov byte [r10 - 0xa], al
mov eax, r8d
shr eax, 3
and al, 7
shr r8d, 6
mov byte [r10 - 9], al
movzx eax, byte [r11 - 0x10]
shl al, 2
xor r8b, al
mov eax, ecx
shr eax, 1
and r8b, 7
and al, 7
mov byte [r10 - 8], r8b
mov byte [r10 - 7], al
mov eax, ecx
shr eax, 4
and al, 7
shr ecx, 7
mov byte [r10 - 6], al
movzx eax, byte [r11 - 0xc]
add al, al
xor cl, al
and cl, 7
mov byte [r10 - 5], cl
mov ecx, dword [r11 - 0xc]
mov eax, ecx
shr eax, 2
shr ecx, 5
and al, 7
and cl, 7
mov byte [r10 - 4], al
mov byte [r10 - 3], cl
sub rbx, 1
jne 0x14000bb30
movzx eax, byte [rdx + 0x78]
lea r10, [r9 + 0x54]
mov ecx, dword [rdx + 0x78]
lea r8d, [rbx + 0x54]
and al, 7
mov byte [r9 + 0x50], al
mov eax, ecx
shr eax, 3
and al, 7
shr ecx, 6
mov byte [r9 + 0x51], al
movzx eax, byte [rdx + 0x7c]
shl al, 2
xor cl, al
and cl, 7
mov byte [r9 + 0x52], cl
mov ecx, dword [rdx + 0x7c]
mov eax, ecx
shr eax, 1
shr ecx, 4
and al, 7
and cl, 7
mov byte [r9 + 0x53], al
xor al, al
mov byte [r10], cl
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9]
lea r9, [r9 + 1]
add cl, al
movzx eax, cl
sar cl, 3
add byte [r9], cl
and al, 7
mov byte [r9 - 1], al
sar al, 2
movzx ecx, al
shl cl, 3
sub byte [r9 - 1], cl
sub r8, 1
jne 0x14000bc10
add byte [r10], al
mov rbx, qword [rsp + 8]
ret

Function at 0x14000be70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, dword [rcx + 0x7c]
lea r10, [rcx + 0x74]
mov r9d, r11d
mov r8, rcx
xor r9d, 0x7f
mov ebx, 5
dec r9d
shr r9d, 0x1f
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r10 - 0x10]
mov eax, dword [r10 - 0xc]
xor ecx, 0xff
mov edx, dword [r10 + 4]
lea r10, [r10 - 0x18]
xor eax, 0xff
dec ecx
dec eax
shr ecx, 0x1f
shr eax, 0x1f
xor edx, 0xff
and ecx, eax
dec edx
mov eax, dword [r10 + 0x10]
xor eax, 0xff
shr edx, 0x1f
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [r10 + 0x14]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [r10 + 0x18]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
and ecx, edx
and r9d, ecx
sub rbx, 1
jne 0x14000bea0
mov ecx, dword [r8]
sub ecx, 0xed
not ecx
shr ecx, 0x1f
and ecx, r9d
neg ecx
mov eax, ecx
movzx edx, cl
and eax, 0x7f
sub r11d, eax
mov eax, 0x1e
mov dword [r8 + 0x7c], r11d
nop dword [rax]
nop dword [rax + rax]
sub dword [r8 + rax*4], edx
sub dword [r8 + rax*4 - 4], edx
sub rax, 2
test rax, rax
jg 0x14000bf40
mov rbx, qword [rsp + 8]
and ecx, 0xed
sub dword [r8], ecx
ret
Function at 0x14000c090
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movzx r10d, r8b
neg r10d
lea rdx, [rcx + 0x7c]
lea rax, [r9 + 0x7c]
movd xmm2, r10d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x14000c0d7
cmp rdx, r9
jb 0x14000c0d7
sub r9, rcx
mov r8d, 0x20
nop
mov edx, dword [rcx + r9]
xor edx, dword [rcx]
lea rcx, [rcx + 4]
and edx, r10d
xor dword [rcx - 4], edx
sub r8, 1
jne 0x14000c0c0
ret
lea rax, [rcx + 0x10]
sub r9, rcx
mov ecx, 4
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r9 + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x14000c0f0
ret
Function at 0x140011b70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, r8
mov r11, rdx
mov r9d, eax
test r8, r8
je 0x140011ba8
sub r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r11 + rcx]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or r9d, r8d
sub r10, 1
jne 0x140011b90
test r9d, r9d
setne al
ret

Function at 0x140011bb0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
xor r11d, r11d
lea r15, [0x14006bf60]
mov r14, r9
mov rbx, rdx
mov r10, rcx
mov eax, r11d
cmp rdx, 2
jbe 0x140011c88
lea edx, [r11 + 4]
nop dword [rax + rax]
movzx r9d, byte [r10]
sub rbx, 3
movzx edi, byte [r10 + 1]
movzx ebp, r9b
movzx esi, byte [r10 + 2]
movzx ecx, dil
shr cl, 4
and r9b, 3
and dil, 0xf
shl r9b, 4
add r9b, cl
shl dil, 2
movzx ecx, sil
shr bpl, 2
shr cl, 6
add r10, 3
add dil, cl
and sil, 0x3f
cmp rdx, r14
ja 0x140011d2e
movzx ecx, bpl
add rdx, 4
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
movzx ecx, dil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
movzx ecx, sil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 3], cl
add rax, 4
cmp rbx, 2
ja 0x140011bf0
test rbx, rbx
je 0x140011d4c
xor r9b, r9b
mov word [rsp + 0x29], r11w
xor dil, dil
mov byte [rsp + 0x28], r9b
xor dl, dl
test rbx, rbx
je 0x140011cd6
mov rdx, r11
nop dword [rax]
movzx ecx, byte [r10]
inc r11d
mov byte [rsp + rdx + 0x28], cl
inc r10
mov edx, r11d
cmp rdx, rbx
jb 0x140011cb0
movzx edi, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x29]
movzx r9d, byte [rsp + 0x28]
movzx ecx, dl
shr dil, 6
movzx r10d, r9b
shr cl, 4
and r9b, 3
shr r10b, 2
and dl, 0xf
shl r9b, 4
shl dl, 2
add r9b, cl
lea rcx, [rax + 4]
add dl, dil
cmp rcx, r14
ja 0x140011d2e
movzx ecx, r10b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
cmp rbx, 1
jne 0x140011d33
mov byte [rax + r8 + 2], 0x3d
jmp 0x140011d40
or eax, 0xffffffff
jmp 0x140011d56
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
add rax, 3
mov byte [rax + r8], 0x3d
inc rax
cmp rax, r14
jae 0x140011d2e
mov byte [rax + r8], 0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret
Function at 0x140017b20
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x250
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [0x140077700], 0
je 0x140017b51
mov rax, qword [0x140077700]
jmp 0x140017c0a
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x140073c70]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x104
jle 0x140017bab
lea r8, [0x140073c90]
lea rdx, [0x140073c08]
lea rcx, str._s__buffer_too_small_to_expand:_s
call fcn.1400038c0
jmp 0x140017bd5
cmp dword [rsp + 0x20], 0
jne 0x140017bd5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, str._programData_
lea rdx, [0x140073cd8]
lea rcx, str._s__failed_to_expand:_s_error:_s
call fcn.1400038c0
lea rcx, [rsp + 0x30]
call fcn.140019c20
mov qword [0x140077700], rax
cmp qword [0x140077700], 0
jne 0x140017c03
lea rdx, str.get_program_data_path
lea rcx, str._s_utf16_to_utf8_failed
call fcn.1400038c0
mov rax, qword [0x140077700]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002a0e0
add rsp, 0x250
pop rdi
ret

Function at 0x14001a760
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor eax, eax
mov word [rsp + 0x20], ax
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 0x196
rep stosb byte [rdi], al
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14002a0e0
add rsp, 0x1d0
pop rdi
ret
Function at 0x14001af30
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [rsp + 0x60], 8
je 0x14001af63
cmp dword [rsp + 0x60], 4
je 0x14001af63
cmp dword [rsp + 0x60], 1
je 0x14001af63
cmp dword [rsp + 0x60], 0x1b
jne 0x14001afdc
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x14001afce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x34], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.socketio_setsockopt
lea rcx, [0x1400748c8]
call fcn.140003a10
mov eax, dword [rsp + 0x30]
jmp 0x14001b001
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x60]
lea rcx, str.setsockop___ERROR:_unsupported_optname:_d_io:_p
call fcn.140003a10
call fcn.1400318f4
mov dword [rax], 0x81
mov eax, 0xffffffff
add rsp, 0x48
ret

Function at 0x14001b0b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x14001b122
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x24], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.socketio_getsockname
lea rcx, [0x140074948]
call fcn.140003a10
mov eax, dword [rsp + 0x20]
jmp 0x14001b12e
add rsp, 0x38
ret
Function at 0x14001b6c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x78], 0
je 0x14001b700
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x78]
mov dword [rsp + 0x30], eax
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x30]
lea rcx, str.finish_connect___ERROR:_async_io_completed_with_error:__d__io:_p
call fcn.140003a10
jmp 0x14001b74b
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x7010
mov edx, 0xffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14001b74b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x30]
lea rcx, str.finish_connect___ERROR:_setsockopt_failed:_d__io:_p
call fcn.140003a10
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x38], 0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x74], 0
cmp dword [rsp + 0x30], 0
je 0x14001b7ac
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x58], ecx
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x78], ecx
mov ecx, dword [rsp + 0x30]
call fcn.14001c240
mov dword [rsp + 0x38], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
jmp 0x14001b7c1
mov rax, qword [rsp + 0x50]
add rax, 0x60
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xb0], 3
cmp dword [rsp + 0x30], 0
je 0x14001b7e1
mov dword [rsp + 0x34], 0xffffffff
jmp 0x14001b7e9
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop rdi
ret
Function at 0x14001c340
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x48], 0x80
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14001c3f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x4c], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x4c]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, qword [rsp + 0x120]
mov edx, eax
lea rcx, str.acceptEx___getsockname___ERROR:_d__io:_p
call fcn.1400039b0
mov eax, 0xffffffff
jmp 0x14001c575
movzx eax, word [rsp + 0x80]
mov r8d, 6
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x400], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x400], 0xffffffffffffffff
jne 0x14001c46d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x50], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, qword [rsp + 0x120]
mov edx, eax
lea rcx, str.acceptEx___socket___ERROR:_d__io:_p
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x14001c575
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x40]
add rcx, 0x418
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x70], rdx
mov r8, qword [rsp + 0x40]
mov r8, qword [r8 + 0x408]
mov qword [rsp + 0x58], r8
mov rcx, qword [rsp + 0x58]
call qword [fcn.14002a6b0]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
xor r9d, r9d
mov rax, qword [rsp + 0x70]
mov r8, rax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x400]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x90]
call qword [rsp + 0x58]
cmp eax, 1
jne 0x14001c518
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14001c564
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x14001c564
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x54], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x54]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, qword [rsp + 0x120]
mov edx, eax
lea rcx, str.acceptEx___AcceptEx___ERROR:_d__io:_p
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x14001c575
mov rax, qword [rsp + 0x120]
mov dword [rax + 0x54], 1
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14002a0e0
add rsp, 0x118
ret
Function at 0x14001c610
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x78], 0
je 0x14001c646
mov rax, qword [rsp + 0x78]
mov dword [rax], 0
mov dword [rsp + 0x50], 0x11800
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x40], 0
jne 0x14001c6bb
mov eax, dword [rsp + 0x50]
mov ecx, eax
call fcn.140031834
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14001c69f
call fcn.1400318f4
mov dword [rax], listen
call fcn.1400318f4
mov r8, qword [rsp + 0x70]
mov edx, dword [rax]
lea rcx, str.WSARecv___ERROR:_d__io:_p
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x14001c7a4
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x48], ecx
jmp 0x14001c6c9
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x80], 0
je 0x14001c6de
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x70]
lea rcx, [0x14001c5a0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14001c74a
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x54], 1
cmp qword [rsp + 0x78], 0
je 0x14001c748
mov rax, qword [rsp + 0x78]
mov dword [rax], 1
jmp 0x14001c7a2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14001c765
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x54], 1
jmp 0x14001c7a2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14001c240
mov dword [rsp + 0x48], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x48]
mov dword [rax], ecx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0x70]
lea rcx, str.WSARecv___WSARecv___ERROR:_io:_p__d
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x14001c7a4
xor eax, eax
add rsp, 0x68
ret
Function at 0x14001f160
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14001f1ad
mov ecx, 0x19000
call fcn.140031834
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x40], 0
jne 0x14001f1ad
call fcn.1400318f4
mov dword [rax], listen
mov eax, 0xffffffff
jmp 0x14001f282
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileType]
cmp eax, 1
jne 0x14001f1ee
cmp dword [rsp + 0x58], 0x19000
jae 0x14001f1d8
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
jmp 0x14001f1e0
mov dword [rsp + 0x30], 0x19000
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x48], ecx
jmp 0x14001f1fa
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x48], 0x19000
mov rax, qword [rsp + 0x50]
lea rcx, [0x14001f0f0]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax + 0x48]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x40]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x90]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFileEx]
test eax, eax
je 0x14001f244
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x54], 1
jmp 0x14001f280
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.14001eaa0
mov dword [rsp + 0x34], eax
call fcn.1400318f4
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r8, qword [rsp + 0x50]
mov edx, eax
lea rcx, str.ReadFileEx___ERROR:_d__io:_p
call fcn.140003a10
mov eax, 0xffffffff
jmp 0x14001f282
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400201e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x228
rep stosb byte [rdi], al
lea rdx, [rsp + 0x84]
mov ecx, 0x102
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDriveStringsW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140020250
call fcn.1400318f4
mov dword [rax], shutdown
xor eax, eax
jmp 0x140020375
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
test eax, eax
je 0x1400202df
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
cmp word [rax + rcx*2], 0
jne 0x14002028f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400202b9
jmp 0x1400202df
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rax + rcx*2 + 2]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
jmp 0x140020270
cmp dword [rsp + 0x80], 0
jne 0x1400202f8
call fcn.1400318f4
mov dword [rax], shutdown
xor eax, eax
jmp 0x140020375
mov ecx, 0x248
call fcn.140031834
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002031e
call fcn.1400318f4
mov dword [rax], listen
xor eax, eax
jmp 0x140020375
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov ecx, 0x248
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
add rax, 8
mov r9d, 0x230
lea r8, [rsp + 0x60]
mov edx, 0x230
mov rcx, rax
call fcn.14001fb90
test eax, eax
je 0x140020361
xor eax, eax
jmp 0x140020375
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x238], 1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14002a0e0
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400203a0
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x28], 0
ja 0x1400203cf
call fcn.1400318f4
mov dword [rax], 0x78
xor eax, eax
jmp 0x14002057f
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x238], 0
je 0x140020401
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x238], 0
mov rax, qword [rsp + 0x70]
add rax, 0x2c
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x240], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x240]
mov qword [rsp + 0x28], rax
jmp 0x140020428
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
lea rax, [rax + rcx*2 + 2]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
cmp word [rax + rcx*2], 0
jne 0x14002043b
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140020486
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x240], rcx
call fcn.1400318f4
mov dword [rax], 0x78
xor eax, eax
jmp 0x14002057f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400204aa
cmp dword [rsp + 0x20], 1
je 0x1400204aa
cmp dword [rsp + 0x20], 6
jne 0x1400204af
jmp 0x140020414
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400204d7
cmp qword [rsp + 0x50], 0
jne 0x1400204dc
jmp 0x140020414
jmp 0x1400204e3
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
lea rax, [rax + rcx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x240], rax
mov ecx, 0x108
call fcn.140031834
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140020524
call fcn.1400318f4
mov dword [rax], listen
xor eax, eax
jmp 0x14002057f
mov eax, 2
imul rax, rax, 0
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx + 4], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax + 4], 0x3a
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax + 4], 0
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret