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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140018758
cmp eax, 1
je 0x14001868b
call fcn.140017590
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016ea0
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400186a0
cmp r12d, 1
jne 0x140018730
mov rcx, rbp
call fcn.140017190
test rdi, rdi
je 0x14001868b
mov rcx, rdi
call fcn.140017930
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140017a10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018798
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call r12
test rax, rax
je 0x140018780
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call r12
test rax, rax
je 0x140018770
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018676
mov ecx, 2
call qword [fcn.1400152d0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140018676
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017d60
test rax, rax
jne 0x140018719
jmp 0x1400b79a5
call fcn.140017d60
test rax, rax
jne 0x1400186f5
jmp 0x1400b79be
call fcn.140017d60
test rax, rax
jne 0x1400186cf
jmp 0x1400b79b4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140018a20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018a98
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400174a0
cmp esi, dword [rbx + 0x48]
jae 0x140018a73
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140018a73
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400174e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017d60
mov rbx, rax
jmp 0x140018a4d
Function at 0x140018ab0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018bb0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400174a0
cmp esi, dword [rbx + 0x48]
jae 0x140018b30
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400174e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140018bbd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140018bbd
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140018aff
call fcn.140017d60
mov rbx, rax
jmp 0x140018aea
mov rcx, r13
call fcn.1400174e0
mov eax, 0xc
jmp 0x140018b1d

Function at 0x140018c40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018c68
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140017d60
test rax, rax
jne 0x140018c5a
add rsp, 0x28
ret

Function at 0x140018cd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018cf8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140017d60
test rax, rax
jne 0x140018cea
jmp 0x140018cee

Function at 0x140018e10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ead88]
test eax, eax
jne 0x140018e28
xor eax, eax
add rsp, 0x28
ret
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018e58
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140018e1e
test byte [rax + 0x40], 3
je 0x140018e1e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140018e20
call fcn.140017d60
test rax, rax
jne 0x140018e3e
jmp 0x140018e1e

Function at 0x140018e70
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018eb0
test ebx, ebx
jle 0x140018ea0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140017d60
test rax, rax
jne 0x140018e8d
add rsp, 0x20
pop rbx
ret
Function at 0x140018fa0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019018
test byte [rbx + 0x40], 0xc
jne 0x140018fcf
mov eax, dword [0x1400ead88]
test eax, eax
jne 0x140018fe0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016ea0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140019003
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140019003
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001902c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140017190
call fcn.140017d60
mov rbx, rax
test rax, rax
jne 0x140018fbf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001904a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140017190
call fcn.140018ec0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400190d0
call fcn.140016c50
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140019108
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019160
test esi, esi
je 0x1400190e6
call fcn.140018fa0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019140
mov edx, edi
call fcn.140016d00
call fcn.140018fa0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019150
call fcn.140018fa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018fa0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400190a5
call fcn.140017d60
mov rbx, rax
jmp 0x1400190a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400190be
call fcn.140017d60
jmp 0x1400190e6
call fcn.140017d60
mov rbx, rax
jmp 0x1400190a1
Function at 0x140019060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019018
test byte [rbx + 0x40], 0xc
jne 0x140018fcf
mov eax, dword [0x1400ead88]
test eax, eax
jne 0x140018fe0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016ea0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140019003
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140019003
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001902c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140017190
call fcn.140017d60
mov rbx, rax
test rax, rax
jne 0x140018fbf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001904a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140017190
call fcn.140018ec0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400190d0
call fcn.140016c50
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140019108
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140019160
test esi, esi
je 0x1400190e6
call fcn.140018fa0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140019140
mov edx, edi
call fcn.140016d00
call fcn.140018fa0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019150
call fcn.140018fa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018fa0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400190a5
call fcn.140017d60
mov rbx, rax
jmp 0x1400190a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400190be
call fcn.140017d60
jmp 0x1400190e6
call fcn.140017d60
mov rbx, rax
jmp 0x1400190a1

Function at 0x140019170
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017cb0
mov ecx, dword [0x1400b8168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400191e0
test esi, esi
je 0x1400191c0
call fcn.140018fa0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400191f0
mov edx, esi
call fcn.140016d00
call fcn.140018fa0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018fa0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018fa0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140017d60
mov rbx, rax
jmp 0x140019191
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400191aa
Function at 0x14007c650
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007c698
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c66a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
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.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
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.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
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 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
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 0x140029bd0
Capabilities:
Parse pe header

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

Function at 0x140006478
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140007088]
test rax, rax
je 0x1400064c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400064c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400064c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400064c2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400064c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400064c4
xor al, al
add rsp, 0x28
ret
Function at 0x140001d40
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rdx
cmp qword [rcx], rdx
jne 0x140001dcb
cmp dword [rcx + 0x10], 0xffffff65
jne 0x140001dcb
movzx eax, word [rcx + 0x18]
cmp eax, 0x41
je 0x140001dae
cmp eax, 0x43
jne 0x140001dcb
lea ecx, [rax - 0x32]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140001dcb
mov rcx, rdi
mov qword [rsp + 0x38], rbx
call fcn.14000a530
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.1400094a0
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
mov rbx, qword [rsp + 0x38]
cmp eax, 1
jne 0x140001dcb
add rsp, 0x20
pop rdi
jmp fcn.1400061b0
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140001dcb
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp 0x140009410
add rsp, 0x20
pop rdi
ret
push rsi
sub rsp, 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rsi, rcx
call qword [sym.imp.USER32.dll_SendMessageW]
lea edx, [rax - 1]
cmp edx, 0xfffffffd
ja 0x14000948f
mov qword [rsp + 0x90], rbx
xor ebx, ebx
mov qword [rsp + 0x98], rdi
mov edi, eax
nop dword [rax]
lea r9, [rsp + 0x20]
mov dword [rsp + 0x30], 2
mov r8, rbx
mov dword [rsp + 0x2c], 2
mov edx, 0x102b
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
inc rbx
sub rdi, 1
jne 0x140009450
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rsi
ret
Function at 0x140005f30
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
lea rcx, [0x140035090]
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
lea rcx, [0x1400350a0]
call qword [sym.imp.ntdll.dll_RtlInitializeSListHead]
xor eax, eax
mov dword [0x1400350b4], 0x200
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea edx, [rbx + 0x40]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x20]
mov qword [0x140035088], rax
lea rax, [rsp + 0x20]
mov qword [0x1400356c0], rax
mov dword [0x1400350b0], ebx
mov qword [0x1400350b8], 0x40
call fcn.1400060d0
mov rcx, rax
lock inc dword [rsp + 0x24]
mov esi, 1
lea rdi, [rcx + 0x10]
mov dword [rax + 8], esi
movzx eax, byte [rsp + 0x22]
mov word [rcx], ax
mov eax, esi
mov word [rdi], bx
lock xadd dword [0x1400350c0], eax
movzx eax, al
mov ecx, eax
mov byte [rdi + 2], al
mov dword [rdi + 4], ebx
lea rax, str.Type
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rbx
cmp ecx, 0x100
jge 0x1400060c0
mov word [rdi - 0x10], cx
lea edx, [rbx + 0x40]
mov qword [rsp + 0x70], r14
lea r14, [0x1400356c0]
mov qword [r14 + rcx*8], rdi
mov rcx, rdi
mov qword [0x140035088], rdi
mov dword [rdi + 4], esi
call fcn.1400060d0
mov rcx, rax
lock inc dword [rdi + 4]
mov dword [rax + 8], esi
movzx eax, byte [rdi + 2]
mov word [rcx], ax
lea rax, [rcx + 0x10]
mov word [rax], bx
lock xadd dword [0x1400350c0], esi
movzx esi, sil
lea rdx, str.Alloc
mov byte [rax + 2], sil
mov dword [rax + 4], ebx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
cmp esi, 0x100
jge 0x1400060b4
mov qword [r14 + rsi*8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov r14, qword [rsp + 0x70]
mov ecx, 0xc000009a
mov rsi, qword [rsp + 0x80]
cmp eax, 0xffffffff
mov dword [0x140035238], eax
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
mov ecx, 0xc0000001
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3
Function at 0x140006350
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [0x140035238]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rdi, rdi
jne 0x14000637e
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rax]
cmp eax, 0x40
jae 0x14000639a
mov qword [rbx + rax*8 + 8], rdi
mov rax, rdi
inc dword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp qword [rbx + 0x210], 0
jne 0x1400063cd
mov rcx, qword [0x1400356a8]
mov edx, 4
mov r8d, 0x200
mov dword [rbx + 0x20c], 0x40
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx + 0x210], rax
mov eax, dword [rbx + 0x20c]
cmp dword [rbx + 0x208], eax
jne 0x14000640a
mov r8, qword [rbx + 0x210]
add eax, eax
mov rcx, qword [0x1400356a8]
mov edx, 4
mov r9d, eax
shl r9, 3
mov dword [rbx + 0x20c], eax
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov qword [rbx + 0x210], rax
mov ecx, dword [rbx + 0x208]
mov rax, qword [rbx + 0x210]
mov qword [rax + rcx*8], rdi
mov rax, rdi
inc dword [rbx + 0x208]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006780
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rcx, [0x140035240]
mov rdi, r8
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
test rax, rax
je 0x1400067a8
lock dec dword [0x140035250]
jmp 0x1400067c5
mov r8, qword [0x140035258]
mov edx, 4
mov rcx, qword [0x1400356a8]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea rbx, [rax + 0x10]
xor edx, edx
lea rax, [0x14000cc30]
mov qword [rbx + 8], rdi
mov qword [rbx], rax
lea r8, [0x140006700]
xor eax, eax
mov r9, rbx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140006842
mov eax, dword [0x140035254]
lea r8, [rbx - 0x10]
cmp dword [0x140035250], eax
jae 0x140006831
mov rdx, r8
lea rcx, [0x140035240]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x140035250]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x1400356a8]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140007cc0
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov eax, ecx
mov edi, ecx
and eax, 0xfff0000
cmp eax, 0x70000
je 0x140007cfd
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea rcx, [0x14002e2a8]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, edi
mov r8d, ebx
mov rcx, rax
call fcn.140007c00
jmp 0x140007d05
movzx ecx, cx
call fcn.140007e60
mov rdi, rax
test rax, rax
je 0x140007e4a
cmp qword [rax], 0
je 0x140007e4a
mov rcx, qword [rax + 8]
mov qword [rsp + 0x60], rsi
call fcn.140006850
or esi, 0xffffffff
lea rdx, [rax + rax]
mov qword [rdi], rdx
cmp rdx, 4
jb 0x140007d7c
mov rcx, qword [rdi + 8]
mov rax, rdx
shr rax, 1
cmp word [rcx + rax*2 - 4], 0xd
jne 0x140007d7c
cmp word [rcx + rax*2 - 2], 0xa
jne 0x140007d7c
add rdx, 0xfffffffffffffffc
call fcn.140006f50
mov rcx, rdi
mov rdi, rax
test rcx, rcx
je 0x140007d7c
add rcx, 0xfffffffffffffff0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140007d7c
call fcn.1400061b0
mov rax, qword [rdi + 8]
cmp word [rax], 0x7b
jne 0x140007e45
movups xmm0, xmmword [rdi]
mov edx, 0xa
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
call fcn.140006cc0
cmp rax, 0xffffffffffffffff
je 0x140007e45
mov rbx, qword [0x1400356b0]
lea rcx, [rax + rax]
mov qword [rsp + 0x58], rbp
mov rbp, qword [rsp + 0x20]
sub rbp, rcx
mov qword [rsp + 0x30], r14
mov r14, qword [rsp + 0x28]
sub rbp, 2
add r14, 2
add r14, rcx
mov rcx, rbx
lea rdx, [rbp + 0x12]
call fcn.1400060d0
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], rbp
mov word [rax + rbp], cx
test r14, r14
je 0x140007e1d
mov rcx, qword [rbx + 8]
mov r8, rbp
mov rdx, r14
call fcn.1400109c0
mov r14, qword [rsp + 0x30]
mov rcx, rdi
mov rbp, qword [rsp + 0x58]
mov rdi, rbx
test rcx, rcx
je 0x140007e45
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x140007e45
call fcn.1400061b0
mov rsi, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x140007e60
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea rcx, str.kernel32.dll
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, edi
mov r8d, ebx
mov rcx, rax
call fcn.140007c00
mov rbx, rax
test rax, rax
je 0x140007f00
mov rcx, qword [rax + 8]
call fcn.140006850
lea rdx, [rax + rax]
mov qword [rbx], rdx
cmp rdx, 4
jb 0x140007efd
mov rcx, qword [rbx + 8]
mov rax, rdx
shr rax, 1
cmp word [rcx + rax*2 - 4], 0xd
jne 0x140007efd
cmp word [rcx + rax*2 - 2], 0xa
jne 0x140007efd
add rdx, 0xfffffffffffffffc
call fcn.140006f50
mov rdi, rax
test rbx, rbx
je 0x140007f00
lea rcx, [rbx - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140007f00
call fcn.1400061b0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret