joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140059e50
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp dword [0x1400ce89c], 0
mov rax, qword [rsp + 0x40]
mov qword [0x1400d1310], rax
je 0x140059e7f
rdtsc
shl rdx, 0x20
or rax, rdx
jmp 0x140059e8f
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x48]
xor r9d, r9d
mov qword [0x1400d0af0], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1400d1b18], rax
xor r9d, r9d
lea r8, [0x140059c60]
xor edx, edx
lea rax, [0x1400d4bb8]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.140086734
mov qword [0x1400d0a88], rax
test rax, rax
je 0x140059f3f
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [0x1400d0a88]
call fcn.140059fd0
mov rcx, qword [0x1400d0a88]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [0x1400d0acc], 0
jne 0x140059f34
mov dword [0x1400d0acc], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.140059fd0
lea rcx, [fcn.140059f50]
call fcn.140074170
mov ecx, 0xac0
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x38
ret

Function at 0x14005ab60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push r14
sub rsp, 0x30
xor ebx, ebx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov rsi, r8
xor eax, eax
mov dword [rsp + 0x58], edx
mov rbp, rcx
mov dword [rsp + 0x68], eax
lea r14d, [rbx + 1]
nop
test eax, eax
je 0x14005abb4
add edx, 2
mov dword [rsp + 0x58], edx
mov edi, edx
cmove rdx, r14
xor ecx, ecx
call fcn.140088978
mov rbx, rax
test rax, rax
je 0x14005ac56
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rdx, str.PPSProviders
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14005ac16
mov eax, dword [rsp + 0x68]
cmp eax, r14d
je 0x14005abed
cmp eax, 7
jne 0x14005ac16
test rbx, rbx
jne 0x14005abf8
mov edx, dword [rsp + 0x58]
jmp 0x14005ab90
mov eax, dword [rsp + 0x58]
add rax, rbx
cmp rax, rbx
je 0x14005ac16
cmp byte [rax - 1], 0
lea rcx, [rax - 1]
je 0x14005ac3e
mov rax, rcx
cmp rcx, rbx
jne 0x14005ac04
mov rcx, rbx
call fcn.140078220
test rsi, rsi
je 0x14005ac29
mov dword [rsi], 0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp rax, rbx
je 0x14005ac16
mov word [rax], 0
test rsi, rsi
je 0x14005ac51
sub eax, ebx
mov dword [rsi], eax
mov rax, rbx
jmp 0x14005ac2b
mov r8d, edi
mov dword [0x1400d1b14], r14d
lea rdx, str.fatal_out_of_memory___lu_bytes_
mov ecx, 3
call fcn.14005c0d0
mov ecx, r14d
call fcn.1400786ac
int3
Function at 0x140063d70
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, 0x20
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
test r9b, 2
je 0x140063daa
mov r9, qword [rdx + 0x40]
mov r8, qword [rdx + 0x50]
lea rdx, str._n__s_____s_n
call fcn.140004e80
test byte [rsi + 0x10], 0xf
jne 0x140063dc4
test bl, 1
je 0x140063dc4
mov rdx, rdi
lea rcx, str._DEFAULT:
call fcn.1400809b4
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140063dde
test byte [rsi + 0x10], 0x20
jne 0x140063de2
mov eax, 0x8000
cmp word [rsi + 8], ax
jne 0x140063de2
mov rcx, qword [rsi + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140063de6
mov ebx, setsockopt
mov rdx, rdi
sub ebx, eax
call fcn.1400809b4
test rbp, rbp
jne 0x140063e16
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x140063eca
mov rdx, rdi
lea rcx, [0x1400baf68]
call fcn.1400809b4
test ebx, ebx
jle 0x140063e43
nop dword [rax]
mov rdx, rdi
mov ecx, 0x20
dec ebx
call fcn.14008902c
test ebx, ebx
jg 0x140063e30
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x140063e66
mov r8d, ebp
lea rdx, [0x1400ae2c8]
mov rcx, rdi
call fcn.140004e80
jmp 0x140063eca
mov edx, 0xa
mov rcx, rbp
call fcn.140074960
mov rbx, rax
test rax, rax
je 0x140063ebf
nop dword [rax + rax]
mov rdx, rbx
mov r9, rdi
sub rdx, rbp
mov r8d, 1
mov rcx, rbp
call fcn.140087fec
mov rdx, rdi
lea rcx, [0x1400baf6c]
lea rbp, [rbx + 1]
call fcn.1400809b4
mov edx, 0xa
mov rcx, rbp
call fcn.140074960
mov rbx, rax
test rax, rax
jne 0x140063e80
mov rdx, rdi
mov rcx, rbp
call fcn.1400809b4
mov rdx, rdi
mov ecx, 0xa
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14008902c
Function at 0x140064700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov edi, edx
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call fcn.140063a20
mov rsi, rax
test rax, rax
je 0x14006489d
mov qword [rsp + 0x80], rbx
test edi, edi
jne 0x14006474f
mov rcx, rsi
call fcn.140082b70
jmp 0x140064757
mov rdx, rsi
call fcn.140064430
lea rdx, [0x1400b0664]
mov rcx, rsi
call fcn.14008026c
mov rbx, rax
test rax, rax
jne 0x1400647e2
lea ecx, [rax + 2]
call fcn.140075c34
mov r8, qword [0x1400cb698]
mov rcx, rax
mov rdx, qword [str._s_warning:__cannot_save_options____s_not_regular_file_n]
mov r9, rsi
call fcn.140004e80
call fcn.1400808e8
mov ebx, dword [rax]
call fcn.1400808e8
mov ecx, ebx
mov rdi, rax
call fcn.140089300
mov ecx, 2
mov rbx, rax
call fcn.140075c34
mov r8d, dword [rdi]
mov rcx, rax
mov rdx, qword [str.error__d___s__creating__s_n]
mov r9, rbx
mov qword [rsp + 0x20], rsi
call fcn.140004e80
cmp dword [rsp + 0x30], 0
je 0x1400647db
mov rcx, rsi
call fcn.140078220
xor eax, eax
jmp 0x140064895
cmp dword [rsp + 0x30], 0
je 0x1400647f1
mov rcx, rsi
call fcn.140078220
mov rcx, rbx
call fcn.140087d84
mov ecx, eax
lea rdx, [rsp + 0x38]
call fcn.14008354c
test eax, eax
js 0x140064810
cmp dword [rsp + 0x4c], 0x25
jg 0x14006487c
mov rdx, rbx
lea rcx, [0x1400baf78]
call fcn.1400809b4
mov rcx, qword [str.ntpd___NTP_daemon_program___Ver._4.2.8p15_nUsage:___s_____flag____val_______name____val____...__n_t_t___server1__...__serverN____n]
mov edx, 0xa
call fcn.140074960
test rax, rax
je 0x140064850
mov rcx, qword [str.ntpd___NTP_daemon_program___Ver._4.2.8p15_nUsage:___s_____flag____val_______name____val____...__n_t_t___server1__...__serverN____n]
mov r9, rbx
sub rax, rcx
mov edx, 1
lea r8, [rax + 1]
call fcn.140087fec
xor ecx, ecx
call fcn.140080c84
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14008928c
mov r8, rax
lea rdx, str.__preset_initialization_file_n___s_n
mov rcx, rbx
call fcn.140004e80
test edi, edi
je 0x140064892
mov r8, qword [0x1400cb698]
lea rdx, str.__program__s__n
mov rcx, rbx
call fcn.140004e80
mov rax, rbx
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140073c20
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140064960
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
mov r14d, r8d
mov ecx, dword [rdx + 0x10]
mov rsi, rdx
test cl, 0xf
setne r9b
bt ecx, 0xa
setb al
test al, r9b
je 0x140064b5a
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
mov r15d, dword [rax]
lea r12, [rax + 8]
cmp r15d, 1
jle 0x1400649ad
and ecx, 0xffffffdf
mov dword [rdx + 0x10], ecx
test r15d, r15d
jle 0x140064b47
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x28], r13
mov r13d, 0x8000
nop dword [rax + rax]
mov rbp, qword [r12]
dec r15d
test r14b, 2
je 0x1400649f4
mov r9, qword [rsi + 0x40]
lea rdx, str._n__s_____s_n
mov r8, qword [rsi + 0x50]
mov rcx, rdi
call fcn.140004e80
test byte [rsi + 0x10], 0xf
jne 0x140064a0f
test r14b, 1
je 0x140064a0f
mov rdx, rdi
lea rcx, str._DEFAULT:
call fcn.1400809b4
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140064a25
test byte [rsi + 0x10], 0x20
jne 0x140064a29
cmp word [rsi + 8], r13w
jne 0x140064a29
mov rcx, qword [rsi + 0x50]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140064a30
mov ebx, setsockopt
mov rdx, rdi
sub ebx, eax
call fcn.1400809b4
test rbp, rbp
jne 0x140064a60
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x140064b1a
mov rdx, rdi
lea rcx, [0x1400baf68]
call fcn.1400809b4
test ebx, ebx
jle 0x140064a93
nop dword [rax]
nop word [rax + rax]
mov rdx, rdi
mov ecx, 0x20
dec ebx
call fcn.14008902c
test ebx, ebx
jg 0x140064a80
mov eax, dword [rsi + 0x10]
and eax, 0xf000
cmp eax, 0x5000
jne 0x140064ab6
mov r8d, ebp
lea rdx, [0x1400ae2c8]
mov rcx, rdi
call fcn.140004e80
jmp 0x140064b1a
mov edx, 0xa
mov rcx, rbp
call fcn.140074960
mov rbx, rax
test rax, rax
je 0x140064b0f
nop dword [rax + rax]
mov rdx, rbx
mov r9, rdi
sub rdx, rbp
mov r8d, 1
mov rcx, rbp
call fcn.140087fec
mov rdx, rdi
lea rcx, [0x1400baf6c]
lea rbp, [rbx + 1]
call fcn.1400809b4
mov edx, 0xa
mov rcx, rbp
call fcn.140074960
mov rbx, rax
test rax, rax
jne 0x140064ad0
mov rdx, rdi
mov rcx, rbp
call fcn.1400809b4
mov rdx, rdi
mov ecx, 0xa
call fcn.14008902c
add r12, 8
and r14d, 0xfffffffd
test r15d, r15d
jg 0x1400649d0
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rdx + 0x18]
lea r8, [0x1400baf7c]
test rax, rax
mov r9d, r14d
mov rcx, rdi
cmovne r8, rax
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp fcn.140063d70
Function at 0x140065420
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 8]
mov rsi, rcx
mov rbp, rdx
lea rcx, [rdi + 1]
call fcn.140078228
mov rbx, rax
test rax, rax
jne 0x14006547b
lea ecx, [rax + 2]
call fcn.140075c34
mov rdx, qword [str.allocation_of__d_bytes_failed_n]
lea r8d, [rdi + 1]
mov rcx, rax
call fcn.140004e80
cmp byte [0x1400d08ce], bl
je 0x140065543
jmp 0x140065532
mov rdi, qword [rsi + 8]
mov qword [rsi], rax
test rdi, rdi
je 0x1400654ad
nop word [rax + rax]
mov ecx, dword [rsi + 0x18]
mov r8d, edi
mov rdx, rbx
call fcn.140087340
movsxd rcx, eax
test eax, eax
jle 0x1400654cc
add rbx, rcx
sub rdi, rcx
jne 0x140065490
mov byte [rbx], 0
mov dword [rsi + 0x20], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.1400808e8
mov ecx, dword [rax]
mov dword [rsi + 0x20], ecx
call fcn.1400808e8
mov ebx, dword [rax]
call fcn.1400808e8
mov ecx, ebx
mov rdi, rax
call fcn.140089300
mov ecx, 2
mov rbx, rax
call fcn.140075c34
mov r9d, dword [rdi]
lea r8, str.libopts
mov rdx, qword [str._s_error__d___s__calling__s_for__s_n]
mov rcx, rax
lea rax, str.read
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140004e80
mov rcx, qword [rsi]
call fcn.140078220
jmp 0x1400654b7
mov edx, 1
lea rcx, str._nexit__d_n
call fcn.140002fa0
mov ecx, 1
call fcn.1400786ac
int3

