joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020b920
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14020b9b0
mov rax, qword [0x14037c038]
mov dword [rsp + 0x2c], 0
lea rdi, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x14020b9f1
cmp dword [rsp + 0x2c], 0
je 0x14020b9d5
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14020ba17
mov ebx, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140373e48]
nop dword [rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140373e48], rsi
jne 0x14020b990
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x14020b9e9
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14020ba61
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14020b9da
mov eax, dword [rsp + 0x28]
jmp 0x14020b9e9
mov eax, dword [rsi + 0x18]
jmp 0x14020b9e7
mov ecx, dword [rsp + 0x28]
mov esi, eax
call sub.kernel32.dll_TlsFree
mov eax, esi
dec eax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1402f8088]
lea r9, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.14020bac0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.invalid
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.14015c040
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.invalid
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.14020bb00
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140276440]
test ecx, ecx
je 0x14020c296
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14020c226
cmp byte [rax + 8], 0
jne 0x14020c288
mov ecx, dword [0x140276440]
test ecx, ecx
je 0x14020c2a9
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14020c28e
test rax, rax
jne 0x14020c282
movzx eax, byte [0x140373e88]
mov edx, 0x10
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x14020c2d2
lea rcx, [0x140276428]
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x140276440]
test ecx, ecx
je 0x14020c2bc
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x14020c290
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140276428]
call fcn.14020b920
mov ecx, eax
jmp 0x14020c215
lea rcx, [0x140276428]
call fcn.14020b920
mov ecx, eax
jmp 0x14020c232
lea rcx, [0x140276428]
mov rsi, rax
call fcn.14020b920
mov ecx, eax
mov rax, rsi
jmp 0x14020c274
mov ecx, 8
mov edx, 0x10
call fcn.1401562d0
int3
Function at 0x14020c980
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1402f7ec8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14020c9ea
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14020ca16
test eax, eax
js 0x14020c9f7
mov rdx, qword [rsp + 0x68]
xor eax, eax
jmp 0x14020ca0d
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402f7f30]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14020afc0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.14020b040
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140276400]
test ecx, ecx
je 0x14020d08d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14020d000
cmp qword [rax + 8], 0
je 0x14020d000
add rax, 0x10
jmp 0x14020d087
mov ecx, dword [0x140276400]
test ecx, ecx
je 0x14020d0a0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14020d085
test rax, rax
jne 0x14020d068
movzx eax, byte [0x140373e88]
mov edx, 0x20
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x14020d0c9
lea rcx, [0x1402763e8]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140276400]
test ecx, ecx
je 0x14020d0b3
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x14020d087
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1402763e8]
call fcn.14020b920
mov ecx, eax
jmp 0x14020cfe5
lea rcx, [0x1402763e8]
call fcn.14020b920
mov ecx, eax
jmp 0x14020d010
lea rcx, [0x1402763e8]
mov rsi, rax
call fcn.14020b920
mov ecx, eax
mov rax, rsi
jmp 0x14020d05a
mov ecx, 8
mov edx, 0x20
call fcn.1401562d0
int3
Function at 0x1402112d0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.140229ef0
mov rdi, rdx
test rax, rax
je 0x140211364
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.14020c560
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14022a150
cmp dword [rsp + 0x38], 2
jne 0x140211393
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x1402113df
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14021140b
lea rcx, [rsp + 0x88]
call fcn.14020c560
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x140211469
mov qword [rsp + 0x80], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x1402114e5
mov rbx, qword [rsp + 0x80]
jmp 0x14021146b
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x1402114d4
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x1402114d4
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140211511
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x140211511
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14020c560
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x140211353
Function at 0x14022bb40
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
movabs r13, 0x8000000000000000
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r9
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14020d660
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp r15, r13
jne 0x14022bb9d
mov rbx, rdi
jmp 0x14022bbfe
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, rbx
call fcn.14020d660
mov r12, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
cmp r12, r13
jne 0x14022bbc1
mov rbx, r14
jmp 0x14022bbe8
mov rcx, rdi
mov rdx, r14
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14022bc16
xor ebx, ebx
test r12, r12
je 0x14022bbe8
mov rcx, qword [0x140373e30]
xor edx, edx
mov r8, r14
call fcn.140272814
test r15, r15
je 0x14022bbfe
mov rcx, qword [0x140373e30]
xor edx, edx
mov r8, rdi
call fcn.140272814
test rbx, rbx
jne 0x14022bc2c
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r12, r12
jne 0x14022bbd7
jmp 0x14022bbe8
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [0x14022bd00]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x50], rax
lea rax, [fcn.14022b340]
mov qword [rsp + 0x58], rax
lea rax, [0x1402f6818]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 3
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], 3
lea rdx, [0x1402f6848]
lea rcx, [rsp + 0x80]
call fcn.14015c040
ud2
Function at 0x14022c660
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1402f7ec8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
adc dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
and al, 0x60
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne case.0x14022b360.100
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
invalid
invalid
add al, 0
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14022c6d0
xor edx, edx
xor eax, eax
jmp 0x14022c6fa
invalid
cmp eax, 0x103
je case.0x14022c554.41
test eax, eax
js 0x14022c6e4
mov rdx, qword [rsp + 0x68]
xor eax, eax
jmp 0x14022c6fa
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
retf 0xb802
add dword [rax], eax
add byte [rax], al
invalid
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402f7f30]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
add byte [rax], al
add dword [rax], eax
add byte [rax], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
invalid
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.14020afc0
std
dec dword [rax - 0x77]
and al, 0x78
lea rcx, [rsp + 0x78]
call fcn.14020b040
mov ecx, 7
add byte [rax], al
int 0x29
ud2

