joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400015f0
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rbx
mov rsi, qword [0x14000a720]
cmp qword [r8 + 0x18], 8
jb 0x140001632
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x14000163c
mov rdx, qword [rdx]
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
jne 0x140001735
lea rdx, str.Failed_to_open_request
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c90
mov rcx, rax
lea rdx, [0x140003e60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [0x14000a710]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400016df
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400016da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400017f4
mov rcx, r8
call fcn.14000517c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000172e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001729
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400017fb
mov rcx, r8
call fcn.14000517c
xor eax, eax
jmp 0x1400017c2
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140001774
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000176f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400017f4
mov rcx, r8
call fcn.14000517c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400017bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400017ba
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400017fb
mov rcx, r8
call fcn.14000517c
mov rax, rbp
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140004e00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005904
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000594e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000594e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000594e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000594e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000594e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005950
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov qword [r11 + 0x10], rsi
lea rdx, str.RegistryMachineSOFTWAREMicrosoftWindowsCurrentVersionUninstall
mov qword [r11 + 0x18], rdi
xorps xmm1, xmm1
xor eax, eax
mov qword [r11 - 0x18], r15
xor r15d, r15d
lea rdi, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp - 0x11], r15
movups xmmword [rbp - 9], xmm0
mov ecx, 0x10
mov esi, r15d
rep stosb byte [rdi], al
movups xmmword [rbp + 7], xmm1
lea rdi, [rbp + 7]
mov ecx, 0x30
movups xmmword [rbp + 0x17], xmm1
mov dword [rbp - 0x19], r15d
movups xmmword [rbp + 0x27], xmm1
rep stosb byte [rdi], al
lea rcx, [rbp - 9]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 9]
mov dword [rbp + 7], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea r8, [rbp + 7]
mov qword [rbp + 0xf], r15
mov edx, 0xf003f
mov dword [rbp + 0x1f], 0x40
lea rcx, [rbp - 0x11]
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jns 0x140001132
mov edx, eax
lea rcx, str.____NtOpenKey_Failed:__lx_n
call fcn.140001010
jmp 0x140001238
mov r8, qword [rbp - 0x11]
lea rcx, str.___Opened_key_path___ls__::__x_n
mov rdx, qword [rbp - 1]
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x98], r14
call fcn.140001010
nop word [rax + rax]
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov edx, esi
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ecx, dword [rbp - 0x19]
mov ebx, eax
lea rdi, [rcx + rcx*2]
shl rdi, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140001220
mov ecx, dword [rbp - 0x19]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov r9, r14
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, qword [rbp - 0x11]
mov edx, esi
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov ebx, eax
test eax, eax
jns 0x1400011eb
cmp eax, 0x8000001a
je 0x1400011ff
mov edx, eax
lea rcx, str.____NtEnumerateKey_Failed:__lx_n
call fcn.140001010
jmp 0x1400011ff
lea r8, [r14 + 0x10]
mov edx, esi
lea rcx, str.___ld______ls_n
call fcn.140001010
inc esi
mov ecx, dword [rbp - 0x19]
xor eax, eax
mov rdi, r14
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jns 0x140001160
mov r14, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rbp - 0x11]
mov r15, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
test rcx, rcx
je 0x14000125f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140001290
add rsp, 0xa0
pop rbp
ret
Function at 0x140001c9c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1402ce4f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140001cf6
mov r8, qword [0x1402ce430]
lea edx, [rax + 8]
mov rcx, qword [0x1402ce4d8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402ce4f0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140001040
mov rdx, rbx
lea rcx, [0x140001c74]
call fcn.140001e18
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140001d00
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402ce4f0], eax
add rsp, 0x28
jmp fcn.140001c9c

Function at 0x140001e18
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1402ce4f8], 0
lea rbx, [0x1402ce508]
mov r14, rdx
mov r15, rcx
jne 0x140001e65
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1402ce4fc], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1402ce4f8], 1
mov ecx, dword [0x1402ce4fc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140001f3a
mov rcx, qword [0x1402ce4d8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140001f65
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402ce500]
test rax, rax
je 0x140001eb5
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1402ce500], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x140001f80]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1402ce4fc]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1402ce4d8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140001f65
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400028d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002922
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002922
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002922
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002922
cmp dword [rcx + 0x84], 0xe
jbe 0x140002922
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002924
xor al, al
add rsp, 0x28
ret

Function at 0x140007240
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400072af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400072af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400072af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400072af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400072af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400072af
cmp dword [rcx + 0xf8], 0
je 0x1400072af
mov ecx, ebx
call fcn.1400073b4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140007074
nop
cmp dword [rbp + 0x20], 0
je 0x1400072fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007308
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007240