Function at 0x1400674e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140067500
call fcn.1400809b4
jmp 0x140067562
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140067510
call fcn.1400809b4
jmp 0x140067562
mov qword [rsp + 0x30], rsi
mov rsi, qword [rbx + 0x60]
test rsi, rsi
je 0x14006755d
mov edx, 0xa
mov rcx, rsi
call fcn.140074960
mov rcx, rsi
test rax, rax
jne 0x14006753d
mov rdx, rdi
call fcn.1400809b4
jmp 0x140067550
sub rax, rsi
mov r9, rdi
mov r8, rax
mov edx, 1
call fcn.140087fec
mov rdx, rdi
mov ecx, 0xa
call fcn.14008902c
mov rsi, qword [rsp + 0x30]
cmp dword [rbx], 0x22000
jl 0x14006759a
cmp qword [rbx + 0xe0], 0
je 0x14006759a
mov rdx, rdi
mov ecx, 0xa
call fcn.14008902c
mov rcx, qword [rbx + 0xe0]
mov rdx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400809b4
cmp qword [rbx + 0x80], 0
je 0x1400675c7
mov rdx, rdi
mov ecx, 0xa
call fcn.14008902c
mov r8, qword [rbx + 0x80]
mov rcx, rdi
mov rdx, qword [str._nPlease_send_bug_reports_to:____s__n]
call fcn.140004e80
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400679a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov ecx, dword [0x1400cb680]
mov rsi, rdx
mov eax, ecx
shr eax, 0x15
and al, 1
mov byte [0x1400d08ce], al
bt ecx, 0xd
jae 0x1400679f5
mov rdx, qword [0x1400cb710]
test rdx, rdx
je 0x1400679f5
cmp dword [0x1400ce8c0], 0
je 0x1400679f5
mov eax, ecx
and eax, 0x30000
cmp eax, 0x20000
jne 0x1400679f3
bts ecx, 0x10
mov dword [0x1400cb680], ecx
call rdx
mov ebp, dword [0x1400cb670]
lea eax, [rbp - 0x19000]
cmp eax, 0x11001
jbe 0x140067aba
mov qword [rsp + 0x40], rbx
mov ecx, 2
mov ebx, ebp
mov qword [rsp + 0x48], rdi
mov edi, ebp
sar ebx, 7
and ebx, 0x1f
sar ebp, 0xc
and edi, 0x7f
call fcn.140075c34
mov rdx, qword [str.Automated_Options_Processing_Error__n_t_s_called_AutoOpts_function_with_structure_version__d:_d:_d._n]
mov rcx, rax
mov r9d, ebp
mov dword [rsp + 0x28], edi
mov r8, rsi
mov dword [rsp + 0x20], ebx
call fcn.140004e80
cmp dword [0x1400cb670], 0x2a001
mov ecx, 2
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jle 0x140067a76
call fcn.140075c34
mov rcx, qword [str._tThis_exceeds_the_compiled_library_version:]
jmp 0x140067a82
call fcn.140075c34
mov rcx, qword [str._tThis_is_less_than_the_minimum_library_version:]
mov rdx, rax
call fcn.1400809b4
mov ecx, 2
call fcn.140075c34
mov edx, 8
lea rcx, str.42:1:17_n
mov r9, rax
lea r8d, [rdx - 7]
call fcn.140087fec
or eax, 0xffffffff
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp qword [0x1400cb698], 0
jne 0x140067b32
mov edx, 0x5c
mov rcx, rsi
call fcn.140074bfc
test rax, rax
je 0x140067ae2
inc rax
mov qword [0x1400cb698], rax
jmp 0x140067ae9
mov qword [0x1400cb698], rsi
lea rcx, str.PATH
call fcn.140088968
mov rcx, rsi
call fcn.140089154
test rax, rax
lea rcx, [0x1400a9b10]
lea rdx, [0x1400cec20]
cmovne rsi, rax
mov al, 0x2d
mov qword [0x1400cb690], rsi
nop dword [rax + rax]
movzx eax, al
lea rcx, [rcx + 1]
mov byte [rax + rdx], 0x2d
movzx eax, byte [rcx]
test al, al
jne 0x140067b20
xor eax, eax
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x140068dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov qword [rsp + 0x50], rbp
mov r14, rdx
mov qword [rsp + 0x58], rsi
mov rdi, rcx
mov qword [rsp + 0x60], r15
xor r12d, r12d
mov r13d, 0x80
mov ebx, dword [rdi + 0x24]
lea r8, [rdi + 8]
mov edx, 0x20
test r8, r8
je 0x140068e98
movzx eax, word [r8]
cmp r12w, ax
je 0x140068e98
test r14, r14
je 0x140068e98
movzx ecx, word [r14]
cmp r12w, cx
je 0x140068e98
cmp ax, cx
jne 0x140068e98
movzx ecx, ax
cmp ecx, 2
je 0x140068e4e
cmp ecx, 0x17
jne 0x140068e98
mov eax, dword [r14 + 0x18]
cmp dword [r8 + 0x18], eax
jne 0x140068e98
cmp ebx, r13d
lea rbp, [r8 + 8]
lea r15, [r14 + 8]
cmova ebx, r13d
jmp 0x140068e5c
cmp ebx, 0x20
lea rbp, [r8 + 4]
lea r15, [r14 + 4]
cmova ebx, edx
mov ecx, ebx
mov esi, 0xff
and ecx, 7
shr ebx, 3
shr esi, cl
not sil
test ebx, ebx
je 0x140068e84
mov r8d, ebx
mov rdx, r15
mov rcx, rbp
call fcn.140096ff0
test eax, eax
jne 0x140068e98
test sil, sil
je 0x140068ec2
movzx ecx, byte [rbx + r15]
xor cl, byte [rbx + rbp]
mov eax, ebx
test sil, cl
je 0x140068ec2
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140068deb
xor eax, eax
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, 1
jmp 0x140068ea6