Function at 0x14022de20
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
jo 0x14022de71
mov eax, edx

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

Disassembly:
push rsi
sub rsp, 0x40
mov ecx, dword [0x140276460]
test ecx, ecx
je 0x14022fa12
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14022f950
cmp qword [rax + 8], 0
je 0x14022f950
add rax, 0x10
jmp 0x14022fa0c
mov ecx, dword [0x140276460]
test ecx, ecx
je 0x14022fa25
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14022fa0a
test rax, rax
jne 0x14022f9d0
mov qword [rsp + 0x30], 0
lea rax, [0x140276448]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x140373e88]
mov edx, 0x18
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x14022fa51
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rax], xmm0
mov ecx, dword [0x140276460]
test ecx, ecx
je 0x14022fa38
dec ecx
mov rdx, rax
mov rsi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x14022fa0c
test rcx, rcx
je 0x14022fa0c
lock dec qword [rcx]
jne 0x14022fa0c
mov rsi, rax
call fcn.14022fa80
mov rax, rsi
jmp 0x14022fa0c
xor eax, eax
add rsp, 0x40
pop rsi
ret
lea rcx, [0x140276448]
call fcn.14020b920
mov ecx, eax
jmp 0x14022f935
lea rcx, [0x140276448]
call fcn.14020b920
mov ecx, eax
jmp 0x14022f960
lea rcx, [0x140276448]
mov rsi, rax
call fcn.14020b920
mov ecx, eax
mov rax, rsi
jmp 0x14022f9c2
mov ecx, 8
mov edx, 0x18
call fcn.1401562d0
ud2
Function at 0x1402303a0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x2e], ax
mov rax, qword [0x140373e38]
cmp rax, 3
jne 0x14023054f
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x38], rax
cmp rdi, 0x17f
ja 0x14023055f
lea rbx, [rsp + 0x70]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0x70], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x140230428
xor edx, edx
nop dword [rax]
cmp byte [rsp + rdx + 0x70], 0
je 0x1402304c4
inc rdx
cmp rax, rdx
jne 0x140230410
jmp 0x14023051e
lea rcx, [rsp + 0x77]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x14023045a
xor edx, edx
nop dword [rax + rax]
cmp byte [rsp + rdx + 0x70], 0
je 0x1402304c4
inc rdx
cmp rcx, rdx
jne 0x140230440
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x14023045e
jmp 0x14023049e
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x14027e300]
movabs r8, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rcx + 0x70]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x14023049e
add rcx, 0x10
cmp rcx, rdx
jbe 0x140230470
sub rax, rcx
je 0x14023051e
lea r8, [rsp + rcx]
add r8, 0x70
xor edx, edx
nop dword [rax]
cmp byte [r8 + rdx], 0
je 0x1402304c1
inc rdx
cmp rax, rdx
jne 0x1402304b0
jmp 0x14023051e
add rdx, rcx
cmp rdx, rdi
jne 0x14023051e
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x30]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140230532
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140230546
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14023056f
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x2e]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x14023056f
mov rbx, rdx
call fcn.140230a50
mov rdx, rbx
jmp 0x1402303d1
lea r9, [rsp + 0x38]
mov rcx, rsi
mov r8, rdi
call fcn.140230ab0
nop
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140230ab0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401564e0
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140230b39
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140230b6f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140230b84
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x140230ba4
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x140373e30]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140272814
mov rcx, qword [rbx]
mov rax, qword [rsp + 0x28]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x140230ba4
mov rcx, qword [0x140373e30]
xor edx, edx
mov r8, rdi
call fcn.140272814
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140231260
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x140373e88]
mov edx, 0x10
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x140231329
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1402313a0]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14023131c
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rdi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1402312f7
cmp qword [r14 + 0x10], 0x11
jb 0x1402312e6
mov rdi, qword [rdi - 8]
mov rcx, qword [0x140373e30]
xor edx, edx
mov r8, rdi
call fcn.140272814
mov rcx, qword [0x140373e30]
xor edx, edx
mov r8, rsi
call fcn.140272814
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1401562d0
ud2
Function at 0x140236f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x140276480]
test ecx, ecx
je 0x14023703c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140236f9b
cmp qword [rax + 8], 0
jne 0x14023702e
mov ecx, dword [0x140276480]
test ecx, ecx
je 0x14023704f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140237034
mov rsi, rax
test rax, rax
jne 0x140237003
movzx eax, byte [0x140373e88]
mov edx, 0x20
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x140237078
lea rcx, [0x140276468]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140276480]
test ecx, ecx
je 0x140237062
dec ecx
mov rsi, rax
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm0, xmmword [rsp + 0x20]
mov rax, rsi
mov qword [rsi + 8], 1
movups xmmword [rsi + 0x10], xmm0
add rax, 0x10
jmp 0x140237036
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, [0x140276468]
call fcn.14020b920
mov ecx, eax
jmp 0x140236f85
lea rcx, [0x140276468]
call fcn.14020b920
mov ecx, eax
jmp 0x140236fab
lea rcx, [0x140276468]
mov rsi, rax
call fcn.14020b920
mov ecx, eax
mov rax, rsi
jmp 0x140236ff8
mov ecx, 8
mov edx, 0x20
call fcn.1401562d0
int3
Function at 0x140239b55
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140239b8b
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140239b93
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140239b98
xor r10d, r10d
jmp 0x140239c46
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140239bbb
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140239bd2
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140239bf2
add r11, r8
jmp 0x140239d17
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140239cba
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140239c68
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140239ccc
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x140239cd2
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140239cf9
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140239d13
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140239d1f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xd0
mov rsi, rcx
mov ecx, dword [0x1402764a8]
test ecx, ecx
je 0x140239e5a
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140239d5a
mov rbx, rax
cmp qword [rax + 8], 0
je 0x140239d5a
add rbx, 0x10
jmp 0x140239e4c
mov ecx, dword [0x1402764a8]
test ecx, ecx
je 0x140239e6d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140239dea
mov rbx, rax
test rax, rax
jne 0x140239dc5
mov al, byte [0x140373e88]
mov edx, 0x60
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x140239e93
mov rbx, rax
lea rax, [0x140276490]
mov qword [rbx], rax
mov qword [rbx + 8], 0
mov ecx, dword [0x1402764a8]
test ecx, ecx
je 0x140239e80
dec ecx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
lea rax, [rbx + 8]
test rsi, rsi
je 0x140239dee
lea rcx, [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
lea rsi, [0x1402f9cc8]
cmovne rsi, rcx
jmp 0x140239df5
xor ebx, ebx
jmp 0x140239e4c
lea rsi, [0x1402f9cc8]
lea rdx, [rsp + 0x80]
mov ecx, 0xa
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
lea r8, [rsp + 0x28]
mov ecx, 0xb
mov rdi, r8
mov rsi, rax
rep movsq qword [rdi], qword [rsi]
mov qword [rbx + 8], 1
add rbx, 0x10
mov ecx, 0xa
mov rdi, rbx
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
cmp qword [r8], 0
je 0x140239e4c
cmp dword [rsp + 0x38], 2
je 0x140239e4c
lea rcx, [rsp + 0x38]
call fcn.14002a382
mov rax, rbx
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140276490]
call fcn.14020b920
mov ecx, eax
jmp 0x140239d3c
lea rcx, [0x140276490]
call fcn.14020b920
mov ecx, eax
jmp 0x140239d6a
lea rcx, [0x140276490]
call fcn.14020b920
mov ecx, eax
jmp 0x140239dbd
mov ecx, 8
mov edx, 0x60
call fcn.1401562d0
int3

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1402764c8]
test ecx, ecx
je 0x14023a158
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14023a0c2
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14023a0c2
add rdi, 8
jmp 0x14023a14e
mov ecx, dword [0x1402764c8]
test ecx, ecx
je 0x14023a16b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14023a14c
mov rsi, rax
test rax, rax
jne 0x14023a129
mov al, byte [0x140373e88]
mov edx, 0x10
xor ecx, ecx
call fcn.140231a60
test rax, rax
je 0x14023a18e
mov rsi, rax
lea rax, [0x1402764b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402764c8]
test ecx, ecx
je 0x14023a17e
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 8]
call fcn.14023a047
mov rcx, qword [rsi + 8]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x14023a14e
lock dec qword [rcx]
jne 0x14023a14e
call fcn.14019822d
jmp 0x14023a14e
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402764b0]
call fcn.14020b920
mov ecx, eax
jmp 0x14023a0a4
lea rcx, [0x1402764b0]
call fcn.14020b920
mov ecx, eax
jmp 0x14023a0d2
lea rcx, [0x1402764b0]
call fcn.14020b920
mov ecx, eax
jmp 0x14023a121
mov ecx, 8
mov edx, 0x10
call fcn.1401562d0
int3