joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008d6e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rdi, rdx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
mov rbx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x10]
call qword [rax + 0x18]
mov rdx, rax
lea r8, [rsp + 0x28]
lea rcx, [rbp - 0x48]
call qword [rbx + 0x40]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14002f100
mov dword [rsp + 0x24], 4
lea rcx, [rbp - 0x48]
mov rax, qword [rbp - 0x38]
call qword [rax]
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x18]
call fcn.14002f100
mov rsi, rax
mov dword [rsp + 0x24], 3
lea rcx, [rbp - 0x78]
mov rdx, qword [rbp - 0x68]
call qword [rdx]
nop
mov rcx, qword [rsi + 0x20]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14008d79c
lea rcx, [0x14008d910]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdi
lea rdx, [rsp + 0x60]
mov rcx, rsi
call rax
jmp 0x14008d8b1
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
movups xmm0, xmmword [rdi + 0x18]
movups xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov ecx, dword [0x1406782b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008d7f2
mov rdx, qword [rax + 8]
jmp 0x14008d7f5
mov rdx, r14
mov r8d, 0x38
call fcn.140030d80
mov qword [rbp - 0x80], r14
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x18], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
lea rcx, [0x14008d930]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x78], r14
lea rcx, [rsp + 0x70]
call fcn.140037ef0
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14008d88f
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008d88f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008d88f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rax, qword [rsi + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14008d8b1
xor edx, edx
mov rcx, rax
call qword [rax]
nop
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 8]
call qword [rax]
nop
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1402bf7f0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140094b30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 2
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140094be7
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140094ba8
nop
cmp dword [rsp + 0x28], edi
je 0x140094ba8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140094b90
mov edi, dword [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140094bde
mov rcx, rbx
cmp dword [rsp + 0x28], edi
je 0x140094c0e
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140094bc6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402bf7f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x4c]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140094c20
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call fcn.14005c800
mov al, 1
jmp 0x140094be9
Function at 0x14018a740
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14018a803
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14018a774
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14018a806
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14018a7bf
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14018a7c3
test rax, rax
je 0x14018a803
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x14018a7f4
cmp rdx, rax
jb 0x14018a7e0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14018b0a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x14066adb0]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x14018b0e9
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.14018bcf0
mov qword [0x14066adb0], rax
test rax, rax
je 0x14018b1c6
cmp qword [0x14066adb8], rsi
jne 0x14018b119
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14066adb8], rax
test rax, rax
je 0x14018b1c6
mov rax, qword [0x14066adb0]
cmp qword [0x14066adc0], rsi
jne 0x14018b149
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14066adc0], rax
test rax, rax
je 0x14018b1c6
mov rax, qword [0x14066adb0]
cmp qword [0x14066add0], rsi
jne 0x14018b175
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14066add0], rax
test rax, rax
je 0x14018b1c6
mov rax, qword [0x14066adb0]
cmp qword [0x14066adc8], rsi
jne 0x14018b1a1
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14066adc8], rax
test rax, rax
je 0x14018b1c6
mov rax, qword [0x14066adb0]
cmp qword [0x14066a848], rsi
jne 0x14018b1cd
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14066a848], rax
test rax, rax
jne 0x14018b1cd
xor eax, eax
jmp 0x14018b26d
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x14066adb8]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14018b266
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x14066adc0]
test eax, eax
je 0x14018b25d
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.14018b630
cmp eax, 1
je 0x14018b283
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x14066adc0]
test eax, eax
jne 0x14018b220
mov rcx, rdi
call qword [0x14066a848]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x14018b268
Function at 0x14018c6b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14018c8d5
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x14018c6d6
test rax, rax
je 0x14018c714
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14018c8d5
cmp r8w, 0x2f
je 0x14018c8d5
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14018c6f0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14018c8f0
mov rsi, rax
test rax, rax
je 0x14018c805
mov qword [rsp + 0x50], r14
call fcn.14018d080
mov r14, rax
test rax, rax
je 0x14018c7f2
mov rcx, rsi
call fcn.14018a5a0
test eax, eax
je 0x14018c7db
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14018c787
mov r8, rbx
mov rcx, rsi
call fcn.1402ddd94
test eax, eax
je 0x14018c7af
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14018c780
jmp 0x14018c7be
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14018bf40
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14018c7e9
mov rcx, rsi
call fcn.14018a540
test eax, eax
je 0x14018c7e9
mov rbp, rsi
xor esi, esi
jmp 0x14018c7e9
mov rdx, rsi
mov rcx, r14
call fcn.14018bf40
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14018c8a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14018c8aa
mov rcx, rbx
call fcn.14018a420
mov rdi, rax
test rax, rax
je 0x14018c8aa
mov ecx, 0x37e4
call fcn.14018bad0
test eax, eax
je 0x14018c83f
xor ecx, ecx
call fcn.14018cdc0
jmp 0x14018c844
call fcn.14018d080
mov rbx, rax
test rax, rax
je 0x14018c898
mov rdx, rdi
mov rcx, rax
call fcn.14018bf40
mov rbp, rax
test rax, rax
je 0x14018c88f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14018c871
test al, 0x50
je 0x14018c88f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14018c884
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14018c8aa
xor ecx, ecx
jmp 0x14018c8b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14018c8bd
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x14018d080
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14018d0e2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14018d0d7
cmp edi, eax
jb 0x14018d0d7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401c4c50
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x1401c4d43
lea r9, [rdx + 1]
lea r11, [0x14033b8a0]
cmp r8d, 3
jl 0x1401c4ccb
movzx eax, byte [r9]
movzx edx, byte [r9 - 1]
shl rdx, 8
or rdx, rax
movzx eax, byte [r9 + 1]
shl rdx, 8
or rdx, rax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
mov rax, rdx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
add rcx, 3
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx], al
jmp 0x1401c4d24
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x1401c4ce2
movzx eax, byte [r9]
shl eax, 8
or edx, eax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
cmp r8d, 1
jne 0x1401c4d0e
lea eax, [r8 + 0x3c]
jmp 0x1401c4d1a
shr rdx, 6
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx + 2], al
add rcx, 3
mov byte [rcx], 0x3d
add r10d, 4
add r9, 3
sub r8d, 3
inc rcx
test r8d, r8d
jg 0x1401c4c67
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret
Function at 0x14029abe0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
je 0x14029ac00
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14029ac1a
call fcn.14029b7e0
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
jne 0x14029ac14
xor eax, eax
jmp 0x14029ac1a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14029a2c0
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14029b120
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
je 0x14029b183
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14029b183
mov rcx, qword [rax + 0x28]
mov rdx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14029b168
cmp qword [rax + 0x20], rbx
jae 0x14029b15c
mov rax, qword [rax + 0x10]
jmp 0x14029b162
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14029b150
cmp byte [rdx + 0x19], 0
jne 0x14029b183
cmp rbx, qword [rdx + 0x20]
jb 0x14029b183
cmp rdx, rcx
je 0x14029b183
lea rax, [rdx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14029b7e0
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14029a260
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x14029ae70]
lea rcx, [0x14066e8b8]
call fcn.14029ac40
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
je 0x14029b81b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret

Function at 0x14029bc20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14029bc48
mov qword [rdi], 0
mov rax, rdi
add rsp, 0x20
pop rdi
ret
cmp qword [rsp + 0x40], 0
jle 0x14029bc38
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14029bc7c
inc ebx
cmp ebx, 3
ja 0x14029bcb2
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14029bc66
mov rbx, qword [rsp + 0x30]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x38]
xorps xmm0, xmm0
mulsd xmm1, qword [0x1405b2f90]
cvtsi2sd xmm0, qword [rsp + 0x40]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov qword [rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x14029bd90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
jne 0x14029bdae
xor esi, esi
jmp 0x14029bdb7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x14029bead
mov rax, qword [rsi + 0x30]
nop dword [rax]
test rax, rax
jne 0x14029bde0
cmp qword [rsi + 0x18], 0
je 0x14029be86
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x14029be48
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14029be27
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x14029bdf0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x14029bdd5
nop dword [rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14029be6c
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14029be6c
call qword [rbx + reloc.Cabinet.dll_CreateDecompressor]
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.14029a710
cmp qword [rsi + 0x30], 0
jne 0x14029be50
xor eax, eax
jmp 0x14029bdd0
lea rdx, [0x14029ae70]
lea rcx, [0x14066e8b8]
call fcn.14029ac40
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
je 0x14029bead
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x14029bee0
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14029bee0
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14029bef0
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, 0x70
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
call fcn.14029b120
mov rbx, rax
test rax, rax
je 0x14029bfbe
cmp byte [rsp + 0xa0], 0
je 0x14029bf45
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14029bf45
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14029bf45
call qword [rax]
test rbp, rbp
jne 0x14029bfae
test rsi, rsi
jne 0x14029bfae
mov qword [rsp + 0x20], rdi
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
je 0x14029bf6d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14029bf9b
call fcn.14029b7e0
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
jne 0x14029bf92
xor ebx, ebx
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x20]
call fcn.14029aef0
jmp 0x14029c0cb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
lea rcx, [rbx + 0x28]
lea rdx, [rsp + 0x20]
call fcn.14029aef0
jmp 0x14029c0cb
mov qword [rbx], r14
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rsi
jmp 0x14029c0cb
test rbp, rbp
jne 0x14029bfcc
test rsi, rsi
je 0x14029c0cb
xor ebx, ebx
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
je 0x14029bfe4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14029bfff
call fcn.14029b7e0
mov ecx, dword [0x14061d950]
cmp ecx, 0xffffffff
jne 0x14029bff9
mov rax, rbx
jmp 0x14029bfff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
lea rsi, [rax + 0x28]
mov rbp, qword [rsi]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ebx
mov rcx, rbp
cmp byte [rax + 0x19], bl
jne 0x14029c058
nop word [rax + rax]
mov qword [rsp + 0x30], rax
cmp qword [rax + 0x20], rdi
jae 0x14029c045
mov dword [rsp + 0x38], ebx
mov rax, qword [rax + 0x10]
jmp 0x14029c053
mov dword [rsp + 0x38], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bl
je 0x14029c030
cmp byte [rcx + 0x19], bl
jne 0x14029c063
cmp rdi, qword [rcx + 0x20]
jae 0x14029c0cb
movabs rax, 0x3ffffffffffffff
cmp qword [rsi + 8], rax
je 0x14029c0e6
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
mov ecx, 0x40
call fcn.1402bfab4
nop
mov qword [rax + 0x20], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 0x28], xmm0
movsd xmm1, qword [rsp + 0x60]
movsd qword [rax + 0x38], xmm1
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov word [rax + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x20], xmm0
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14007e310
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.14007d760
int3
Function at 0x14029c0f0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x14029c180]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.1402d3f48
mov rsi, rax
test rax, rax
jne 0x14029c134
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov qword [rsp + 0x40], rbx
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14029c157
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1402b34c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x1402b34df
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, ntohs
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.1402a2ab0
int3