Function at 0x1400074a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007240
Function at 0x140013034
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.1400092e4
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 0x1400130d5
cmp ebx, dword [rsp + 0x30]
je 0x1400130ce
test esi, esi
je 0x1400130ce
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400130a9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400130b6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140013093
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400130ba
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400130d7
mov eax, 1
jmp 0x1400130d7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001436c
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 0x14001439c
xor eax, eax
jmp 0x14001445f
mov rbp, rbx
cmp word [rax], si
je 0x1400143c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400143a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400143a4
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.140014664
movsxd r14, eax
test eax, eax
jne 0x1400143ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014395
mov rcx, r14
call fcn.140009d68
mov rdi, rax
test rax, rax
jne 0x140014418
xor ecx, ecx
call fcn.140008098
jmp 0x1400143f4
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.140014664
test eax, eax
jne 0x140014449
mov rcx, rdi
call fcn.140008098
jmp 0x140014453
xor ecx, ecx
call fcn.140008098
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 0x14001447c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140014503
mov rsi, rbx
cmp word [rax], bp
je 0x1400144c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400144ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400144a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009d68
mov rdi, rax
test rax, rax
je 0x1400144f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022750
mov rbp, rdi
xor ecx, ecx
call fcn.140008098
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c6a8
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.14000d28c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c732
cmp byte [rbp - 0x21], r15b
je 0x14001c72d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c768
call fcn.14000b008
test eax, eax
jne 0x14001c754
cmp byte [rbp - 0x21], r15b
je 0x14001c74c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c768
cmp byte [rbp - 0x21], r15b
je 0x14001c765
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.14000e32c
test eax, eax
jne 0x14001c808
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d28c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c7a7
cmp byte [rbp - 0x21], r15b
je 0x14001c7dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c7dc
call fcn.14000b008
test eax, eax
jne 0x14001c7c8
cmp byte [rbp - 0x21], r15b
je 0x14001c7c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c7dc
cmp byte [rbp - 0x21], r15b
je 0x14001c7d9
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.14000e32c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c808
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c80b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c819
mov rcx, rdi
call fcn.140008098
cmp byte [rbp + 0x3f], r15b
je 0x14001c828
mov rcx, qword [rbp + 0x27]
call fcn.140008098
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 0x14001edc8
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, [0x1402cf380]
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 0x14001ee1f
cmp word [rdx], r13w
jne 0x14001ee1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ee24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ef49
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ef6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ee5d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ee84
cmp r9, r8
jae 0x14001ee94
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 0x14001ee3e
jmp 0x14001ef49
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 0x14001ef3e
cmp dword [rsp + 0x80], esi
je 0x14001ef3e
lea r8, [0x1402cf380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ef16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001eee6
mov word [rbx], r13w
jmp 0x14001ef46
mov ecx, reloc.WS2_32.dll_listen
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 0x14001eef3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ef46
cmp word [rsp + 0x70], r13w
jne 0x14001ef23
cmp rbx, r14
je 0x14001eee0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002035c
cmp word [rsp + 0x70], r13w
je 0x14001ef49
mov ecx, reloc.WS2_32.dll_listen
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, [0x1402cf380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ef43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ef49
Function at 0x140030d98
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140030cb4]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14003394c
xor r8d, r8d
mov qword [0x1402cfe38], rax
xor edx, edx
mov ecx, ebx
call fcn.140033674
xor ebx, ebx
mov qword [0x1402d62c0], rax
cmp word [0x1402cfe30], bx
jne 0x140030ebb
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140030e00
movzx eax, di
jmp 0x140030e02
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1402cfe30], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402cfe40], rax
test rax, rax
je 0x140030ebb
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402cfe40]
lea rdx, str.freeaddrinfo
mov qword [0x1402cfe10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402cfe40]
lea rdx, str.getnameinfo
mov qword [0x1402cfe18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402cfe40]
lea rdx, str.WSAStringToAddressA
mov qword [0x1402cfe20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402cfe10], rbx
mov qword [0x1402cfe28], rax
je 0x140030ebb
cmp qword [0x1402cfe18], rbx
je 0x140030ebb
cmp qword [0x1402cfe20], rbx
je 0x140030ebb
mov ecx, dword [0x1402cfe34]
test rax, rax
cmovne ecx, edi
mov dword [0x1402cfe34], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400335dc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1402d0290]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14003365d
mov r8, qword [0x1402d0288]
lea edx, [rax + 8]
mov rcx, qword [0x1402ce4d8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402d0290]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1402d0280]
jmp 0x140033649
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x140033646
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140033634
mov rdx, rdi
lea rcx, [0x140033540]
call fcn.140001e18
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret