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

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140176843
mov ecx, eax
mov rdx, rsi
mov esi, eax
call fcn.140176880
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140258ea0
mov eax, esi
add rsp, 0x40
pop rsi
ret
lea rax, str..._.._runtime_vm_os_thread_win.cc
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.TlsAlloc_failed__d
lea rcx, [rsp + 0x28]
mov r8d, eax
call fcn.140006bb0
int3

Function at 0x140176a20
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140176a50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140258ea0
nop
add rsp, 0x38
ret
lea rax, str..._.._runtime_vm_os_thread_win.cc
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xe2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.TlsSetValue_failed__d
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.140006bb0
int3
Function at 0x140179de0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov byte [r8 + 8], 0
mov qword [rcx + 0x30], r8
mov eax, dword [0x1403a44f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rdi + 0x20], rax
lea r15, [rsp + 0x30]
mov rcx, r15
call fcn.140188d40
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x128]
mov dword [rsp + 0xa6], 0
mov byte [rsp + 0xaa], 0
mov dword [rsp + 0xac], 0
mov byte [rsp + 0xb0], 0
mov dword [rsp + 0xb2], 0
mov byte [rsp + 0xb6], 0
mov qword [rsp + 0xb8], 0
mov byte [rsp + 0xc0], 0
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0x9d], 0
mov qword [rsp + 0xc8], WSAGetLastError
mov dword [rsp + 0xd0], 0xffffffff
mov rax, qword [r14]
lea r8, [rsp + 0x60]
mov rcx, r14
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x30]
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140179f69
lea r14, [rsp + 0x60]
nop dword [rax + rax]
lea rcx, [rax - 1]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rdx + rax*8 - 8]
mov rax, qword [rcx]
mov rdx, rdi
mov r8, r14
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x140179f40
cmp byte [rdi + 0x39], 0
je 0x140179f81
mov rcx, 0xffffffffffffffff
lea rdx, str.RegExp_too_big
xor eax, eax
jmp 0x140179f9e
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14018aa20
mov rcx, qword [rsp + 0x28]
call fcn.140179fe0
mov rcx, qword [rdi + 8]
xor edx, edx
mov qword [rsi], rdx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140258ea0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14017b0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r15, qword [rsp + 0xb0]
cmp qword [r15], 0
je 0x14017b193
mov rsi, r9
mov r12, r8
mov r14, rdx
mov rax, qword [rcx]
cmp dword [r9 + 0x70], 0
sete byte [rsp + 0x20]
xor r13d, r13d
mov rdx, r15
mov r8, r14
xor r9d, r9d
call qword [rax + 0x20]
cmp byte [r15 + 0x28], 0
jne 0x14017b196
movzx eax, byte [r14 + 0x38]
test al, al
mov ecx, 0xffff
mov edx, 0xff
cmove edx, ecx
mov qword [r15 + 0x20], 0
mov r9, qword [r15]
xor r13d, r13d
test r9, r9
jle 0x14017b196
xor ecx, ecx
test al, al
sete cl
lea r8d, [rcx*8 + 8]
lea r10, [r15 + 0xa]
mov r11d, 1
mov qword [rsp + 0x30], r9
mov rax, r9
xor edi, edi
xor ebp, ebp
xor ebx, ebx
movzx r9d, word [r10 - 2]
test r9b, r9b
movzx edi, dil
cmovne edi, r11d
and r9d, edx
mov ecx, r13d
shl r9d, cl
or ebp, r9d
mov dword [r15 + 0x20], ebp
movzx r9d, word [r10]
and r9d, edx
shl r9d, cl
or ebx, r9d
mov dword [r15 + 0x24], ebx
add r13d, r8d
add r10, 6
dec rax
jne 0x14017b150
test dil, 1
jne 0x14017b1aa
xor r13d, r13d
mov eax, r13d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r13, qword [r14 + 0x30]
mov rcx, qword [rsp + 0x30]
cmp qword [rsi + 0x28], rcx
je 0x14017b1e3
movzx r9d, byte [rsp + 0xa0]
xor r9b, 1
mov r8, qword [r12 + 0x10]
mov rdx, qword [rsi]
mov rax, qword [r13]
mov qword [rsp + 0x20], rcx
mov rcx, r13
call qword [rax + 0x100]
mov rcx, qword [r15]
cmp rcx, 2
je 0x14017b207
cmp rcx, 1
jne 0x14017b214
cmp byte [r14 + 0x38], 0
mov eax, 0xffff
mov ecx, 0xff
cmove ecx, eax
and ebp, ecx
cmp ebp, ecx
jmp 0x14017b217
cmp byte [r14 + 0x38], 0
je 0x14017b214
cmp bp, 0xffff
jmp 0x14017b217
cmp ebp, 0xffffffff
setne al
cmp byte [rsp + 0xb8], 0
je 0x14017b242
mov r10, qword [r13]
mov rcx, r13
mov edx, ebx
test al, al
je 0x14017b25f
mov r8d, ebp
mov r9, qword [rsp + 0xa8]
call qword [r10 + 0x48]
jmp 0x14017b277
mov r9, qword [rsi + 0x10]
mov r10, qword [r13]
mov rcx, r13
mov edx, ebx
test al, al
je 0x14017b26d
mov r8d, ebp
call qword [r10 + 0x88]
jmp 0x14017b277
mov r8, qword [rsp + 0xa8]
call qword [r10 + 0x40]
jmp 0x14017b277
mov r8, r9
call qword [r10 + 0x80]
mov r13b, 1
jmp 0x14017b196
Function at 0x14017c480
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x50], 0
movzx eax, byte [rsp + 0xd0]
setne bpl
or bpl, al
mov rax, qword [rcx + 0x48]
mov r12, qword [rax]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov byte [rsp + 0x20], bpl
call qword [rax + 0x20]
cmp r12, 2
jl 0x14017c630
lea r13, [rsp + 0x50]
lea rax, [rsi + rsi*2]
lea rax, [rax*2 + 0xc]
mov qword [rsp + 0x28], rax
mov r15d, 1
jmp 0x14017c526
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x20], xmm2
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx], xmm0
inc r15
cmp r15, r12
je 0x14017c630
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x3c], 0
mov dword [rsp + 0x3e], 0
mov byte [rsp + 0x42], 0
mov dword [rsp + 0x44], 0
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x4a], 0
mov byte [rsp + 0x4e], 0
mov byte [r13 + 8], 0
mov qword [r13], 0
mov rax, qword [r14 + 0x48]
mov rax, qword [rax + 0x10]
mov rcx, r15
shl rcx, 4
mov rcx, qword [rax + rcx]
mov rax, qword [rcx]
mov byte [rsp + 0x20], bpl
lea rdx, [rsp + 0x30]
mov r8, rdi
mov r9, rsi
call qword [rax + 0x20]
cmp byte [rsp + 0x58], 0
jne 0x14017c51a
cmp byte [rbx + 0x28], 0
jne 0x14017c500
mov rax, qword [rsp + 0x28]
mov rcx, rsi
cmp qword [rbx], rsi
jg 0x14017c5fe
jmp 0x14017c51a
mov byte [rbx + rax], 0
mov r11d, r10d
and r11d, r9d
mov r9d, r8d
and r9d, r11d
mov word [rsp + rax + 0x2e], r9w
xor r8d, edx
not r8d
and r8d, r11d
mov word [rbx + rax - 4], r8w
and r9d, edx
mov word [rbx + rax - 2], r9w
inc rcx
add rax, 6
cmp rcx, qword [rbx]
jge 0x14017c51a
movzx r9d, word [rbx + rax - 4]
movzx edx, word [rbx + rax - 2]
movzx r10d, word [rsp + rax + 0x2c]
movzx r8d, word [rsp + rax + 0x2e]
cmp r9w, r10w
jne 0x14017c5c0
cmp dx, r8w
jne 0x14017c5c0
cmp byte [rsp + rax + 0x30], 0
mov r8d, edx
mov r11d, r9d
jne 0x14017c5c7
jmp 0x14017c5c0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140258ea0
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14018df70
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14018de00
mov rax, qword [rsi + 0x60]
cmp rax, 1
je 0x14018dfc1
test rax, rax
jne 0x14018dfcd
mov eax, dword [0x1403a0170]
mov ecx, dword [0x1403a44f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14018e073
mov rax, qword [0x1403a0168]
jmp 0x14018e069
mov rax, qword [rsi + 0x70]
mov rax, qword [rax]
jmp 0x14018e069
mov rdx, qword [rsi]
mov ecx, 0x20
call fcn.1400f7860
mov rdi, rax
mov eax, dword [0x1403a44f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], rax
cmp qword [rsi + 0x60], 0
jle 0x14018e04b
xor ebx, ebx
nop word cs:[rax + rax]
mov r14, qword [rsi + 0x70]
mov rdx, qword [rdi]
inc rdx
mov rcx, rdi
call fcn.1400e9110
mov rax, qword [r14 + rbx*8]
mov rcx, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov qword [rdx + rcx*8 - 8], rax
inc rbx
cmp rbx, qword [rsi + 0x60]
jl 0x14018e020
mov rdx, qword [rsi]
mov ecx, 0x20
call fcn.1400f7860
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call fcn.14018b5f0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1403a0170]
call fcn.140259328
cmp dword [0x1403a0170], 0xffffffff
jne 0x14018dfb5
mov ecx, 8
call fcn.140259128
lea rcx, [0x1402e5250]
mov qword [rax], rcx
mov qword [0x1403a0168], rax
lea rcx, [0x1403a0170]
call fcn.1402592c8
jmp 0x14018dfb5
Function at 0x140192c50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, r8
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov eax, dword [0x1403a44f8]
mov r8, qword gs:[0x58]
mov rax, qword [r8 + rax*8]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], 0x200000
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov byte [rsp + 0x78], 1
mov dword [rsp + 0x7c], edx
mov dword [rsp + 0x80], 0
mov rax, qword [rcx + 8]
mov rcx, qword [rax + 7]
cmp rcx, 2
jl 0x140192cf2
lea rcx, [rsp + 0x30]
mov dl, 1
call fcn.14018e580
mov dword [rsp + 0x58], eax
jmp 0x140192d0e
mov dword [rsp + 0x58], 0x200000
mov rax, qword [rax + 7]
sar rax, 1
inc rax
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 0
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14018e800
mov rdi, rax
mov rcx, rbx
call fcn.14018fd10
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x98]
test al, al
je 0x140192d63
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x90]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx + 7]
sar rcx, 1
cmp qword [rax], rcx
jne 0x140192d63
mov byte [rsp + 0x80], 1
mov qword [rsi], rdi
mov rbx, qword [rsp + 0x68]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x98]
cmp byte [rsp + 0x80], 0
setne cl
test rbx, rbx
sete dl
and dl, cl
and dl, al
mov byte [rsi + 0x10], dl
movzx eax, byte [rsp + 0x81]
mov byte [rsi + 0x11], al
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call fcn.140192130
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 8], rcx
mov qword [rsi + 0x28], rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140258ea0
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401a5a80
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [0x1403a44f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rax, qword [rsi + 0x20]
mov rbx, qword [rax + 0x2f0]
mov rdx, qword [0x14039ab20]
mov r8d, 4
mov rcx, rdi
call fcn.1400e0c10
mov qword [rsp + 0x40], rax
mov rcx, rdi
call fcn.1400e7cc0
mov qword [rsp + 0x48], rax
mov rcx, rbx
call fcn.1400e7ce0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov r13d, 1
lea rbp, [0x1402e9410]
lea rdi, [rsp + 0x40]
lea rbx, [rsp + 0x28]
lea r12, [0x1403a15d0]
jmp 0x1401a5b52
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8 + 0x27]
mov qword [r14 + 8], rax
mov qword [r12 + r13*8], r14
inc r13
cmp r13, 0x2aa
je 0x1401a5ba0
mov ecx, 0x5c
call fcn.140104910
mov r14, rax
mov r15, qword [rbp + r13*8]
mov rcx, r15
call fcn.1402621f0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], rax
mov rcx, r15
mov rdx, rax
call fcn.140158b50
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1401a8020
cmp rax, 0xffffffffffffffff
jne 0x1401a5b30
mov rax, qword [0x14039ab20]
jmp 0x1401a5b3e
lea r13, [0x1403a0dd0]
xor ebp, ebp
lea rdi, [rsp + 0x27]
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x28]
jmp 0x1401a5bf2
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8 + 0x27]
mov qword [r15 + 8], rax
mov rax, qword [r15 + 8]
mov qword [r13], rax
mov qword [r12 + rbp*8 + 0x1550], r15
inc rbp
add r13, 8
cmp rbp, 0x100
je 0x1401a5c3e
mov byte [rsp + 0x27], bpl
mov ecx, 0x5c
call fcn.140104910
mov r15, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 1
mov edx, 1
mov rcx, rdi
call fcn.140158b50
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov rdx, r14
call fcn.1401a8020
cmp rax, 0xffffffffffffffff
jne 0x1401a5bc0
mov rax, qword [0x14039ab20]
jmp 0x1401a5bce
mov rax, qword [rsi + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], 0
mov rcx, qword [rcx + 8]
mov qword [rax + 0x2f0], rcx
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1401a5c75
mov rcx, qword [0x14039ab20]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140258ea0
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401ab7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140022a00
test rax, rax
je 0x1401ab86c
mov rcx, rsi
call fcn.140022a00
mov rbx, qword [rax + 0x6c0]
mov rdi, qword [rsi + 0x50]
test rbx, rbx
je 0x1401ab7f3
mov rcx, rsi
call fcn.140022a00
mov rcx, qword [rax + 0x6a8]
mov rcx, qword [rcx + 0x3a0]
mov rdx, rax
call fcn.1401c0450
cmp eax, 4
jne 0x1401ab805
test rbx, rbx
setne r8b
mov rcx, rdi
mov rdx, rsi
call fcn.140113f50
mov rcx, rsi
call fcn.140022a00
mov rdi, rax
mov eax, 1
cmp dword [rdi + 0xbd0], 1
je 0x1401ab840
cmp qword [rdi + 0x7a0], 0
setle al
cmp qword [rdi + 0x7a8], 0
setg cl
and cl, al
movzx eax, cl
shl eax, 4
or rax, 5
xor ecx, ecx
lock cmpxchg qword [rdi + 0x728], rcx
je 0x1401ab913
mov rax, qword [rdi + 0x6a8]
mov rcx, qword [rax + 0x3a0]
mov rdx, rdi
call fcn.1401c03b0
jmp 0x1401ab913
mov rdi, qword [rsi + 0x50]
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
call fcn.140113f50
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.1401ab960
mov rdi, rax
mov dword [rax + 0x768], 1
mov rax, qword [rax + 0x6a8]
mov rcx, qword [rax + 0x370]
test rcx, rcx
je 0x1401ab8e4
call fcn.1401bf160
mov qword [rdi + 0x6d0], rax
mov qword [rdi + 0x40], ntohs
mov rax, qword [rdi + 0x6a8]
mov rcx, qword [rax + 0x378]
call fcn.1401bf160
mov qword [rdi + 0x6d8], rax
mov rax, qword [rdi + 0x6a8]
mov rcx, qword [rax + 0x3b0]
call fcn.1401bec60
mov qword [rdi + 0x6c8], rax
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rdi + 0x60], rax
mov qword [rsi + 8], rdi
mov rdx, qword [rsi + 0x50]
mov rcx, rdi
call fcn.1401ad3f0
mov qword [rsi], rdi
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1401aba50
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx + 0x6e0], 3
mov qword [rcx + 0x720], 0
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401aba94
cmp byte [rax + 8], 0
jne 0x1401aba99
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401aba99
call fcn.140176500
mov qword [rsi + 0x10], rax
mov qword [rax + 0x58], rsi
mov rcx, rsi
call fcn.140176610
mov rax, qword [0x14039f620]
test rax, rax
je 0x1401abb22
cmp qword [rsi + 0x6a0], rax
je 0x1401abb22
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401abae2
cmp byte [rax + 8], 0
jne 0x1401abae7
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401abae7
call fcn.140176500
mov rbx, qword [rax + 0x50]
add rbx, qword [rax + 0x48]
lea rdi, [rsi + 0x780]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
test qword [rsi + 0x38], 3
jne 0x1401abb0c
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x6b0], rbx
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140095ca0
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401aba50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140022a00
test rax, rax
je 0x1401ab86c
mov rcx, rsi
call fcn.140022a00
mov rbx, qword [rax + 0x6c0]
mov rdi, qword [rsi + 0x50]
test rbx, rbx
je 0x1401ab7f3
mov rcx, rsi
call fcn.140022a00
mov rcx, qword [rax + 0x6a8]
mov rcx, qword [rcx + 0x3a0]
mov rdx, rax
call fcn.1401c0450
cmp eax, 4
jne 0x1401ab805
test rbx, rbx
setne r8b
mov rcx, rdi
mov rdx, rsi
call fcn.140113f50
mov rcx, rsi
call fcn.140022a00
mov rdi, rax
mov eax, 1
cmp dword [rdi + 0xbd0], 1
je 0x1401ab840
cmp qword [rdi + 0x7a0], 0
setle al
cmp qword [rdi + 0x7a8], 0
setg cl
and cl, al
movzx eax, cl
shl eax, 4
or rax, 5
xor ecx, ecx
lock cmpxchg qword [rdi + 0x728], rcx
je 0x1401ab913
mov rax, qword [rdi + 0x6a8]
mov rcx, qword [rax + 0x3a0]
mov rdx, rdi
call fcn.1401c03b0
jmp 0x1401ab913
mov rdi, qword [rsi + 0x50]
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
call fcn.140113f50
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.1401ab960
mov rdi, rax
mov dword [rax + 0x768], 1
mov rax, qword [rax + 0x6a8]
mov rcx, qword [rax + 0x370]
test rcx, rcx
je 0x1401ab8e4
call fcn.1401bf160
mov qword [rdi + 0x6d0], rax
mov qword [rdi + 0x40], ntohs
mov rax, qword [rdi + 0x6a8]
mov rcx, qword [rax + 0x378]
call fcn.1401bf160
mov qword [rdi + 0x6d8], rax
mov rax, qword [rdi + 0x6a8]
mov rcx, qword [rax + 0x3b0]
call fcn.1401bec60
mov qword [rdi + 0x6c8], rax
mov rax, qword [rsi + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rdi + 0x60], rax
mov qword [rsi + 8], rdi
mov rdx, qword [rsi + 0x50]
mov rcx, rdi
call fcn.1401ad3f0
mov qword [rsi], rdi
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1401aba50
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx + 0x6e0], 3
mov qword [rcx + 0x720], 0
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401aba94
cmp byte [rax + 8], 0
jne 0x1401aba99
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401aba99
call fcn.140176500
mov qword [rsi + 0x10], rax
mov qword [rax + 0x58], rsi
mov rcx, rsi
call fcn.140176610
mov rax, qword [0x14039f620]
test rax, rax
je 0x1401abb22
cmp qword [rsi + 0x6a0], rax
je 0x1401abb22
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401abae2
cmp byte [rax + 8], 0
jne 0x1401abae7
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401abae7
call fcn.140176500
mov rbx, qword [rax + 0x50]
add rbx, qword [rax + 0x48]
lea rdi, [rsi + 0x780]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
test qword [rsi + 0x38], 3
jne 0x1401abb0c
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x6b0], rbx
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140095ca0
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401abf70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov r9d, r8d
mov edi, edx
xor edx, edx
xor r8d, r8d
call fcn.1401ab960
mov rsi, rax
test rax, rax
je 0x1401ac04d
mov dword [rsi + 0x768], edi
mov rax, qword [rsi + 0x6a8]
mov rcx, qword [rax + 0x370]
test rcx, rcx
je 0x1401abfdf
call fcn.1401bf160
mov qword [rsi + 0x6d0], rax
mov qword [rsi + 0x40], ntohs
mov rax, qword [rsi + 0x6a8]
mov rcx, qword [rax + 0x378]
call fcn.1401bf160
mov qword [rsi + 0x6d8], rax
mov rax, qword [rsi + 0x6a8]
mov rcx, qword [rax + 0x3b0]
cmp edi, 1
jne 0x1401abff2
call fcn.1401bec60
jmp 0x1401abff7
call fcn.1401bed20
mov qword [rsi + 0x6c8], rax
mov qword [rsi + 0x6e0], 3
mov qword [rsi + 0x720], 0
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401ac038
cmp byte [rax + 8], 0
jne 0x1401ac03d
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401ac03d
call fcn.140176500
mov qword [rsi + 0x10], rax
mov qword [rax + 0x58], rsi
mov rcx, rsi
call fcn.140176610
test rsi, rsi
setne al
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1401ac170
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, edx
mov rbx, rcx
mov r14, qword [rcx + 0x398]
cmp qword [0x14039f620], 0
sete sil
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, r14
mov edx, esi
call fcn.1401ae2c0
mov rsi, rax
mov qword [rax + 0x6a0], 0
mov qword [rax + 0x6a8], rbx
mov qword [rax + 0xcb8], 0
mov eax, 0x80
xchg qword [rsi + 0x728], rax
mov dword [rsi + 0xbd0], 0
mov rcx, r14
call fcn.140095ca0
mov dword [rsi + 0x768], edi
mov qword [rsi + 0x6e0], 3
mov qword [rsi + 0x720], 0
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401ac221
cmp byte [rax + 8], 0
jne 0x1401ac226
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401ac226
call fcn.140176500
mov qword [rsi + 0x10], rax
mov qword [rax + 0x58], rsi
mov rcx, rsi
call fcn.140176610
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401adba0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401adbcc
cmp byte [rax + 8], 0
jne 0x1401adbd1
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401adbd1
call fcn.140176500
mov rax, qword [rax + 0x60]
test rax, rax
je 0x1401adbe3
cmp qword [rax + 0x10], rsi
sete al
jmp 0x1401adbe5
xor eax, eax
add rsp, 0x20
pop rsi
ret