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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x38a0a83e0]
call fcn.38a0a1dc0
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.38a092696

Function at 0x38a092798
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x38a0927a3
jmp fcn.38a092772
ret

Function at 0x38a092ee3
Capabilities:
Terminate process

Disassembly:
cmp rdx, 0x10
jle 0x38a092ef0
movzx eax, word [rcx - 2]
sub rcx, rax
jmp fcn.38a092772

Function at 0x38a092ef5
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov ecx, 0x10
mov qword [rsp + 0x28], rdx
call fcn.38a092ecf
mov rcx, r8
mov rdx, qword [rsp + 0x28]
sub rcx, rax
add rsp, 0x38
jmp fcn.38a092ee3

Function at 0x38a0932ce
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rax, qword [rax]
mov rbx, rcx
test rax, rax
jne 0x38a0932f6
mov rax, qword [rbx]
mov rcx, rbx
movsx rdx, word [rax + 0x10]
add rsp, 0x20
pop rbx
jmp fcn.38a092ef5
call rax
lea rcx, [0x38a0a8440]
call fcn.38a0a1dc0
cmp byte [rax], 0
je 0x38a0932e1
add rsp, 0x20
pop rbx
ret

Function at 0x38a09330f
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
test rdx, rdx
je 0x38a093321
add qword [rdx - 0x10], 0x10
mov qword [rcx], rdx
mov rcx, rbx
call fcn.38a093252
test al, al
je 0x38a09333a
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.38a0932ce
add rsp, 0x20
pop rbx
ret

Function at 0x38a093340
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, [0x38a0a8380]
call fcn.38a0a1dc0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x28
jmp fcn.38a09330f

Function at 0x38a093363
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.38a0a1b28

Function at 0x38a0933a2
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x38a0b10e8], 0
jne 0x38a0933ba
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.38a093363
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.38a09235f
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x38a0b10e8]
test rbx, rbx
je 0x38a0933eb
test byte [rbx + 7], 0x40
jne 0x38a0933eb
mov rcx, rbx
call fcn.38a092772
lea rcx, [0x38a0a8440]
call fcn.38a0a1dc0
cmp byte [rax], 0
je 0x38a09340a
mov byte [rax], 0
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.38a093340
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x38a09388f
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rsi, [0x38a0a9027]
mov rbp, qword [rcx]
mov rdi, qword [rcx + 8]
mov ecx, 2
call rbx
lea rdx, str.could_not_load:
mov rcx, rax
call fcn.38a09152b
test rbp, rbp
je 0x38a0938cb
lea rsi, [rdi + 8]
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.38a09152b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x38a093900
mov ecx, 2
call rbx
lea rdx, str._n_bad_format__library_may_be_wrong_architecture_
mov rcx, rax
call fcn.38a09152b
mov ecx, 2
call rbx
lea rdx, [0x38a0a912f]
mov rcx, rax
call fcn.38a09152b
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop

Function at 0x38a093921
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rsi, rcx
mov ecx, 2
call rbx
lea rdx, str.could_not_import:
mov rcx, rax
call fcn.38a09152b
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.38a09152b
mov ecx, 2
call rbx
lea rdx, [0x38a0a912f]
mov rcx, rax
call fcn.38a09152b
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop

Function at 0x38a094056
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x38a09406a
test byte [rcx + 7], 0x40
jne 0x38a09406a
jmp fcn.38a092772
ret

Function at 0x38a094348
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov qword [rcx], rdx
mov rcx, rbx
call fcn.38a093252
test al, al
je 0x38a09436c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.38a0932ce
add rsp, 0x20
pop rbx
ret
Function at 0x38a094681
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, rcx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x38a0947da
xor eax, eax
mov rsi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call rsi
mov rcx, rbx
movsxd rdx, dword [rax]
call fcn.38a093bd9
mov r13, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
lea rcx, [0x38a0a8440]
call fcn.38a0a1dc0
cmp byte [rax], 0
jne 0x38a0947b9
call rsi
lea rsi, [rsp + 0x30]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov rcx, rbx
mov rdx, rax
call fcn.38a09235f
mov r14, qword [rsp + 0x20]
mov rcx, rsi
mov rbp, qword [rsp + 0x28]
lea rdx, [r13 + r14 + 0xa]
call fcn.38a0934cb
movups xmm0, xmmword [0x38a0ab0d0]
mov rcx, rsi
mov rdx, rbx
movups xmmword [rsp + 0x20], xmm0
call fcn.38a09145d
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rdi
call fcn.38a09145d
movups xmm1, xmmword [0x38a0ab0c0]
mov rcx, rsi
mov rdx, rbx
movups xmmword [rsp + 0x20], xmm1
call fcn.38a09145d
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rbp
call fcn.38a09145d
movups xmm2, xmmword [0x38a0ab0b0]
mov rcx, rsi
mov rdx, rbx
movups xmmword [rsp + 0x20], xmm2
call fcn.38a09145d
mov r13, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov rcx, rbx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rsi
call fcn.38a0944f9
test rbp, rbp
je 0x38a0947b9
test byte [rbp + 7], 0x40
jne 0x38a0947b9
mov rcx, rbp
call fcn.38a092772
test rdi, rdi
je 0x38a0947da
test byte [rdi + 7], 0x40
jne 0x38a0947da
mov rcx, rdi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.38a092772
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x38a0947e9
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
sub rsp, 0x38
mov rsi, rcx
mov rcx, rdx
mov edx, 1
mov rdi, r8
mov r9, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rdi, rax
je 0x38a09481c
mov rcx, rsi
mov qword [rsp + 0x28], rax
call fcn.38a094681
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rsi
pop rdi
ret

Function at 0x38a094fe2
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
xor esi, esi
mov rdi, qword [rcx]
mov rbx, qword [rcx + 8]
cmp rsi, rdi
jl 0x38a094ffe
test rbx, rbx
jne 0x38a09501f
jmp 0x38a095034
mov rax, rsi
shl rax, 4
mov rcx, qword [rbx + rax + 0x10]
test rcx, rcx
je 0x38a09501a
test byte [rcx + 7], 0x40
jne 0x38a09501a
call fcn.38a092772
inc rsi
jmp 0x38a094ff2
test byte [rbx + 7], 0x40
jne 0x38a095034
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.38a092772
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x38a096178
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x38a096194
test byte [rcx + 7], 0x40
jne 0x38a096194
call fcn.38a092772
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x38a0961ad
test byte [rcx + 7], 0x40
jne 0x38a0961ad
add rsp, 0x20
pop rbx
jmp fcn.38a092772
add rsp, 0x20
pop rbx
ret

Function at 0x38a096b75
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
call fcn.38a093252
test al, al
je 0x38a096b93
mov rcx, qword [rbx + 8]
call fcn.38a0932ce
mov rcx, qword [rbx + 0x18]
call fcn.38a093252
test al, al
je 0x38a096ba9
mov rcx, qword [rbx + 0x18]
call fcn.38a0932ce
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x38a096bc2
test byte [rcx + 7], 0x40
jne 0x38a096bc2
add rsp, 0x20
pop rbx
jmp fcn.38a092772
add rsp, 0x20
pop rbx
ret

Function at 0x38a096bca
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x58]
call fcn.38a093291
test al, al
je 0x38a096c0c
mov rcx, qword [rbx + 0x58]
call fcn.38a096b75
lea rcx, [0x38a0a8440]
call fcn.38a0a1dc0
cmp byte [rax], 0
jne 0x38a096c0c
mov rcx, qword [rbx + 0x58]
mov edx, 8
add rsp, 0x20
pop rbx
jmp fcn.38a092ef5
add rsp, 0x20
pop rbx
ret

Function at 0x38a0975a6
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov qword [rcx], rdx
mov rcx, rbx
call fcn.38a093291
test al, al
je 0x38a0975e8
mov rcx, rbx
call fcn.38a096b75
lea rcx, [0x38a0a8440]
call fcn.38a0a1dc0
cmp byte [rax], 0
jne 0x38a0975e8
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.38a092ef5
add rsp, 0x20
pop rbx
ret

Function at 0x38a097961
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
test rdx, rdx
je 0x38a097973
add qword [rdx - 0x10], 0x10
mov qword [rcx], rdx
mov rcx, rbx
call fcn.38a093291
test al, al
je 0x38a0979ad
mov rcx, rbx
call fcn.38a096b75
lea rcx, [0x38a0a8440]
call fcn.38a0a1dc0
cmp byte [rax], 0
jne 0x38a0979ad
mov edx, 8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.38a092ef5
add rsp, 0x20
pop rbx
ret

Function at 0x38a0980df
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x38a0980fb
test byte [rcx + 7], 0x40
jne 0x38a0980fb
call fcn.38a092772
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x38a09810f
test byte [rcx + 7], 0x40
jne 0x38a09810f
call fcn.38a092772
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x38a098128
test byte [rcx + 7], 0x40
jne 0x38a098128
add rsp, 0x20
pop rbx
jmp fcn.38a092772
add rsp, 0x20
pop rbx
ret

Function at 0x38a099556
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], rcx
call fcn.38a093252
test al, al
je 0x38a099576
mov rcx, qword [rsp + 0x28]
add rsp, 0x38
jmp fcn.38a0932ce
add rsp, 0x38
ret
Function at 0x38a09bd40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.38a0a1850
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x38a09bdb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x38a0b1164]
mov rbx, rcx
test esi, esi
jle 0x38a09bee0
mov rax, qword [0x38a0b1168]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x38a09bdfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x38a09be85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x38a09bde0
mov rcx, rbx
call fcn.38a09c610
mov rdi, rax
test rax, rax
je 0x38a09bf02
mov rax, qword [0x38a0b1168]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.38a09c750
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x38a0b1168]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x38a09bee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x38a09be7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x38a09be90
add dword [0x38a0b1164], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x38a0b1168]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x38a09be7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.38a09bd40
nop dword [rax]
xor esi, esi
jmp 0x38a09be08
mov rax, qword [0x38a0b1168]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.38a09bd40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.38a09bd40
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x38a09c280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x38a0b11a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x38a0b1180]
test rbx, rbx
je 0x38a09c2dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x38a09c2d3
test eax, eax
jne 0x38a09c2d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x38a09c2b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x38a09c610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x38a0aba60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x38a09c630
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x38a09c638
ret
cmp word [r8 + 0x18], 0x20b
jne 0x38a09c630
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x38a09c68d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x38a09c684
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x38a09c630
add rax, 0x28
cmp rax, r9
jne 0x38a09c670
xor eax, eax
ret

Function at 0x38a09c690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x38a0aba60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x38a09c6af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x38a09c6b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x38a09c6af
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x38a09c750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x38a0aba60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x38a09c76f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x38a09c778
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x38a0a2940
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x38a0abb00]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x38a0a2a5a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x38a0a2a32
add rax, 1
cmp rax, 0x6b
je 0x38a0a2a4f
cmp byte [rcx + rax], 0
jne 0x38a0a2a28
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x38a0a2a4f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x38a0a2a40

Function at 0x38a0a2df0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x38a0b1c90], 1
je 0x38a0a2e68
lea rdi, [0x38a0b1c90]
mov rcx, rdi
call fcn.38a0a26d0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.38a0a2070
mov esi, dword [0x38a0b1c90]
test esi, esi
jne 0x38a0a2e78
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x38a0a85b8], eax
cmp eax, 0xffffffff
je 0x38a0a7e56
mov dword [0x38a0b1c90], 1
mov rcx, rbp
call fcn.38a0a2340
test rbx, rbx
je 0x38a0a2e68
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.38a0a2a70
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x38a0a2e48
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.38a0a1c60
jmp 0x38a0a2e48
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x38a0a2ea0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.38a0a2b80
cmp qword [0x38a0b5040], 0
mov rbx, rax
je 0x38a0a2fb8
test rax, rax
je 0x38a0a2fb8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.38a0a64b0
cmp eax, 1
je 0x38a0a2fc6
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.38a0a7e5c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x38a0a85b8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x38a0a2fcc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.38a0a2940
nop
jmp fcn.38a0a7e5c

Function at 0x38a0a2fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.38a0a2df0
mov ecx, dword [0x38a0a85b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x38a0a3000
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.38a0a2ea0
Function at 0x38a0a37c0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x38a0abb00]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x38a0a3908
cmp eax, 1
je 0x38a0a382d
call fcn.38a0a26d0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.38a0a2070
mov r13d, dword [rbx]
test r13d, r13d
je 0x38a0a3850
cmp r13d, 1
jne 0x38a0a38e0
mov rcx, r12
call fcn.38a0a2340
test rdi, rdi
je 0x38a0a382d
mov rcx, rdi
call fcn.38a0a2a70
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x38a0a395b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x38a0a2b50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.38a0a2df0
mov ecx, dword [0x38a0a85b8]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x38a0a3948
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.38a0a2df0
mov ecx, dword [0x38a0a85b8]
call r13
test rax, rax
je 0x38a0a3930
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.38a0a2df0
mov ecx, dword [0x38a0a85b8]
call r13
test rax, rax
je 0x38a0a3918
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x38a0a3818
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.38a0a1c60
jmp 0x38a0a3818
mov eax, 0x16
jmp 0x38a0a382f
call fcn.38a0a2ea0
test rax, rax
jne 0x38a0a38c9
jmp 0x38a0a7e8e
call fcn.38a0a2ea0
test rax, rax
jne 0x38a0a38a5
jmp 0x38a0a7e7f
call fcn.38a0a2ea0
test rax, rax
jne 0x38a0a387f
jmp 0x38a0a7e75
call fcn.38a0a7d50
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x38a0a3be0
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.38a0a2df0
mov ecx, dword [0x38a0a85b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x38a0a3c58
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.38a0a64c0
cmp esi, dword [rbx + 0x48]
jae 0x38a0a3c33
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x38a0a3c33
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.38a0a6500
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.38a0a2ea0
mov rbx, rax
jmp 0x38a0a3c0d