joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ef60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005ef76
mov al, 1
jmp 0x14005efd6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005ef87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005efd4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400672bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005efd4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005efd4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005efd4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005efd6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400639bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004d0c0
sub rsp, rax
mov rax, qword [0x140081040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005de90
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140063a0b
mov rax, rbp
jmp 0x140063b13
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x83340]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006489c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x83340]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140063b0f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140063b0f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006489c
test rax, rax
js 0x140063b0f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140063b0f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140063b01
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140063b01
cmp byte [rcx], 0xd
jne 0x140063ae7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140063af6
cmp byte [rcx + 1], 0xa
jne 0x140063af6
inc rcx
jmp 0x140063af6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x81470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140063ac9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140063b13
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004d120
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140063c3c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140083340]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140063c93
cmp word [rdx], r13w
jne 0x140063c93
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140063c98
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140063dbd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140063dde
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140063cd1
mov rdx, r9
mov word [rbx], cx
jmp 0x140063cf8
cmp r9, r8
jae 0x140063d08
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140063cb2
jmp 0x140063dbd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140063db2
cmp dword [rsp + 0x80], esi
je 0x140063db2
lea r8, [0x140083340]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140063d8a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140063d5a
mov word [rbx], r13w
jmp 0x140063dba
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140063d67
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140063dba
cmp word [rsp + 0x70], r13w
jne 0x140063d97
cmp rbx, r14
je 0x140063d54
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400648a4
cmp word [rsp + 0x70], r13w
je 0x140063dbd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140083340]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140063db7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140063dbd
Function at 0x140066854
Capabilities:
Query environment variable

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
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140066884
xor eax, eax
jmp 0x140066947
mov rbp, rbx
cmp word [rax], si
je 0x1400668a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140066890
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14006688c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140064e54
movsxd r14, eax
test eax, eax
jne 0x1400668e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14006687d
mov rcx, r14
call fcn.14005f1fc
mov rdi, rax
test rax, rax
jne 0x140066900
xor ecx, ecx
call fcn.14005de54
jmp 0x1400668dc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140064e54
test eax, eax
jne 0x140066931
mov rcx, rdi
call fcn.14005de54
jmp 0x14006693b
xor ecx, ecx
call fcn.14005de54
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140069810
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14005d634
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400698b1
cmp ebx, dword [rsp + 0x30]
je 0x1400698aa
test esi, esi
je 0x1400698aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140069885
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140069892
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14006986f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140069896
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400698b3
mov eax, 1
jmp 0x1400698b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006d5ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140058f2c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006d676
cmp byte [rbp - 0x21], r15b
je 0x14006d671
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006d6ac
call fcn.14006196c
test eax, eax
jne 0x14006d698
cmp byte [rbp - 0x21], r15b
je 0x14006d690
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006d6ac
cmp byte [rbp - 0x21], r15b
je 0x14006d6a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14005957c
test eax, eax
jne 0x14006d74c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140058f2c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006d6eb
cmp byte [rbp - 0x21], r15b
je 0x14006d720
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006d720
call fcn.14006196c
test eax, eax
jne 0x14006d70c
cmp byte [rbp - 0x21], r15b
je 0x14006d705
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006d720
cmp byte [rbp - 0x21], r15b
je 0x14006d71d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14005957c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006d74c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006d74f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006d75d
mov rcx, rdi
call fcn.14005de54
cmp byte [rbp + 0x3f], r15b
je 0x14006d76c
mov rcx, qword [rbp + 0x27]
call fcn.14005de54
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006da08
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400648a4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400648a4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006db58
cmp rax, 0xffffffffffffffff
je 0x14006db58
xor edi, edi
test rbp, rbp
jle 0x14006db03
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400614ac
mov rbx, rax
test rax, rax
jne 0x14006da90
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006daf9
mov edx, 0x8000
mov ecx, r14d
call fcn.14005a954
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14005eb60
cmp eax, 0xffffffff
je 0x14006dad9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006daa0
mov edx, r15d
mov ecx, r14d
call fcn.14005a954
jmp 0x14006daf9
cmp byte [rsi + 0x38], dil
je 0x14006daf0
cmp dword [rsi + 0x34], 5
jne 0x14006daf0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006daf9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005de54
jmp 0x14006db6c
jns 0x14006db6c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400648a4
cmp rax, 0xffffffffffffffff
jne 0x14006db24
cmp byte [rsi + 0x30], dil
je 0x14006db6c
mov edi, dword [rsi + 0x2c]
jmp 0x14006db6c
mov ecx, r14d
call fcn.1400672bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006db6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14006db6c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006db65
mov eax, dword [rsi + 0x2c]
jmp 0x14006db6a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400648a4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14006eee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006ef08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006ef08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001db0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400530c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov dword [rsp + 0x40], 0x238
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001ec2
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140003950
cmp qword [rdi + 0x18], 7
mov r8, rax
mov rcx, rdi
jbe 0x140001e2f
mov rcx, qword [rdi]
cmp qword [rax + 0x18], 7
mov rdx, qword [rax + 0x10]
jbe 0x140001e3d
mov r8, qword [rax]
cmp rdx, qword [rdi + 0x10]
jne 0x140001e68
test rdx, rdx
je 0x140001e64
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140001e68
add rcx, 2
sub rdx, 1
jne 0x140001e50
mov bl, 1
jmp 0x140001e6a
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140001ea8
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ea3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ef2
call fcn.14003ede4
mov rcx, rsi
test bl, bl
jne 0x140001ef9
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001e10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14003ed80
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140001ecd
Function at 0x140004510
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400530c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140004571
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14000456b
shr ax, 8
cmp al, 2
jne 0x14000456b
call fcn.14000a500
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14003ed80
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14003ed80
add rsp, 0x1d8
ret
Function at 0x140013a60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1400530c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x438], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x140013b91
test rax, rax
je 0x140013b91
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x140013b91
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x140013aeb
sub ecx, 1
je 0x140013adb
sub ecx, 1
je 0x140013af2
cmp ecx, 1
je 0x140013ae2
jmp 0x140013b91
lea r9, str.Header
lea rax, [0x1400445a0]
jmp 0x140013af9
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.1400161f0
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140013b22
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x140013b59
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x140013b91
jmp 0x140013ba1
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x1400444c0]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.1400144f0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14003ed80
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140013e90
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 0x140013ecb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
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 0x1400141f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor r10d, r10d
mov rdi, r9
cmp rdx, qword [rcx + 0x1d8]
mov rsi, r8
mov r14, rcx
sete r10b
movsxd rax, r10d
mov edx, r10d
mov rbx, qword [rcx + rax*8 + 0x1d0]
call fcn.1400143f0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x140014296
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14001426a
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x1400142a0
mov edx, eax
mov rcx, r14
call fcn.140004e80
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140013bc0
mov rax, qword [r14]
mov dword [rax + 0x883c], ebx
mov eax, gethostname
jmp 0x140014298
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400143f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x218]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x3e0]
mov rsi, qword [rcx + r8*8 + 0x1d0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x1400144d3
lea rax, [0x140013ee0]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x1400144d3
cmp qword [rbx], 0
je 0x140014454
test rdi, rdi
je 0x1400144d3
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.140013480
cmp eax, 0xffffffff
je 0x1400144d3
test al, 1
je 0x1400144d3
cmp qword [rbx], 0
jne 0x1400144b2
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x1400144b2
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400144d3
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400144f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x140014533
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x140014578
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1400444c0]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140014770
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7c8]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400147e0
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x1400147a3
cmp qword [rdi + 0x78], rcx
je 0x1400147e0
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x1400147b6
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x140015830]
lea rdx, [rsp + 0x20]
call fcn.14001e580
cmp byte [rsp + 0x28], 0
jne 0x1400147f4
mov qword [rdi + 0x7c8], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1400147fc
mov qword [rsi], rbx
cmp byte [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x14001481a
mov rcx, rbx
call fcn.14000be60
test eax, eax
jne 0x14001483c
jmp 0x1400147e0
cmp rdi, 0xffffffffffffffff
je 0x14001483c
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400147e0
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140014da0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x1400530c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x140053240]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x140014e78
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x9c
call sub.VCRUNTIME140.dll_memset
mov r8b, 3
mov dword [rsp + 0x40], 0x9c
mov edx, 2
mov dword [rsp + 0x44], 6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x33
lea rcx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140014e6c
mov dword [0x140053240], 2
jmp 0x140014ecf
mov dword [0x140053240], 1
jmp 0x140014e7d
cmp eax, 2
je 0x140014ecf
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140014eae
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x140014ecf
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14003ed80
add rsp, 0xf0
pop rbx
ret
Function at 0x140014fd0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14001503b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140004e80
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.140013c80
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140013c80
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret