joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180040430
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.18004c8b0
mov rbx, qword [rbx + 8]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rcx, rbx
mov dword [rsp + 0x44], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call fcn.18004c8b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
je 0x1800404b4
cmp eax, 0x4d2
jne 0x1800404b9
call fcn.18004c8b0
test ebx, ebx
jne 0x1800404c2
call fcn.18004c8b0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x60
pop rbx
ret

Function at 0x1800404e0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1800b89c8], eax
test eax, eax
je 0x180040557
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.180009b40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x40
pop rbx
ret
Function at 0x180040b20
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180040b6c
mov dword [rsp + 0x30], 0x2719
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x180040c06
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov qword [rsp + 0x258], rbx
mov dword [rsp + 0x250], 1
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor edx, edx
lea r8, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.18004c8b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
js 0x180040bfc
mov dword [rsp + 0x30], 0
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
mov rsi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180046a00
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret

Function at 0x180040c30
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
movzx r14d, dl
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180040c87
mov dword [rsp + 0x30], 0x2719
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x180040d6f
mov qword [rsp + 0x2b8], rsi
xor ecx, ecx
mov qword [rsp + 0x270], r15
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
and r14b, 1
lea rax, [rsp + 0x40]
lea ecx, [rbx + 1]
cmove rax, r15
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.18004c8b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x180040d44
test r14b, r14b
je 0x180040d2b
mov dword [rsp + 0x30], 0x2733
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
jmp 0x180040d5a
mov dword [rsp + 0x30], r15d
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
jmp 0x180040d5a
jle 0x180040d5d
mov dword [rsp + 0x30], r15d
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov r15, qword [rsp + 0x270]
mov eax, esi
mov rsi, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x278
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x180040d90
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r14
lea rbp, [rsp - 0x178]
sub rsp, 0x278
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, r8
movzx r14d, dl
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180040de7
mov dword [rsp + 0x30], 0x2719
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
or eax, ebx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
jmp 0x180040ece
mov qword [rsp + 0x2b8], rsi
xor ecx, ecx
mov qword [rsp + 0x270], r15
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
and r14b, 1
lea rax, [rsp + 0x40]
lea ecx, [rbx + 1]
cmove rax, r15
lea r8, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call fcn.18004c8b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test esi, esi
jne 0x180040ea3
test r14b, r14b
je 0x180040e8a
mov dword [rsp + 0x30], 0x2733
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax]
jmp 0x180040eb9
mov dword [rsp + 0x30], r15d
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
jmp 0x180040eb9
jle 0x180040ebc
mov dword [rsp + 0x30], r15d
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov r15, qword [rsp + 0x270]
mov eax, esi
mov rsi, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x278
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x180042e90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xc0]
mov rdi, rcx
xor ecx, ecx
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r15d, r15d
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], r15
lea r9, [rsp + 0x50]
mov r8d, ebp
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov dword [rsp + 0x50], r15d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.18004c8b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x180042f30
mov dword [rsp + 0x40], 0x2746
jmp 0x180042f40
cmp ecx, 0x4d2
jne 0x180042f53
mov dword [rsp + 0x40], 0x274d
call fcn.18004c8b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x180042f5c
or eax, 0xffffffff
jmp 0x180042f78
mov dword [rsp + 0x40], r15d
call fcn.18004c8b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800442e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x18004433c
call fcn.1800458f0
mov dword [rsp + 0x20], ebx
call fcn.18004c8b0
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x1800443d5
mov qword [rsp + 0x38], rbx
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov ecx, dword [0x1800b89bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x1800b89bc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov dl, 1
mov rcx, rdi
call fcn.18003b500
test rax, rax
je 0x1800443b1
nop dword [rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov dl, 1
mov rcx, rdi
call fcn.18003b500
test rax, rax
jne 0x180044390
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x1800b89bc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800443d2
call fcn.180046964
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180046a00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180044aa0
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x7c8]
sub rsp, 0x8b0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rbp + 0x7a8], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
xor edx, edx
mov rcx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
setne al
test al, al
je 0x180044c23
lea rcx, str.save_load_url:_pipe
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [str..pipe6c459691_c3d3_4686_b2fd_6b3ba6528b42]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180044b5a
lea rcx, str.CreateFileA_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x180044ca6
xor edx, edx
mov r8d, 0x804
lea rcx, [rbp - 0x7c]
call fcn.18004c910
mov dword [rbp - 0x80], 4
mov rcx, rdi
call fcn.180036bb0
mov r8, rax
mov edx, 0x400
lea rcx, [rbp - 0x7c]
call fcn.1800562dc
mov rcx, rsi
call fcn.180036bb0
mov r8, rax
mov edx, 0x400
lea rcx, [rbp + 0x384]
call fcn.1800562dc
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, 0x808
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180044bd5
lea rcx, str.write_pipe_failed_n
jmp 0x180044c0f
mov dword [rsp + 0x70], ebx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x788], xmm0
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, setsockopt
lea rdx, [rbp + 0x788]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180044c15
lea rcx, str.read_pipe_failed_to_wait_check_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180044ca6
lea rcx, str.save_load_url:_insert_load_url
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [rbp + 0x788]
mov qword [rsp + 0x68], rax
mov qword [rbp + 0x7a0], setsockopt
xor ebx, ebx
mov qword [rbp + 0x798], rbx
mov byte [rbp + 0x788], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0x788]
call fcn.180002390
nop
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.180002390
nop
lea rdx, [rbp + 0x788]
lea rcx, [rsp + 0x40]
call fcn.18003fb30
nop
mov rcx, rdi
call fcn.180002740
nop
mov rcx, rsi
call fcn.180002740
mov rcx, qword [rbp + 0x7a8]
xor rcx, rsp
call fcn.180046a00
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180044f80
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xc0]
mov rdi, rcx
xor ecx, ecx
mov ebx, r9d
mov rbp, r8
mov rsi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r15d, r15d
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov r8d, ebp
mov qword [rsp + 0x28], r15
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x50], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.18004c8b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
mov ecx, dword [r14]
cmp ecx, 0x40
jne 0x180045016
mov dword [rsp + 0x40], 0x2746
jmp 0x180045026
cmp ecx, 0x4d2
jne 0x180045039
mov dword [rsp + 0x40], 0x274d
call fcn.18004c8b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r14], xmm0
test edi, edi
je 0x180045042
or eax, 0xffffffff
jmp 0x18004505e
mov dword [rsp + 0x40], r15d
call fcn.18004c8b0
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1800450c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x438
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.18004c910
lea rdx, [rsp + 0x20]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180045117
lea r8, str.skyguard_bho
lea rdx, [rsp + 0x20]
lea rcx, [0x1800b88d8]
call fcn.180001d10
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x438
ret

Function at 0x180045660
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, ecx
mov rbp, r9
xor ecx, ecx
mov edi, r8d
mov ebx, edx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov r8d, edi
mov dword [rsp + 0x20], 0
mov edx, ebx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call fcn.18004c8b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
cmp rdi, 0xffffffffffffffff
jne 0x1800456d8
or rax, rdi
jmp 0x180045720
cmp esi, 0x17
jne 0x180045702
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
mov rax, rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180045740
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800ad0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x1800457b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1800458b3
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x180045806
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1800458c5
xor ecx, ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x180046410]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x40], ecx
call fcn.18005ce10
mov qword [rbp + 8], rax
test rax, rax
jne 0x180045881
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x180045859
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x180045868
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x30], ebx
call fcn.18004c8b0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1800458d7
test rdi, rdi
je 0x18004589b
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180046a00
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.18003c900
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.18003c900
int3
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.18003c900
int3
Function at 0x18004b920
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x18004bb30
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1800ad198]
cmp ecx, 0xffffffff
jne 0x18004bb58
xor esi, esi
jmp 0x18004bb61
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x18004bc53
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x18004bb86
test rbx, rbx
je 0x18004bc2c
jmp 0x18004bb90
test rbx, rbx
je 0x18004bbe4
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004bbc7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
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 0x18004bb90
cmp qword [rsi + 0x30], 0
je 0x18004bb70
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x18004bc0f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x18004bc0f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.18004b3f0
cmp qword [rsi + 0x30], 0
jne 0x18004bbf0
jmp 0x18004bb70
lea rdx, [0x18004b3b0]
lea rcx, [0x1800b9550]
call fcn.18004afc0
mov ecx, dword [0x1800ad198]
cmp ecx, 0xffffffff
je 0x18004bc53
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x18004bc84
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18004bc84
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 + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18004bb30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x18004bb30
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x1800ad198]
cmp ecx, 0xffffffff
jne 0x18004bb58
xor esi, esi
jmp 0x18004bb61
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x18004bc53
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x18004bb86
test rbx, rbx
je 0x18004bc2c
jmp 0x18004bb90
test rbx, rbx
je 0x18004bbe4
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004bbc7
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
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 0x18004bb90
cmp qword [rsi + 0x30], 0
je 0x18004bb70
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x18004bc0f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x18004bc0f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.18004b3f0
cmp qword [rsi + 0x30], 0
jne 0x18004bbf0
jmp 0x18004bb70
lea rdx, [0x18004b3b0]
lea rcx, [0x1800b9550]
call fcn.18004afc0
mov ecx, dword [0x1800ad198]
cmp ecx, 0xffffffff
je 0x18004bc53
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x18004bc84
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18004bc84
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 + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret