joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002969
Capabilities:
Terminate process

Disassembly:
jmp 0x14007ed58
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140002aa4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004fe68
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004fbc4

Function at 0x140002c3e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007ead0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007eaf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007eaf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002f09
Capabilities:
Clear file content

Disassembly:
jmp 0x140079d04
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140001776
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140001776
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140079e54
cmp rax, 0xffffffffffffffff
je 0x140079e54
xor edi, edi
test rbp, rbp
jle 0x140079dff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140003959
mov rbx, rax
test rax, rax
jne 0x140079d8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140079df5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400030a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140003684
cmp eax, 0xffffffff
je 0x140079dd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140079d9c
mov edx, r15d
mov ecx, r14d
call fcn.1400030a8
jmp 0x140079df5
cmp byte [rsi + 0x38], dil
je 0x140079dec
cmp dword [rsi + 0x34], 5
jne 0x140079dec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140079df5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140001177
jmp 0x140079e68
jns 0x140079e68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140001776
cmp rax, 0xffffffffffffffff
jne 0x140079e20
cmp byte [rsi + 0x30], dil
je 0x140079e68
mov edi, dword [rsi + 0x2c]
jmp 0x140079e68
mov ecx, r14d
call fcn.140003f94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140079e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140079e68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140079e61
mov eax, dword [rsi + 0x2c]
jmp 0x140079e66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140001776
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140002f68
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000b008
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b052
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b052
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b052
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b052
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b052
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b054
xor al, al
add rsp, 0x28
ret

Function at 0x1400031e3
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14007ea10
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x14007ea51
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x14007ea45
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x14007ea53
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x14007ea33
xor eax, eax
ret

Function at 0x1400033d7
Capabilities:
Terminate process

Disassembly:
jmp 0x1400571e0
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400571fa
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003a99
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140003b89
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400183c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400898c8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400898c0]
call fcn.140017e38
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140018400
call qword [0x1400a9020]
jmp 0x140018406
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003c24
Capabilities:
Set environment variable

Disassembly:
jmp 0x140078484
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000218f
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007850e
cmp byte [rbp - 0x21], r15b
je 0x140078509
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140078544
call fcn.140003fe4
test eax, eax
jne 0x140078530
cmp byte [rbp - 0x21], r15b
je 0x140078528
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140078544
cmp byte [rbp - 0x21], r15b
je 0x140078541
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400041ba
test eax, eax
jne 0x1400785e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000218f
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140078583
cmp byte [rbp - 0x21], r15b
je 0x1400785b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400785b8
call fcn.140003fe4
test eax, eax
jne 0x1400785a4
cmp byte [rbp - 0x21], r15b
je 0x14007859d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400785b8
cmp byte [rbp - 0x21], r15b
je 0x1400785b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400041ba
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400785e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400785e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400785f5
mov rcx, rdi
call fcn.140001177
cmp byte [rbp + 0x3f], r15b
je 0x140078604
mov rcx, qword [rbp + 0x27]
call fcn.140001177
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003d19
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004fe58
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004fc33
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004fc33
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004fc33
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004fc33
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004fc33
cmp dword [rcx + 0x84], 0xe
jbe 0x14004fc33
cmp dword [rcx + 0xf8], 0
je 0x14004fc33
mov ecx, ebx
call fcn.14004fd9c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004f91c
nop
cmp dword [rbp + 0x20], 0
je 0x14004fc81
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004fcbc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004fbc4

Function at 0x14000b008
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000b008
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b052
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b052
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b052
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b052
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b052
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b054
xor al, al
add rsp, 0x28
ret
Function at 0x140020998
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000184d
sub rsp, rax
mov rax, qword [0x14009e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140003e36
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400209e7
mov rax, rbp
jmp 0x140020aef
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa00d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14000205e
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa00d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140020aeb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020aeb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14000205e
test rax, rax
js 0x140020aeb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140020aeb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140020add
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140020add
cmp byte [rcx], 0xd
jne 0x140020ac3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140020ad2
cmp byte [rcx + 1], 0xa
jne 0x140020ad2
inc rcx
jmp 0x140020ad2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9e440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140020aa5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140020aef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000264e
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005ab64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a00d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005abbb
cmp word [rdx], r13w
jne 0x14005abbb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005abc0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005ace5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005ad06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005abf9
mov rdx, r9
mov word [rbx], cx
jmp 0x14005ac20
cmp r9, r8
jae 0x14005ac30
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005abda
jmp 0x14005ace5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005acda
cmp dword [rsp + 0x80], esi
je 0x14005acda
lea r8, [0x1400a00d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005acb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005ac82
mov word [rbx], r13w
jmp 0x14005ace2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005ac8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005ace2
cmp word [rsp + 0x70], r13w
jne 0x14005acbf
cmp rbx, r14
je 0x14005ac7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140001776
cmp word [rsp + 0x70], r13w
je 0x14005ace5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a00d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005acdf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005ace5
Function at 0x140076a6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140076a82
mov al, 1
jmp 0x140076ae2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140076a93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140076ae0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003f94
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140076ae0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140076ae0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140076ae0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140076ae2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140036400
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ed368]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140036499
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 8
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400f5a84], ecx
jle 0x140036480
lea rcx, [0x1400f5a84]
call fcn.140084f58
cmp dword [0x1400f5a84], 0xffffffff
jne 0x140036480
lea rcx, [0x1400c36e0]
call fcn.140085244
lea rcx, [0x1400f5a84]
call fcn.140084eec
lea rax, str.0K_r_
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x1400364ae
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084e90
add rsp, 0x40
pop rbx
ret
lea rdx, [0x1400d1800]
lea rcx, [rsp + 0x20]
call fcn.1400362d0
int3

Function at 0x140036580
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ed368]
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
mov 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 [0x1400f5a88], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400365f9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084e90
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140036630]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084e90
add rsp, 0x40
pop rbx
ret

Function at 0x140037d60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140037d99
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003d850
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14003d850

Function at 0x140037db0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140037de0
mov r9, qword [rax + 8]
jmp 0x140037de3
mov r9, r8
cmp rdi, 0x3fc
ja 0x140037e07
test r9, r9
je 0x140037e07
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140037e15
inc r8d
inc rax
cmp rax, 2
jl 0x140037df4
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp case.0x14007e52b.0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x1400380b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov rax, qword [0x1400ed368]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
xor r14d, r14d
mov rbx, rcx
mov qword [rdx], r14
mov rsi, rdx
mov qword [rdx + 8], r14
mov rbp, r8
mov edx, r14d
mov rcx, qword [rax]
mov r9d, r14d
test rcx, rcx
je 0x140038117
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsi], r9
mov qword [rsi + 8], rdx
mov qword [rax], r14
cmp rbp, rdx
jbe 0x140038234
mov ebx, 6
test r9, r9
je 0x140038179
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140038141
mov rdx, qword [rax + 8]
jmp 0x140038144
mov rdx, r14
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
cmp r9, 0x3fc
ja 0x140038171
test rdx, rdx
je 0x140038171
mov ecx, ebx
mov rax, rbx
nop
cmp qword [rdx + rax*8], r14
je 0x1400381da
inc ecx
inc rax
cmp rax, 8
jl 0x140038160
mov rcx, r8
call case.0x14007e52b.0
mov ecx, dword [0x1400f5dc0]
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdi, [rbp + 3]
shr rdi, 2
test rax, rax
je 0x140038206
mov r9, qword [rax + 8]
test r9, r9
je 0x140038206
mov ecx, ebx
lea r8, [r9 + 0x30]
mov rdx, qword [r8]
test rdx, rdx
je 0x1400381b6
movzx eax, byte [rdx]
cmp rax, rdi
jae 0x1400381eb
inc ecx
add r8, 8
cmp ecx, 8
jl 0x1400381a6
mov rax, rbx
mov rcx, qword [r9 + rax*8]
test rcx, rcx
jne 0x1400381fa
inc ebx
inc rax
cmp rax, 8
jl 0x1400381c4
jmp 0x140038206
movzx eax, byte [r8 + r9]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
jmp 0x140038179
movsxd rax, ecx
mov qword [r9 + rax*8], r14
movzx eax, byte [rdx]
mov byte [rdx + rbp], al
jmp 0x140038228
movsxd rax, ebx
mov qword [r9 + rax*8], r14
call case.0x14007e52b.0
lea rcx, [rdi*4 + 1]
call fcn.140084fd0
cmp rdi, 0xff
movzx ecx, dil
mov rdx, rax
cmova ecx, r14d
mov byte [rax + rbp], cl
mov rdi, qword [rsp + 0x50]
mov qword [rsi], rdx
mov qword [rsi + 8], rbp
mov rax, rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140084e90
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140039cc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140039ce7
mov r8, qword [rax + 8]
jmp 0x140039cea
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140039d12
test r8, r8
je 0x140039d12
mov ecx, 2
mov eax, ecx
nop
cmp qword [r8 + rax*8], 0
je 0x140039d24
inc ecx
inc rax
cmp rax, 4
jl 0x140039d00
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp case.0x14007e52b.0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, ecx
mov qword [r8 + rax*8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140039d40
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rdi + 3]
xor esi, esi
shr rbx, 2
test rax, rax
je 0x140039de4
mov r10, qword [rax + 8]
test r10, r10
je 0x140039de4
mov r9d, 2
lea r8, [r10 + 0x10]
mov ecx, r9d
mov rdx, qword [r8]
test rdx, rdx
je 0x140039d93
movzx eax, byte [rdx]
cmp rax, rbx
jae 0x140039db8
inc ecx
add r8, 8
cmp ecx, 4
jl 0x140039d83
mov rax, r9
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x140039dd8
inc r9d
inc rax
cmp rax, 4
jl 0x140039da1
jmp 0x140039de4
movsxd rcx, ecx
mov rax, rdx
mov qword [r10 + rcx*8], rsi
movzx ecx, byte [rdx]
mov byte [rdx + rdi], cl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
mov qword [r10 + rax*8], rsi
call case.0x14007e52b.0
lea rcx, [rbx*4 + 1]
call fcn.140084fd0
cmp rbx, 0xff
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
cmova ecx, esi
mov rsi, qword [rsp + 0x38]
mov byte [rax + rdi], cl
add rsp, 0x20
pop rdi
ret
Function at 0x14003ec40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400ed368]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp - 0x59], rdi
lea rax, [0x1400edfb0]
mov qword [rbp - 0x51], rax
mov rbx, qword [rcx + 0x18]
mov eax, edi
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x14003ec92
mov rcx, rbx
call fcn.140038c00
jmp 0x14003ed60
mov dword [rbp + 0x27], edi
lea rcx, [rbp + 0x2f]
call fcn.140078518
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
xor eax, eax
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x29]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140038e60
test rax, rax
je 0x14003ed25
nop dword [rax]
lea r9, [rbp - 0x59]
lea r8, [rbp - 0x29]
mov rcx, rbx
call fcn.140038e60
test rax, rax
jne 0x14003ed10
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1400f5dc0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x29]
mov edi, 0xa
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003ed4d
call case.0x14007e52b.0
add rbx, 8
sub rdi, 1
jne 0x14003ed40
lea rcx, [rbp + 0x2f]
call fcn.1400785a4
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140084e90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret