joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097a20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 8]
mov rbx, rcx
mov rax, qword [rcx + 0x50]
mov rsi, r9
mov byte [r8 + rbx], 0x80
lea rdx, [rax + r8*8]
rol rdx, 0x20
mov rdi, rdx
mov rax, rdx
shl rax, 0x10
shr rdi, 0x10
xor rdi, rax
shl rdx, 0x10
movabs rax, 0xffff0000ffff
and rdi, rax
xor rdi, rdx
mov rcx, rdi
mov rax, rdi
shr rcx, 8
shl rax, 8
xor rcx, rax
shl rdi, 8
movabs rax, 0xff00ff00ff00ff
and rcx, rax
xor rcx, rdi
inc r8
mov qword [rsp + 0x30], rcx
cmp r8, 8
jae 0x140097ab2
mov ecx, 8
lea rdi, [r8 + rbx]
sub rcx, r8
xor eax, eax
rep stosb byte [rdi], al
mov r8d, 1
mov rdx, rbx
mov rcx, rbx
call fcn.14008eec0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140091f60
xor eax, eax
lea r8, [rbx + 0x10]
nop word [rax + rax]
mov edi, dword [r8]
lea r8, [r8 + 4]
rol edi, 0x10
mov edx, edi
mov ecx, edi
shr edx, 8
shl ecx, 8
xor edx, ecx
shl edi, 8
and edx, 0xff00ff
xor edx, edi
mov dword [rsi + rax*4], edx
inc rax
cmp rax, 0x10
jb 0x140097ae0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400997d0
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov ecx, dword [rcx + 0x80]
and ecx, 0x3f
mov byte [rcx + rbx], 0x80
inc ecx
cmp ecx, 0x20
jbe 0x14009981f
mov r8d, 0x40
sub r8d, ecx
add rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.140097bf0
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
jmp 0x140099830
mov r8d, reloc.WLDAP32.dll_Ordinal_32
sub r8d, ecx
add rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
movabs r10, 0xffff0000ffff
mov qword [rbx + 0x20], rax
movabs r9, 0xff00ff00ff00ff
mov qword [rbx + 0x28], rax
mov r8, qword [rbx + 0x80]
mov rcx, r8
shr rcx, 0x3d
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shr rcx, 8
shl rdx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
mov qword [rbx + 0x30], rcx
lea rcx, [r8*8]
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shr rcx, 8
shl rdx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x38], rcx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140097bf0
Function at 0x140099a60
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov ecx, dword [rcx + 0x80]
and ecx, 0x3f
mov byte [rcx + rbx], 0x80
inc ecx
cmp ecx, 0x20
jbe 0x140099aaf
mov r8d, 0x40
sub r8d, ecx
add rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.140098930
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
jmp 0x140099ac0
mov r8d, reloc.WLDAP32.dll_Ordinal_32
sub r8d, ecx
add rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
movabs r10, 0xffff0000ffff
mov qword [rbx + 0x20], rax
movabs r9, 0xff00ff00ff00ff
mov qword [rbx + 0x28], rax
mov r8, qword [rbx + 0x80]
mov rcx, r8
shr rcx, 0x3d
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shr rcx, 8
shl rdx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
mov qword [rbx + 0x30], rcx
lea rcx, [r8*8]
rol rcx, 0x20
mov rdx, rcx
mov rax, rcx
shl rcx, 0x10
shr rdx, 0x10
shl rax, 0x10
xor rdx, rax
and rdx, r10
xor rdx, rcx
mov rcx, rdx
mov rax, rdx
shr rcx, 8
shl rdx, 8
shl rax, 8
xor rcx, rax
and rcx, r9
xor rcx, rdx
lea rdx, [rbx + 0x40]
mov qword [rbx + 0x38], rcx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140098930
Function at 0x14009f220
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x30]
call sub.cudart64_91.dll_cudaDriverGetVersion
test eax, eax
jne 0x14009f263
cmp dword [rsp + 0x30], 0x2332
jl 0x14009f27c
lea rcx, [rsp + 0x38]
call sub.cudart64_91.dll_cudaGetDeviceCount
test eax, eax
je 0x14009f25a
xor ecx, ecx
lea rdx, str.No_CUDA_device_found_
cmp eax, 0x26
jne 0x14009f2a6
jmp 0x14009f29f
mov eax, dword [rsp + 0x38]
add rsp, 0x28
ret
lea rdx, str.Unable_to_query_CUDA_driver_version__Is_an_nVidia_driver_installed_
xor ecx, ecx
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
mov r9d, 1
lea rdx, str.Driver_does_not_support_CUDA__d._d_API__Update_your_nVidia_driver_
xor ecx, ecx
lea r8d, [r9 + 8]
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
lea rdx, str.Unable_to_query_number_of_CUDA_devices_
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x14009f4a0
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbp
push rdi
sub rsp, 0x2f0
mov rax, qword [0x1401858e0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
xor ebp, ebp
cmp dword [0x1401962fc], ebp
mov edi, ebp
jle 0x14009f65d
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
lea rsi, [0x140196820]
mov qword [r11 + 0x18], r14
lea r14, [0x140196640]
nop dword [rax + rax]
movsxd rbx, dword [rsi]
lea rcx, [rsp + 0x20]
xor eax, eax
mov byte [rsp + 0x2c0], bpl
mov edx, ebx
mov qword [rsp + 0x2c1], rax
mov qword [rsp + 0x2c9], rax
mov qword [rsp + 0x2d1], rax
mov dword [rsp + 0x2d9], eax
mov word [rsp + 0x2dd], ax
mov byte [rsp + 0x2df], al
call sub.cudart64_91.dll_cudaGetDeviceProperties
test eax, eax
jne 0x14009f67e
mov rcx, qword [r14 + rbx*8]
lea rbx, [r14 + rbx*8]
test rcx, rcx
je 0x14009f554
call fcn.140115e1e
mov qword [rbx], rbp
movzx ecx, byte [rsp + 0x248]
lea rdx, [rsp + 0x2c0]
call fcn.14003f580
test eax, eax
jle 0x14009f626
lea rcx, [rsp + 0x2c0]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x14009f580
test rax, rax
je 0x14009f626
lea rdx, [rsp + 0x20]
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rdx + rcx], bpl
jne 0x14009f5a0
lea rdx, [rax + 2]
add rdx, rcx
mov ecx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rbx], rax
test rax, rax
jne 0x14009f5da
lea rdx, [0x1401193f8]
xor ecx, ecx
call fcn.140033bd0
mov ecx, 1
call fcn.1400293d0
mov r8d, 8
lea rdx, str.GeForce
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
mov rcx, qword [rbx]
lea r8, [rsp + 0x2c0]
test eax, eax
jne 0x14009f613
lea r9, [rsp + 0x28]
lea rdx, [0x140119414]
call fcn.140029290
jmp 0x14009f633
lea r9, [rsp + 0x20]
lea rdx, [0x14011941c]
call fcn.140029290
jmp 0x14009f633
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov qword [rbx], rax
inc edi
add rsi, 4
cmp edi, dword [0x1401962fc]
jl 0x14009f4f0
mov rsi, qword [rsp + 0x308]
mov rbx, qword [rsp + 0x300]
mov r14, qword [rsp + 0x310]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1401150e0
mov rbp, qword [rsp + 0x318]
add rsp, 0x2f0
pop rdi
ret
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov r8, rax
lea rdx, [0x140119364]
xor ecx, ecx
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x14009f6b0
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x2d0
mov rax, qword [0x1401858e0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor esi, esi
cmp dword [0x1401962fc], esi
jle 0x14009f756
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
lea rdi, [0x140196820]
mov qword [r11 + 0x18], r14
lea r14, [0x140196180]
movsxd rbx, dword [rdi]
mov ecx, ebx
call sub.cudart64_91.dll_cudaSetDevice
test eax, eax
jne 0x14009f792
mov edx, ebx
lea rcx, [rsp + 0x20]
call sub.cudart64_91.dll_cudaGetDeviceProperties
test eax, eax
jne 0x14009f76f
mov eax, dword [rsp + 0x168]
inc esi
add rdi, 4
lea ecx, [rax + rax*4]
mov eax, dword [rsp + 0x16c]
lea ecx, [rax + rcx*2]
lea edx, [rcx + rcx*4]
add edx, edx
cmp esi, dword [0x1401962fc]
mov dword [r14 + rbx*4], edx
jl 0x14009f6f1
mov rdi, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2e0]
mov r14, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1401150e0
add rsp, 0x2d0
pop rsi
ret
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov r8, rax
lea rdx, [0x140119424]
xor ecx, ecx
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov r8, rax
lea rdx, [0x1401193b4]
xor ecx, ecx
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x14009f7c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x2e0
mov rax, qword [0x1401858e0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
call fcn.14009f220
mov ecx, reloc.WS2_32.dll_recv
cmp eax, ecx
cmovl ecx, eax
xor ebx, ebx
movsxd rsi, ecx
test ecx, ecx
jle 0x14009f88a
mov qword [rsp + 0x2f0], rdi
mov qword [rsp + 0x2f8], r14
lea r14, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov edi, dword [r14 + rbx*4 + 0x196820]
lea rcx, [rsp + 0x30]
mov edx, edi
call sub.cudart64_91.dll_cudaGetDeviceProperties
test eax, eax
jne 0x14009f8ab
lea ecx, [rax + 2]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9d, dword [rsp + 0x178]
lea rdx, str.GPU__d:_SM__d._d__s_n
mov rcx, rax
mov r8d, edi
mov rax, qword [r14 + rbx*8 + 0x196640]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x17c]
mov dword [rsp + 0x20], eax
call fcn.140027ea0
inc rbx
cmp rbx, rsi
jl 0x14009f820
mov rdi, qword [rsp + 0x2f0]
mov r14, qword [rsp + 0x2f8]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1401150e0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2e0
pop rsi
ret
mov ecx, eax
call sub.cudart64_91.dll_cudaGetErrorString
mov r8, rax
lea rdx, [0x140119428]
xor ecx, ecx
call fcn.140033bd0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400b0420
Capabilities:
Hash data using sha512

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov qword [0x14018b4e8], rcx
mov qword [rax - 0x10], rdi
lea r9, [0x14011f0e0]
mov qword [rax - 0x18], rdi
lea r8, str._Z25pentablake_gpu_check_hashjjPjS_
mov qword [rax - 0x20], rdi
lea rdx, [0x1400afe60]
mov qword [rax - 0x28], rdi
mov rbx, rcx
mov qword [rax - 0x30], rdi
mov dword [rax - 0x38], 0xffffffff
mov qword [0x14018ae98], rcx
call sub.cudart64_91.dll___cudaRegisterFunction
mov qword [rsp + 0x48], rdi
lea r9, [0x14011f130]
mov qword [rsp + 0x40], rdi
lea r8, str._Z22pentablake_gpu_hash_64jjPy
mov qword [rsp + 0x38], rdi
lea rdx, [fcn.1400afd30]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0xffffffff
call sub.cudart64_91.dll___cudaRegisterFunction
mov qword [rsp + 0x48], rdi
lea r9, [0x14011f170]
mov qword [rsp + 0x40], rdi
lea r8, str._Z22pentablake_gpu_hash_80jjPv
mov qword [rsp + 0x38], rdi
lea rdx, [fcn.1400afc00]
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0xffffffff
call sub.cudart64_91.dll___cudaRegisterFunction
mov dword [rsp + 0x38], edi
lea r9, [0x14011f1b0]
mov dword [rsp + 0x30], 1
lea r8, [0x14011f1c8]
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rdx, [0x14018aea0]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call sub.cudart64_91.dll___cudaRegisterVar
mov dword [rsp + 0x38], edi
lea r9, [0x14011f1bc]
mov dword [rsp + 0x30], 1
lea r8, str.c_data
mov qword [rsp + 0x28], 0x100
lea rdx, [0x14018aec0]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call sub.cudart64_91.dll___cudaRegisterVar
mov dword [rsp + 0x38], edi
lea r9, [0x14011f1e0]
mov dword [rsp + 0x30], 1
lea r8, [0x14011f1e8]
mov qword [rsp + 0x28], 0x400
lea rdx, [0x14018b0c0]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call sub.cudart64_91.dll___cudaRegisterVar
mov dword [rsp + 0x38], edi
lea r9, [0x14011f1f0]
mov dword [rsp + 0x30], 1
lea r8, str.c_IV512
mov qword [rsp + 0x28], 0x40
lea rdx, [0x14011efe0]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call sub.cudart64_91.dll___cudaRegisterVar
mov dword [rsp + 0x38], edi
lea r9, [0x14011f200]
mov dword [rsp + 0x30], 1
lea r8, [0x14011f208]
mov qword [rsp + 0x28], 0x80
lea rdx, [0x14011f020]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call sub.cudart64_91.dll___cudaRegisterVar
mov dword [rsp + 0x38], edi
lea r9, [0x14011f210]
mov dword [rsp + 0x30], 1
lea r8, str.d_constHashPadding
mov qword [rsp + 0x28], 0x40
lea rdx, [0x14011f0a0]
mov rcx, rbx
mov dword [rsp + 0x20], edi
call sub.cudart64_91.dll___cudaRegisterVar
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c9ac0
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
jmp 0x1400cbfb0
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15, r8
mov r14, rdx
mov rbx, rcx
mov dword [rsp + 0x70], ebp
test rcx, rcx
je 0x1400cc0f4
mov rax, qword [rcx]
test rax, rax
je 0x1400cc0f4
cmp rax, 0xffffffffffffffff
jne 0x1400cbff8
call fcn.1400cbe80
mov dword [rsp + 0x70], eax
test eax, 0xffffffef
jne 0x1400cc02f
mov qword [rsp + 0x80], rdi
mov rdi, qword [rbx]
lea rcx, [rdi + 0x18]
call fcn.1400cd970
test eax, eax
jne 0x1400cc01f
inc dword [rdi]
lea rcx, [rdi + 0x18]
call fcn.1400cd6b0
test eax, eax
je 0x1400cc041
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [rax]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
mov rsi, qword [0x1401945d0]
mov qword [rsp + 0x30], rax
lea rax, [0x1400cc250]
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x1400cc09e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x1401945d0]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x48], rbp
call fcn.1400cae50
mov rcx, r14
call fcn.1400cabc0
mov rsi, qword [rsp + 0x78]
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1400cc0e1
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.1400cd830
test eax, eax
je 0x1400cc0e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x70], ecx
mov ecx, 1
call fcn.1400cc6c0
mov eax, dword [rsp + 0x70]
jmp 0x1400cc027
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x1400c9ad0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
xor eax, eax
movaps xmmword [rsp + 0x70], xmm6
mov r14, r9
mov r12, r8
mov r13, rcx
mov ebx, reloc.WS2_32.dll_inet_addr
mov esi, eax
mov dword [rcx + 8], eax
test rdx, rdx
je 0x1400c9b0d
mov rdi, qword [rdx]
jmp 0x1400c9b10
mov rdi, rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0xb0], r15
call fcn.1400cc5d0
movups xmm6, xmmword [rax]
movq rbp, xmm6
test rbp, rbp
je 0x1400c9c0d
mov r15d, dword [rbp + 0x188]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400c9c0d
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r14
movups xmmword [rax], xmm6
test rdi, rdi
je 0x1400c9c05
mov eax, dword [rdi + 0x18]
mov r14d, dword [rdi + 0x10]
mov dword [rbp + 0x184], eax
cmp dword [rdi + 0x20], 0
mov r15d, dword [rdi + 0x1c]
jne 0x1400c9b90
lea rcx, [rsp + 0x60]
call fcn.1400cad10
mov rax, qword [rax]
mov r15d, dword [rax + 0x188]
xor r12d, r12d
lea rax, [rbp + 0x198]
lea r8, [0x1400cd110]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov edx, r14d
xor ecx, ecx
mov dword [rbp + 0x28], r12d
mov qword [rbp + 0x58], r12
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov r14, rax
mov qword [rbp + 8], rax
test rax, rax
je 0x1400c9bf3
test rdi, rdi
je 0x1400c9bea
lea rcx, [rsp + 0x30]
mov r8d, r15d
xor edx, edx
movdqa xmmword [rsp + 0x30], xmm6
call fcn.1400ccbe0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test r14, r14
cmovne ebx, r12d
test ebx, ebx
jne 0x1400c9c0d
movups xmmword [r13], xmm6
jmp 0x1400c9c2b
xor r12d, r12d
mov r14d, r12d
jmp 0x1400c9b93
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.1400ccd90
test rsi, rsi
je 0x1400c9c2b
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r15, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x70]
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400cad10
Capabilities:
Get 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, 0x70
mov rdi, qword [0x1401945c8]
xor r15d, r15d
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
test rdi, rdi
je 0x1400cad72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400cad72
movups xmm6, xmmword [rdi + 0x10]
jmp 0x1400cae24
lea rcx, [rsp + 0x50]
call fcn.1400cc5d0
movups xmm6, xmmword [rax]
movq rbp, xmm6
test rbp, rbp
je 0x1400cae24
or dword [rbp + 0x194], 1
mov dword [rbp + 0x184], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbp + 0x198], eax
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]
mov dword [rsp + 0x30], 2
lea r9, [rbp + 8]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400cae05
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm6
call fcn.1400ccfb0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
jmp 0x1400cae27
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbp
mov dword [rbp + 0x188], eax
mov rcx, qword [0x1401945c8]
call fcn.1400cae50
movups xmmword [rsi], xmm6
movaps xmm6, xmmword [rsp + 0x60]
lea r11, [rsp + 0x70]
mov rax, rsi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400cae50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, qword [0x1401945c8]
mov r14, rdx
mov rdi, rcx
cmp rcx, rsi
je 0x1400cae92
lea rcx, [rbp - 0x50]
call fcn.1400cad10
mov rbx, qword [rax]
test rbx, rbx
jne 0x1400caece
mov eax, 2
jmp 0x1400caff9
test rsi, rsi
je 0x1400caebd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x1400caebd
movups xmm0, xmmword [rsi + 0x10]
jmp 0x1400caec6
test r14, r14
je 0x1400cae88
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x50], xmm0
mov rbx, qword [rbp - 0x50]
mov qword [rsp + 0x90], r15
xor r15d, r15d
mov esi, r15d
test rdi, rdi
je 0x1400cafef
test rbx, rbx
je 0x1400cafda
cmp qword [rdi + 8], rsi
je 0x1400cafda
test r14, r14
je 0x1400cafda
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.1400cc380
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x40]
call fcn.1400cc380
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x1400caf33
cmp qword [rax + 8], rdi
je 0x1400caf40
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400caf24
mov rdx, rdi
mov rcx, rbx
call fcn.1400cd3d0
mov esi, eax
mov rdx, qword [rbp - 0x40]
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
or rbx, 0xffffffffffffffff
test rcx, rcx
jne 0x1400caf7a
lea rax, [rbp - 0x40]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x40]
cmp rcx, rax
je 0x1400caf8d
lea rcx, [rbp - 0x28]
call fcn.1400cc320
mov rcx, r15
lock xadd qword [rbp - 0x38], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x1400caf8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdx, qword [rbp - 0x20]
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x1400cafc3
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], r15
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x1400cafd6
lea rcx, [rbp - 8]
call fcn.1400cc320
mov rcx, r15
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], rbx
je 0x1400cafd6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x1400cafef
mov ecx, dword [rdi]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, reloc.WS2_32.dll_inet_addr
test eax, eax
cmove esi, ecx
mov r15, qword [rsp + 0x90]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400cb3b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
cmp dword [0x1401945c0], 0
je 0x1400cb5d8
mov qword [rsp + 0x80], rdi
mov rdi, qword [0x1401945c8]
test rdi, rdi
je 0x1400cb5c5
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400cb5ad
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], r14
movaps xmmword [rbp - 0x40], xmm0
call fcn.1400cb660
xor esi, esi
lea rcx, [rdi + 0x38]
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rsi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rcx
xchg qword [rcx], rdx
or r14, 0xffffffffffffffff
test rdx, rdx
je 0x1400cb4a6
lea rax, [rbp - 0x20]
mov qword [rdx + 8], rax
xor eax, eax
lock cmpxchg qword [rdx + 0x18], r14
je 0x1400cb466
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, rsi
lock xadd qword [rbp - 0x10], rax
test rax, rax
jne 0x1400cb4a6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
xor eax, eax
lock cmpxchg qword [rbp - 0x10], rbx
jne 0x1400cb49d
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x20]
mov dword [rdi + 0x28], 6
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
test rcx, rcx
jne 0x1400cb4e3
lea rax, [rbp - 0x20]
lock cmpxchg qword [rdx], rsi
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x1400cb4f6
lea rcx, [rbp - 8]
call fcn.1400cc320
mov rcx, rsi
lock xadd qword [rbp - 0x18], rcx
xor eax, eax
lock cmpxchg qword [rcx + 0x10], r14
je 0x1400cb4f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
mov rsi, qword [rsp + 0x78]
je 0x1400cb57a
nop word [rax + rax]
mov rax, qword [rdi + 0x178]
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov r8, qword [rcx + 0x10]
mov qword [rcx + 0x10], rdi
mov r9, qword [rdx + 0x18]
test r9, r9
je 0x1400cb537
mov rax, qword [rdx + 0x10]
mov qword [r9 + 0x10], rax
mov r9, qword [rdx + 0x10]
test r9, r9
je 0x1400cb548
mov rax, qword [rdx + 0x18]
mov qword [r9 + 0x18], rax
cmp qword [r8 + 0x178], rdx
jne 0x1400cb55c
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x178], rax
mov rdx, qword [rcx + 0x28]
mov eax, r14d
xchg dword [rdx + 8], eax
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
jne 0x1400cb510
cmp dword [rdi + 0x184], 1
mov r14, qword [rsp + 0x88]
jne 0x1400cb5ad
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rbp - 0x30]
movaps xmmword [rbp - 0x30], xmm0
call fcn.1400ccd90
mov rax, qword [0x1401945c8]
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov eax, 1
add rsp, 0x60
pop rbp
ret
mov eax, 1
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
mov eax, 1
add rsp, 0x60
pop rbp
ret