joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
movsxd rcx, ecx
call fcn.1400314b0
call fcn.1400314f0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rbx, [0x1400f4e40]
mov qword [0x1400f15eb], rbx
lea rax, [rsp + 0x20]
mov qword [0x1400f15f8], rax
lea rsi, [rsp + 0x28]
mov qword [0x1400f160f], rsi
xor edx, edx
xor ecx, ecx
call fcn.1400320a0
xor edx, edx
xor ecx, ecx
call fcn.140033e20
xor edx, edx
mov ecx, 1
call fcn.140031cc0
xor edx, edx
mov ecx, 4
call fcn.140031cc0
mov rdx, qword [0x1400f4e40]
lea rcx, [0x1400f4eac]
call fcn.140031580
test eax, eax
jne 0x140001170
xor edx, edx
mov ecx, 8
call fcn.140031cc0
xor edx, edx
mov ecx, 9
call fcn.140031cc0
call fcn.1400316b0
call fcn.1400316b0
call fcn.1400315c0
mov ebx, eax
mov edx, eax
mov ecx, 0x104
call fcn.14002f630
mov edx, ebx
mov ecx, 0x104
call fcn.14002f730
call fcn.1400315c0
mov edx, eax
mov rcx, rsi
call fcn.140031710
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140033b40
xor edx, edx
mov ecx, 0xa
call fcn.140031cc0
mov r9, qword [rsp + 0x28]
xor r8d, r8d
lea rdx, [0x1400f15b8]
mov rcx, qword [0x1400f4e40]
call sub.KERNEL32.dll_GetTempFileNameW
mov ecx, 0xa
call fcn.140032a80
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140033b40
xor edx, edx
mov ecx, recv
call fcn.140031cc0
call fcn.1400316b0
mov rcx, qword [rsp + 0x28]
call fcn.1400317d0
call fcn.140031680
mov rbx, rax
call fcn.140032470
mov rcx, qword [rsp + 0x28]
call fcn.140031840
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor edx, edx
mov ecx, 5
call fcn.140031cc0
call fcn.1400316b0
call fcn.1400316b0
call fcn.1400315c0
mov edi, eax
mov edx, eax
mov ecx, 0x104
call fcn.14002f630
mov edx, edi
mov ecx, 0x104
call fcn.14002f730
call fcn.1400315c0
mov edx, eax
mov rcx, rbx
call fcn.140031710
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140033b40
xor edx, edx
mov ecx, 6
call fcn.140031cc0
mov rdx, qword [0x1400f4e40]
mov ecx, 0x104
call sub.KERNEL32.dll_GetTempPathW
mov rdi, rax
mov ecx, 6
call fcn.140032a80
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140033b40
xor edx, edx
mov ecx, 7
call fcn.140031cc0
call fcn.1400316b0
call fcn.1400316b0
mov rdi, qword [0x1400f4e40]
call fcn.1400315c0
mov r8d, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14002f790
call fcn.1400315c0
mov edx, eax
mov rcx, rbx
call fcn.140031710
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140033b40
jmp 0x140001091

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

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400f4eb0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000152e
mov r8, qword [0x1400f4e30]
lea edx, [rax + 8]
mov rcx, qword [0x1400f4ea0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f4eb0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140001290
mov rdx, rbx
lea rcx, [0x1400014ac]
call fcn.140001650
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140001538
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 [0x1400f4eb0], eax
add rsp, 0x28
jmp fcn.1400014d4

Function at 0x140001650
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 [0x1400f4eb8], 0
lea rbx, [0x1400f4ec8]
mov r14, rdx
mov r15, rcx
jne 0x14000169d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400f4ebc], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400f4eb8], 1
mov ecx, dword [0x1400f4ebc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140001772
mov rcx, qword [0x1400f4ea0]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000179d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f4ec0]
test rax, rax
je 0x1400016ed
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400f4ec0], 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, [0x1400017b8]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400f4ebc]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400f4ea0]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14000179d
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 0x140002110
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000215a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000215a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000215a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000215a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000215a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000215c
xor al, al
add rsp, 0x28
ret
Function at 0x140006a78
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 0x140006ae7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006ae7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006ae7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006ae7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006ae7
cmp dword [rcx + 0x84], 0xe
jbe 0x140006ae7
cmp dword [rcx + 0xf8], 0
je 0x140006ae7
mov ecx, ebx
call fcn.140006bec
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.1400068ac
nop
cmp dword [rbp + 0x20], 0
je 0x140006b35
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006b40
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140006a78

Function at 0x140006cd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006a78
Function at 0x14001286c
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.140008b1c
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 0x14001290d
cmp ebx, dword [rsp + 0x30]
je 0x140012906
test esi, esi
je 0x140012906
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400128e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400128ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400128cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400128f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001290f
mov eax, 1
jmp 0x14001290f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140013ba4
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 0x140013bd4
xor eax, eax
jmp 0x140013c97
mov rbp, rbx
cmp word [rax], si
je 0x140013bf9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013be0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013bdc
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.140013e9c
movsxd r14, eax
test eax, eax
jne 0x140013c37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013bcd
mov rcx, r14
call fcn.1400095a0
mov rdi, rax
test rax, rax
jne 0x140013c50
xor ecx, ecx
call fcn.1400078d0
jmp 0x140013c2c
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.140013e9c
test eax, eax
jne 0x140013c81
mov rcx, rdi
call fcn.1400078d0
jmp 0x140013c8b
xor ecx, ecx
call fcn.1400078d0
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 0x140013cb4
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 0x140013d3b
mov rsi, rbx
cmp word [rax], bp
je 0x140013cfa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013ce4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013ce0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400095a0
mov rdi, rax
test rax, rax
je 0x140013d28
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021f80
mov rbp, rdi
xor ecx, ecx
call fcn.1400078d0
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 0x14001bed8
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.14000cac4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001bf62
cmp byte [rbp - 0x21], r15b
je 0x14001bf5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001bf98
call fcn.14000a840
test eax, eax
jne 0x14001bf84
cmp byte [rbp - 0x21], r15b
je 0x14001bf7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001bf98
cmp byte [rbp - 0x21], r15b
je 0x14001bf95
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.14000db64
test eax, eax
jne 0x14001c038
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000cac4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001bfd7
cmp byte [rbp - 0x21], r15b
je 0x14001c00c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c00c
call fcn.14000a840
test eax, eax
jne 0x14001bff8
cmp byte [rbp - 0x21], r15b
je 0x14001bff1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c00c
cmp byte [rbp - 0x21], r15b
je 0x14001c009
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.14000db64
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c038
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c03b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c049
mov rcx, rdi
call fcn.1400078d0
cmp byte [rbp + 0x3f], r15b
je 0x14001c058
mov rcx, qword [rbp + 0x27]
call fcn.1400078d0
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 0x14001e5f0
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, [0x1400f5d40]
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 0x14001e647
cmp word [rdx], r13w
jne 0x14001e647
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e64c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e771
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e792
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e685
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e6ac
cmp r9, r8
jae 0x14001e6bc
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 0x14001e666
jmp 0x14001e771
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 0x14001e766
cmp dword [rsp + 0x80], esi
je 0x14001e766
lea r8, [0x1400f5d40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e73e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e70e
mov word [rbx], r13w
jmp 0x14001e76e
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 0x14001e71b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e76e
cmp word [rsp + 0x70], r13w
jne 0x14001e74b
cmp rbx, r14
je 0x14001e708
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001fb84
cmp word [rsp + 0x70], r13w
je 0x14001e771
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, [0x1400f5d40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e76b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e771
Function at 0x14002f934
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400f1668]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x14002f850]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.1400307a0
xor r8d, r8d
mov qword [0x1400f63e8], rax
xor edx, edx
mov ecx, ebx
call fcn.1400304c8
xor ebx, ebx
mov qword [0x1400fb740], rax
cmp word [0x1400f63e0], bx
jne 0x14002fa69
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14002f9ae
movzx eax, di
jmp 0x14002f9b0
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1400f63e0], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400f63f0], rax
test rax, rax
je 0x14002fa69
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f63f0]
lea rdx, str.freeaddrinfo
mov qword [0x1400f63c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f63f0]
lea rdx, str.getnameinfo
mov qword [0x1400f63c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400f63f0]
lea rdx, str.WSAStringToAddressA
mov qword [0x1400f63d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400f63c0], rbx
mov qword [0x1400f63d8], rax
je 0x14002fa69
cmp qword [0x1400f63c8], rbx
je 0x14002fa69
cmp qword [0x1400f63d0], rbx
je 0x14002fa69
mov ecx, dword [0x1400f63e4]
test rax, rax
cmovne ecx, edi
mov dword [0x1400f63e4], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140057970
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x140030430
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 [0x1400f6408]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400304b1
mov r8, qword [0x1400f6400]
lea edx, [rax + 8]
mov rcx, qword [0x1400f4ea0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f6408]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f63f8]
jmp 0x14003049d
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14003049a
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140030488
mov rdx, rdi
lea rcx, [0x140030394]
call fcn.140001650
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400304c8
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
sub rsp, 0x20
mov edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x1400304f2
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1400f6400]
test rbx, rbx
jne 0x140030538
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1400f4ea0]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x1400f6408], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f6408]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1400f6400]
jmp 0x14003053b
movsxd rdi, edi
mov ecx, dword [0x1400f6408]
lea rax, [rdi + rbx]
mov qword [0x1400f6400], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1400f6400]
mov edx, 8
mov rcx, qword [0x1400f4ea0]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1400f6408]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14003058a
test rbp, rbp
je 0x1400305b1
mov edx, 0x28
lea rcx, [0x1400f63f8]
call fcn.1400310c0
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x1400305b1
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400314b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400f218c]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov qword [rax + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]

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

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f218c]
cmp ecx, 0xffffffff
jne 0x140031506
call fcn.1400318a0
jmp 0x140031516
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140031535
call fcn.140031bd0
mov ecx, dword [0x1400f218c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x140031540]
add rsp, 0x28
jmp fcn.140001650
add rsp, 0x28
ret

Function at 0x1400315c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1400f218c]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140031610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f218c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x140031640
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f218c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x140031680
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f218c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x1400316b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f218c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x140031710
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
movsxd r14, edx
mov ecx, dword [0x1400f218c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rdi]
mov rsi, rax
mov r8d, dword [rax + 0x10]
sub r8d, r14d
movsxd rbp, r8d
test rcx, rcx
jne 0x140031766
mov rcx, qword [0x1400fb7e0]
lea r8, [rbp + 0x12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x140031785
call fcn.140033e50
add qword [rdi], 0xfffffffffffffffc
lea r9, [rbp + 0x12]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1400fb7e0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
lea r9, [rax + 4]
mov r8, rbp
mov qword [rdi], r9
mov rcx, r9
mov rdx, qword [rsi]
add rdx, r14
shr r8, 1
call fcn.140031b50
mov rcx, qword [rdi]
lea rdx, [rbp + 2]
call fcn.140033b20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rsi + 0x10], r14
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400318a0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400fb7e0], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f218c], eax
add rsp, 0x28
jmp fcn.140031bd0