Function at 0x14006be30
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x478
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
lea rax, [rsp + 0x60]
mov r8, rdx
mov qword [rsp + 0x50], rax
mov edx, 0x400
lea rcx, [rsp + 0x60]
lea r9, [r11 + 0x18]
call fcn.14005d0f0
mov rcx, qword [0x1400d1be8]
mov edi, 1
test rcx, rcx
jne 0x14006bea2
mov edx, edi
lea rcx, [0x1400cf0f8]
call fcn.14006bf30
mov rcx, qword [0x1400d1be8]
xor r8d, r8d
lea r9, [rsp + 0x50]
cmp ebx, 4
je 0x14006bee5
lea eax, [rbx - 5]
cmp eax, 2
ja 0x14006becf
xor eax, eax
lea edx, [r8 + 4]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x40000003
jmp 0x14006befc
xor eax, eax
mov edx, edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0xc0000001
jmp 0x14006befc
xor eax, eax
mov edx, 2
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x80000002
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140073c20
add rsp, 0x478
pop rdi
pop rbx
ret
Function at 0x14006c7d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400d1bf4]
test eax, eax
jne 0x14006c81b
lea rcx, [0x1400d4e90]
mov dword [0x1400d4e90], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14006c810
lea rcx, [0x1400d4e90]
mov dword [0x1400d4e90], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, 1
mov dword [0x1400d1bf4], eax
mov ecx, dword [0x1400d4e94]
cmp ecx, 5
jbe 0x14006c830
mov eax, 1
add rsp, 0x28
ret
test eax, eax
jne 0x14006c876
lea rcx, [0x1400d4e90]
mov dword [0x1400d4e90], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14006c866
lea rcx, [0x1400d4e90]
mov dword [0x1400d4e90], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [0x1400d4e94]
mov dword [0x1400d1bf4], 1
cmp ecx, 5
jae 0x14006c883
or eax, 0xffffffff
add rsp, 0x28
ret
call fcn.14006c6b0
cmp eax, 1
ja 0x14006c826
call fcn.14006c6b0
cmp eax, 1
jb 0x14006c87b
call fcn.14006c710
test eax, eax
jne 0x14006c826
call fcn.14006c710
call fcn.14006c770
test eax, eax
jne 0x14006c826
call fcn.14006c770
xor eax, eax
add rsp, 0x28
ret

Function at 0x14006e4d0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rcx + 0x10], rbx
xor edx, edx
mov rcx, qword [rcx + 0x68]
mov rcx, qword [rcx]
call qword [0x1400d50d0]
mov r9, rdi
mov qword [rsp + 0x28], rbx
lea r8, [0x14006e7f0]
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call fcn.140086734
lea rbx, [rdi + 0x98]
mov qword [rbx], rax
test rax, rax
je 0x14006e558
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x14006e540
lea rdx, str.Error_lowering_blocking_thread_priority:__m
lea ecx, [rax + 3]
call fcn.14005c0d0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rdx, str.start_blocking_thread_failed:__m
mov ecx, 3
call fcn.14005c0d0
or ecx, 0xffffffff
call fcn.1400786ac
int3
Function at 0x14006eb10
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.14006eaa0
test eax, eax
je 0x14006eb50
mov dword [reloc.WS2_32.dll_socket], eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140073c20
add rsp, 0xd8
ret
xor r8d, r8d
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xd0], rdi
mov edi, reloc.WS2_32.dll_socket
mov ecx, edi
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14006ebb4
call fcn.1400808e8
lea r8d, [rdi + 0x69]
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.140073070
mov rax, qword [0x1400d1bf8]
test rax, rax
je 0x14006ebaa
cmp dword [rax], 0x4d436174
jne 0x14006ecd4
mov edx, 0xa1
jmp 0x14006ec3f
mov edx, 0x29
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14006ebea
mov dword [reloc.WS2_32.dll_socket], edi
jmp 0x14006eca3
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov ecx, edi
lea edx, [r8 + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14006ec6f
call fcn.1400808e8
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.140073070
mov rax, qword [0x1400d1bf8]
test rax, rax
je 0x14006ec3a
cmp dword [rax], 0x4d436174
jne 0x14006ecf5
mov edx, 0xb9
lea rax, [rsp + 0x40]
lea r8, str.socket____s:__s
mov qword [rsp + 0x20], rax
lea r9, str.failed
lea rcx, str.........libntplibiscwin32_net.c
call fcn.140069980
mov dword [reloc.WS2_32.dll_socket], 0x22
jmp 0x14006ecac
mov edx, 0x29
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
test eax, eax
cmovs ecx, edi
mov dword [reloc.WS2_32.dll_socket], ecx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140073c20
add rsp, 0xd8
ret
xor r8d, r8d
lea r9, str.___msgcat______void__0_______const_isc__magic_t___msgcat____magic_____M_____24___C_____16___a_____8___t_______msgcat____void__0_
lea rcx, str.........libntplibisc_nlsmsgcat.c
lea edx, [r8 + 0x77]
call qword [0x1400cf0f0]
call fcn.14008013c
int3
xor r8d, r8d
lea r9, str.___msgcat______void__0_______const_isc__magic_t___msgcat____magic_____M_____24___C_____16___a_____8___t_______msgcat____void__0_
lea rcx, str.........libntplibisc_nlsmsgcat.c
lea edx, [r8 + 0x77]
call qword [0x1400cf0f0]
call fcn.14008013c
int3
Function at 0x14006ed20
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x14006ed6a
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140073c20
add rsp, 0x1d0
pop rbx
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 2
call fcn.140075c34
mov rcx, rax
lea rdx, str.No_usable_winsock:__m_n
call fcn.14005c040
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.No_usable_winsock:__m
mov ecx, 3
call fcn.14005c0d0
mov ecx, 1
call fcn.1400786ac
int3

Function at 0x14006edb0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
xor esi, esi
mov rbx, rdx
cmp dword [0x1400d1bf4], esi
mov rdi, rcx
mov dword [rsp + 0x70], esi
jne 0x14006ee0f
lea rcx, [0x1400d4e90]
mov dword [0x1400d4e90], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14006ee05
lea rcx, [0x1400d4e90]
mov dword [0x1400d4e90], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [0x1400d1bf4], 1
cmp dword [0x1400d4e94], 5
jb 0x14006ee6f
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov dword [rsp + 0x28], esi
mov edx, 0x9800000c
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x14006ee6f
mov rcx, rbx
call fcn.14006b9c0
mov r8, rax
lea rdx, str.connection_reset_fix___failed_for_address__s:__m
mov ecx, 3
call fcn.14005c0d0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret