joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ae40
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
mov r10, qword [rcx]
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x14009aeb3
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
mov ebp, dword [rbp + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x14009aebb
mov r13, qword [r11]
mov r11, r13
jmp 0x14009ae6f
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
jne 0x14009aef1
jmp 0x14009aeff
inc r12
inc r12
inc r12
inc r12
jmp 0x14009aed5
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
shr r12d, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
shl r12d, 2
add r11, rcx
add r11, r12
mov r12d, dword [r11]
mov r11d, 0x155000
add r12, rcx
push rcx
add r11, r10
push r10
push r11
push rbx
push rbx
push r12
mov rcx, r11
mov r9, rsp
sub r8, r8
add r8, 0x40
mov edx, 0xb7000
call r12
pop r13
pop rbx
pop rbx
pop r11
pop r10
mov ecx, 0x1994
movabs r13, 0x3a4c0
push r12
mov r12d, 0x98
imul ecx, r12d
movabs r12, 0x469
add rcx, r12
add rcx, r10
call 0x14009afbc
mov r11d, 0x195000
movabs rcx, 0x12ea49
add rcx, r10
add r11, r10
mov r13d, 0x3aa0
call 0x14009afbc
pop r12
cmp rcx, r11
jne 0x14009aff4
mov r12d, dword [rcx]
xor r12d, 0x474c428
dec r12
mov dword [r11], r12d
dec r13
dec r13
dec r13
inc rcx
inc rcx
inc rcx
inc rcx
add r11, 4
dec r13
test r13d, r13d
je 0x14009aff2
jmp 0x14009afbc
mov ecx, 0x8000000
movabs r11, 0x155000
mov r13d, 0x24c
mov r12d, 6
imul r13d, r12d
add r11, r10
add r13d, 0x238
sub r11, r13
mov r13, r11
sub r13, rcx
movabs rcx, 0x133649
add rcx, r10
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140003750
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x14000376f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140013b00
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140008920
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [0x140022150], 0
mov rbx, rcx
mov rdi, rdx
je 0x1400089a0
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.1400087a0
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x140022150]
test rbx, rbx
je 0x140008960
test byte [rbx + 7], 0x40
je 0x140008980
lea rcx, [0x14001a1c0]
call fcn.14000e340
cmp byte [rax], 0
jne 0x1400089d0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x14001a1e0]
call fcn.14000e340
mov rdx, rbx
mov rcx, rax
call fcn.140005810
jmp 0x140008960
mov ecx, 2
call qword [fcn.140013500]
mov rcx, rbx
mov r8, rdi
mov edx, 1
mov rsi, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp 0x140013b00
mov byte [rax], 0
lea rcx, [0x14001a0c0]
call fcn.14000e340
mov rbx, qword [rax]
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x1400089f0
add qword [rdx - 0x10], 0x10
mov qword [rax], rdx
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x140008a20
mov r8, qword [rbx]
sub rax, 0x10
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.140007a30
mov r8, qword [rbx]
mov ecx, 1
call fcn.140007a30
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.140007ac0

Function at 0x14000d4d0
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 fcn.140013500
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140013500
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14000d540
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140022264]
mov rbx, rcx
test esi, esi
jle 0x14000d670
mov rax, qword [0x140022268]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d58b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d615
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d570
mov rcx, rbx
call fcn.14000df90
mov rdi, rax
test rax, rax
je 0x14000d692
mov rax, qword [0x140022268]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e0d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140022268]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d677
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d60e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d620
add dword [0x140022264], 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 [0x140022268]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d60e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d4d0
nop dword [rax]
xor esi, esi
jmp 0x14000d598
mov rax, qword [0x140022268]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d4d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000d4d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000dc00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400222c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400222a0]
test rbx, rbx
je 0x14000dc5c
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 eax, eax
jne 0x14000dc53
test rsi, rsi
je 0x14000dc53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000dc38
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 0x14000df90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001c200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000dfb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000dfb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000dfb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e00d
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 0x14000e004
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000dfb0
add rax, 0x28
cmp rax, r9
jne 0x14000dff0
xor eax, eax
ret

Function at 0x14000e010
Capabilities:
Parse pe header

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

Function at 0x14000e0d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001c200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e0ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e0f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140014590
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.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140014692
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001466a
add rax, 1
cmp rax, 0x6b
je 0x140014687
cmp byte [rcx + rax], 0
jne 0x140014660
movsxd rdx, eax
cmp eax, 0x6a
je 0x140014687
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.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001467b
Function at 0x140014a30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140022dc0], 1
je 0x140014aa8
lea rdi, [0x140022dc0]
mov rcx, rdi
call fcn.140014310
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140013c90
mov esi, dword [0x140022dc0]
test esi, esi
jne 0x140014ab8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001a3a8], eax
cmp eax, 0xffffffff
je 0x1400193f6
mov dword [0x140022dc0], 1
mov rcx, rbp
call fcn.140013f80
test rbx, rbx
je 0x140014aa8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400146b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140014a88
mov ecx, 2
call qword [fcn.140013500]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140014a88
call sub.msvcrt.dll_abort
nop

Function at 0x140014ae0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400147c0
cmp qword [0x140024048], 0
mov rbx, rax
je 0x140014bf8
test rax, rax
je 0x140014bf8
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.140017d60
cmp eax, 1
je 0x140014c06
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.1400193fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14001a3a8]
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 0x140014c0c
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.140014590
nop
jmp fcn.1400193fc

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

Disassembly:
sub rsp, 0x28
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140014c40
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140014ae0
Function at 0x1400153b0
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 0x1400154d8
cmp eax, 1
je 0x14001540b
call fcn.140014310
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140013c90
mov r12d, dword [rbx]
test r12d, r12d
je 0x140015420
cmp r12d, 1
jne 0x1400154b0
mov rcx, rbp
call fcn.140013f80
test rdi, rdi
je 0x14001540b
mov rcx, rdi
call fcn.1400146b0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140014790]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140015518
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call r12
test rax, rax
je 0x140015500
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call r12
test rax, rax
je 0x1400154f0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400153f6
mov ecx, 2
call qword [fcn.140013500]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400153f6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140014ae0
test rax, rax
jne 0x140015499
jmp 0x140019415
call fcn.140014ae0
test rax, rax
jne 0x140015475
jmp 0x14001942e
call fcn.140014ae0
test rax, rax
jne 0x14001544f
jmp 0x140019424
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 0x1400157a0
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.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015818
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140017d70
cmp esi, dword [rbx + 0x48]
jae 0x1400157f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400157f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140017db0
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.140014ae0
mov rbx, rax
jmp 0x1400157cd
Function at 0x140015830
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.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015930
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140017d70
cmp esi, dword [rbx + 0x48]
jae 0x1400158b0
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.140017db0
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 0x14001593d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001593d
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 0x14001587f
call fcn.140014ae0
mov rbx, rax
jmp 0x14001586a
mov rcx, r13
call fcn.140017db0
mov eax, 0xc
jmp 0x14001589d

Function at 0x1400159c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400159e8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140014ae0
test rax, rax
jne 0x1400159da
add rsp, 0x28
ret

Function at 0x140015a50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015a78
add rax, 0x18
add rsp, 0x28
ret
call fcn.140014ae0
test rax, rax
jne 0x140015a6a
jmp 0x140015a6e

Function at 0x140015b90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140022dc8]
test eax, eax
jne 0x140015ba8
xor eax, eax
add rsp, 0x28
ret
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015bd8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140015b9e
test byte [rax + 0x40], 3
je 0x140015b9e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140015ba0
call fcn.140014ae0
test rax, rax
jne 0x140015bbe
jmp 0x140015b9e

Function at 0x140015bf0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015c30
test ebx, ebx
jle 0x140015c20
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.140014ae0
test rax, rax
jne 0x140015c0d
add rsp, 0x20
pop rbx
ret
Function at 0x140015d20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015d98
test byte [rbx + 0x40], 0xc
jne 0x140015d4f
mov eax, dword [0x140022dc8]
test eax, eax
jne 0x140015d60
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140013c90
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140015d83
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140015d83
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140015dac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140013f80
call fcn.140014ae0
mov rbx, rax
test rax, rax
jne 0x140015d3f
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 0x140015dca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140013f80
call fcn.140015c40
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140015e50
call fcn.140016f00
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140015e88
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015ee0
test esi, esi
je 0x140015e66
call fcn.140015d20
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015ec0
mov edx, edi
call fcn.140016fb0
call fcn.140015d20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015ed0
call fcn.140015d20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140015d20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140015e25
call fcn.140014ae0
mov rbx, rax
jmp 0x140015e25
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140015e3e
call fcn.140014ae0
jmp 0x140015e66
call fcn.140014ae0
mov rbx, rax
jmp 0x140015e21
Function at 0x140015de0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015d98
test byte [rbx + 0x40], 0xc
jne 0x140015d4f
mov eax, dword [0x140022dc8]
test eax, eax
jne 0x140015d60
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140013c90
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140015d83
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140015d83
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140015dac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140013f80
call fcn.140014ae0
mov rbx, rax
test rax, rax
jne 0x140015d3f
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 0x140015dca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140013f80
call fcn.140015c40
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140015e50
call fcn.140016f00
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140015e88
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015ee0
test esi, esi
je 0x140015e66
call fcn.140015d20
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015ec0
mov edx, edi
call fcn.140016fb0
call fcn.140015d20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015ed0
call fcn.140015d20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140015d20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140015e25
call fcn.140014ae0
mov rbx, rax
jmp 0x140015e25
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140015e3e
call fcn.140014ae0
jmp 0x140015e66
call fcn.140014ae0
mov rbx, rax
jmp 0x140015e21

Function at 0x140015ef0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140014a30
mov ecx, dword [0x14001a3a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140015f60
test esi, esi
je 0x140015f40
call fcn.140015d20
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140015f70
mov edx, esi
call fcn.140016fb0
call fcn.140015d20
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140015d20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140015d20
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014ae0
mov rbx, rax
jmp 0x140015f11
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140015f2a