joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1808102e2
Capabilities:
Encode data using xor

Disassembly:
sub byte [rax], al
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
call fcn.180a1bdeb
adc byte [rsp - 0x2ba9c3dc], 0xc0
cmp bh, ah
mov eax, 0x38bafc44
cmp dword [rdi + 0x27], eax
push rbx
je 0x1808102e0
cmp byte [rdx + 0x44b9ae08], cl
mov edi, ecx
lahf
and eax, edi
invalid

Function at 0x180815a5a
Capabilities:
Encode data using xor

Disassembly:
push rdi
movabs rdi, 0x3d661ac361bc2a55
push rbp
sub bh, byte [rcx + riz*2 + 0x3d661ac3]
mov qword [rsp + 8], 0x3970aee9
push r15
mov r15, rdi
pushfq
xor di, r15w
lea r15, [r15*4 + 0x41852822]
lea r15, [r15*4 + 0x5f7546cf]
push r12
mov r12, r15
xor r12d, 0x2e990f7c
mov r12, qword [rsp]
test dil, dil
not di
seto r15b
jo 0x180815a8d
or r15w, 0x42ef
mov rdi, qword [rsp + 0x18]
lea r15, [r15 + 0x2b760bdc]
neg r15d
sub r15w, r15w
cmp r15b, 6
jbe 0x1807df6eb
jo 0x180815a5d
invalid
Function at 0x14026bae0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14026baed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14026bafd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14026bae5
lea eax, [rcx + 1]
jmp 0x14026bb0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14026bb1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14026bb04
sub eax, 3
jb 0x14026bb3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14026bb8d
sar eax, 1
movsxd rbp, eax
jb 0x14026bb74
jmp 0x14026bb4c
add ebx, ebx
jne 0x14026bb4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14026bb74
inc ecx
add ebx, ebx
jne 0x14026bb5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14026bb74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14026bb6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14026bb5c
add ecx, 2
jmp 0x14026bb79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14026baa2
jmp 0x14026baed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x268000]
mov eax, dword [rdi]
or eax, eax
je 0x14026bbf9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x287408]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14026bb9d
jns 0x14026bbd2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14026bbdc
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14026bbf3
mov qword [rbx], rax
add rbx, 8
jmp 0x14026bbbd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14026bc3d
cmp al, 0xef
ja 0x14026bc25
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14026bc05
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14026bc14
mov eax, dword [rdi]
add rdi, 4
jmp 0x14026bc14
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14026bc91
sub rsp, 0xffffffffffffff80
jmp 0x140120a64
Function at 0x140001b08
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
jmp 0x140001b96
mov dword [rbp - 8], 0
jmp 0x140001b8c
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x10]
add rdx, rax
mov eax, dword [rbp - 8]
movzx eax, byte [rdx + rax]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
shr al, 4
movzx edx, al
movzx eax, byte [rbp - 9]
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x10]
add rcx, rax
movsxd rax, r8d
movsxd rdx, edx
shl rdx, 4
add rdx, rax
lea rax, str.cw
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
mov byte [rcx + rax], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jbe 0x140001b26
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jbe 0x140001b1d
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140001f1c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
jmp 0x140001f8d
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
shr al, 4
movzx ecx, al
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
movsxd rax, r8d
movsxd rcx, ecx
shl rcx, 4
add rcx, rax
lea rax, str.cw
add rax, rcx
movzx eax, byte [rax]
mov byte [rdx], al
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x140001f31
nop
nop
add rsp, 0x10
pop rbp
ret

Function at 0x140002296
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
jmp 0x140002324
mov dword [rbp - 8], 0
jmp 0x14000231a
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x10]
add rdx, rax
mov eax, dword [rbp - 8]
movzx eax, byte [rdx + rax]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
shr al, 4
movzx edx, al
movzx eax, byte [rbp - 9]
and eax, 0xf
mov r8d, eax
mov eax, dword [rbp - 4]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x10]
add rcx, rax
movsxd rax, r8d
movsxd rdx, edx
shl rdx, 4
add rdx, rax
lea rax, [0x14001d140]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
mov byte [rcx + rax], dl
add dword [rbp - 8], 1
cmp dword [rbp - 8], 3
jbe 0x1400022b4
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jbe 0x1400022ab
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x140002332
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
jmp 0x14000236f
lea rax, [rbp - 0x40]
mov rdx, qword [rbp - 8]
shl rdx, 2
add rax, rdx
mov r8d, 4
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add qword [rbp - 8], 1
cmp qword [rbp - 8], 3
jbe 0x140002348
mov qword [rbp - 0x10], 0
jmp 0x140002459
mov qword [rbp - 0x18], 0
jmp 0x140002449
mov qword [rbp - 0x20], 0
jmp 0x140002439
mov rax, qword [rbp - 0x10]
shl rax, 2
lea rdx, [rbp + rax]
mov rax, qword [rbp - 0x20]
add rax, rdx
sub rax, 0x40
movzx r8d, byte [rax]
mov rax, qword [rbp - 0x10]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rdx, rax
lea rax, [0x14001e150]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp - 0x18]
lea rcx, [rax*4]
mov rax, qword [rbp + 0x10]
add rcx, rax
mov rax, qword [rbp - 0x20]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
cdqe
movsxd rdx, edx
shl rdx, 8
add rdx, rax
lea rax, [0x14001d240]
add rax, rdx
movzx eax, byte [rax]
mov edx, r8d
xor edx, eax
mov rax, qword [rbp - 0x10]
shl rax, 2
lea rcx, [rbp + rax]
mov rax, qword [rbp - 0x20]
add rax, rcx
sub rax, 0x40
mov byte [rax], dl
add qword [rbp - 0x20], 1
cmp qword [rbp - 0x20], 3
jbe 0x14000239d
add qword [rbp - 0x18], 1
cmp qword [rbp - 0x18], 3
jbe 0x140002390
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 3
jbe 0x140002383
mov qword [rbp - 0x28], 0
jmp 0x140002499
lea rax, [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
shl rdx, 2
add rax, rdx
mov rdx, qword [rbp - 0x28]
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x10]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
add qword [rbp - 0x28], 1
cmp qword [rbp - 0x28], 3
jbe 0x14000246e
nop
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140002814
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x30], rcx
mov rax, qword [rbp + 0x30]
add rax, 0x50
mov rcx, rax
call fcn.14001a870
lea rax, [0x14001e1c5]
mov rdx, rax
lea rax, str.aes.key
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
setne al
test al, al
je 0x14000288a
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x40]
mov r9, rdx
mov r8d, 1
mov edx, 0x20
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
jmp 0x14000289b
lea rax, [rbp - 0x40]
mov edx, 0x20
mov rcx, rax
call fcn.140003b60
mov rax, qword [rbp + 0x30]
lea rcx, [rax + 0x50]
lea rax, [rbp - 0x40]
mov rdx, rax
call fcn.140001696
lea rax, [rbp - 0x40]
mov r8d, 0x20
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, 0x30
call fcn.14001b140
mov rbx, rax
mov edi, 1
mov edx, 0
mov rcx, rbx
call fcn.14000398a
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x40], rbx
mov ecx, 0x30
call fcn.14001b140
mov rbx, rax
mov edi, 1
mov edx, 0
mov rcx, rbx
call fcn.14000398a
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x48], rbx
mov dword [rbp - 4], 0
jmp 0x140002988
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x30]
add rax, rdx
mov rdx, qword [rbp + 0x30]
mov r9, rdx
lea r8, [0x14000274c]
mov edx, 0
mov rcx, rax
call fcn.140007850
mov edx, dword [rbp - 4]
lea rax, [rbp - 0x20]
mov r9d, edx
lea r8, str.Worker__d
mov edx, 0x10
mov rcx, rax
call fcn.140019360
mov rax, qword [rbp + 0x30]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov rax, qword [rax + rdx*8]
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140007fb0
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 7
jbe 0x14000291d
jmp 0x1400029e5
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400029ee
Capabilities:
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov dword [rbp - 4], 0
jmp 0x140002a52
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov rax, qword [rax + rdx*8]
mov rcx, rax
call fcn.1400072d0
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov rax, qword [rax + rdx*8]
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.140007ae0
mov rdx, qword [rbp - 0x10]
mov eax, 0xdeadbeef
cmp rdx, rax
je 0x140002a4e
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 7
jbe 0x140002a06
mov rax, qword [rbp + 0x20]
mov rbx, qword [rax + 0x40]
test rbx, rbx
je 0x140002a7c
mov rcx, rbx
call fcn.140003a7e
mov edx, 0x30
mov rcx, rbx
call fcn.14001b130
mov rax, qword [rbp + 0x20]
mov rbx, qword [rax + 0x48]
test rbx, rbx
je 0x140002a9e
mov rcx, rbx
call fcn.140003a7e
mov edx, 0x30
mov rcx, rbx
call fcn.14001b130
mov rax, qword [rbp + 0x20]
add rax, 0x50
mov rcx, rax
call fcn.14000165e
nop
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140003b60
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov edx, eax
mov rax, qword [rbp + 0x10]
mov r9d, 2
mov r8d, edx
mov rdx, rax
mov ecx, 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setne al
test al, al
je 0x140003bc3
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.BCryptGenRandom_fail._n
mov rdx, rax
call fcn.140019a80
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400058e0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
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 + 0x78], 0
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 0x1400059e2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400059ba
add rax, 1
cmp rax, 0x6b
je 0x1400059d7
cmp byte [rcx + rax], 0
jne 0x1400059b0
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400059d7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
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 eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400059cb

Function at 0x140005d80
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400260b0], 1
je 0x140005df8
lea rdi, [0x1400260b0]
mov rcx, rdi
call fcn.140005660
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140004f70
mov esi, dword [0x1400260b0]
test esi, esi
jne 0x140005e08
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001c038], eax
cmp eax, 0xffffffff
je 0x14001b6f6
mov dword [0x1400260b0], 1
mov rcx, rbp
call fcn.140005260
test rbx, rbx
je 0x140005df8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140005a00
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140005dd8
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.1400193f0
jmp 0x140005dd8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x140005e30
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140005b10
cmp qword [0x140029048], 0
mov rbx, rax
je 0x140005f48
test rax, rax
je 0x140005f48
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.140005560
cmp eax, 1
je 0x140005f56
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.14001b6fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14001c038]
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 0x140005f5c
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.1400058e0
nop
jmp fcn.14001b6fc

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

Disassembly:
sub rsp, 0x28
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140005f90
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140005e30
Function at 0x140006700
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 0x140006828
cmp eax, 1
je 0x14000675b
call fcn.140005660
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140004f70
mov r12d, dword [rbx]
test r12d, r12d
je 0x140006770
cmp r12d, 1
jne 0x140006800
mov rcx, rbp
call fcn.140005260
test rdi, rdi
je 0x14000675b
mov rcx, rdi
call fcn.140005a00
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140005ae0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140005d80
mov ecx, dword [0x14001c038]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140006868
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140005d80
mov ecx, dword [0x14001c038]
call r12
test rax, rax
je 0x140006850
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140005d80
mov ecx, dword [0x14001c038]
call r12
test rax, rax
je 0x140006840
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140006746
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.1400193f0
jmp 0x140006746
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140005e30
test rax, rax
jne 0x1400067e9
jmp 0x14001b715
call fcn.140005e30
test rax, rax
jne 0x1400067c5
jmp 0x14001b72e
call fcn.140005e30
test rax, rax
jne 0x14000679f
jmp 0x14001b724
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 0x140006af0
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.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140006b68
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140005570
cmp esi, dword [rbx + 0x48]
jae 0x140006b43
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140006b43
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400055b0
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.140005e30
mov rbx, rax
jmp 0x140006b1d
Function at 0x140006b80
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.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140006c80
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140005570
cmp esi, dword [rbx + 0x48]
jae 0x140006c00
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.1400055b0
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.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x140006c8d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x140006c8d
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.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140006bcf
call fcn.140005e30
mov rbx, rax
jmp 0x140006bba
mov rcx, r13
call fcn.1400055b0
mov eax, 0xc
jmp 0x140006bed

Function at 0x140006d10
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140006d38
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140005e30
test rax, rax
jne 0x140006d2a
add rsp, 0x28
ret

Function at 0x140006da0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140006dc8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140005e30
test rax, rax
jne 0x140006dba
jmp 0x140006dbe

Function at 0x140006ee0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400260b8]
test eax, eax
jne 0x140006ef8
xor eax, eax
add rsp, 0x28
ret
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140006f28
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140006eee
test byte [rax + 0x40], 3
je 0x140006eee
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140006ef0
call fcn.140005e30
test rax, rax
jne 0x140006f0e
jmp 0x140006eee
Function at 0x140006f40
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140006f80
test ebx, ebx
jle 0x140006f70
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.140005e30
test rax, rax
jne 0x140006f5d
add rsp, 0x20
pop rbx
ret

Function at 0x140007070
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400070e8
test byte [rbx + 0x40], 0xc
jne 0x14000709f
mov eax, dword [0x1400260b8]
test eax, eax
jne 0x1400070b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140004f70
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400070d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400070d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400070fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140005260
call fcn.140005e30
mov rbx, rax
test rax, rax
jne 0x14000708f
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 0x14000711a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140005260
call fcn.140006f90
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400071a0
call fcn.140004d20
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400071d8
call fcn.140005d80
mov ecx, dword [0x14001c038]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140007230
test esi, esi
je 0x1400071b6
call fcn.140007070
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140007210
mov edx, edi
call fcn.140004dd0
call fcn.140007070
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140005d80
mov ecx, dword [0x14001c038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140007220
call fcn.140007070
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140007070
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140005d80
mov ecx, dword [0x14001c038]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140007175
call fcn.140005e30
mov rbx, rax
jmp 0x140007175
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000718e
call fcn.140005e30
jmp 0x1400071b6
call fcn.140005e30
mov rbx, rax
jmp 0x140007171