joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7c10
Capabilities:
Hide graphical window

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x005d2990]
cmp byte [rsi + 0x1c], 0
je 0x4a7c55
mov rbx, qword [0x005d29c0]
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x4a7c78
mov rcx, qword [rax + 0x18]
mov edx, 6
mov byte [rax + 0x55], 0
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rbx + 0x30]
mov byte [rax + 0x54], 0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rdx, str.glutIconifyWindow
lea rcx, [0x005b7bd8]
call fcn.004a1bb0
mov rbx, qword [0x005d29c0]
mov rax, qword [rbx + 0x30]
test rax, rax
jne 0x4a7c33
cmp dword [rsi + 0x94], 2
je 0x4a7c33
lea rdx, str.glutIconifyWindow
lea rcx, str._ERROR:__Function___s__called_with_no_current_window_defined.
call fcn.004a1bb0
mov rax, qword [rbx + 0x30]
jmp 0x4a7c33

Function at 0x4a8780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x60], xmm8
movaps xmmword [rsp + 0x70], xmm9
mov rax, qword [0x005d2990]
cmp byte [rax + 0x1c], 0
mov rsi, rcx
mov rbx, rdx
je 0x4a8930
mov rcx, rsi
call fcn.004a85b0
test rbx, rbx
mov rsi, rax
je 0x4a87d2
test rax, rax
je 0x4a87d2
cmp byte [rbx], 0
jne 0x4a87f4
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm9, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 1
pxor xmm6, xmm6
pxor xmm8, xmm8
call qword [sym.imp.OPENGL32.dll_glPushClientAttrib]
mov rdi, qword [sym.imp.OPENGL32.dll_glPixelStorei]
xor edx, edx
mov ecx, 0xcf0
call rdi
xor edx, edx
mov ecx, 0xcf1
call rdi
xor edx, edx
mov ecx, 0xcf2
call rdi
xor edx, edx
mov ecx, 0xcf3
call rdi
xor edx, edx
mov ecx, 0xcf4
call rdi
mov edx, 1
mov ecx, 0xcf5
call rdi
mov rdi, qword [sym.imp.OPENGL32.dll_glBitmap]
movss xmm9, dword [0x005b7f00]
add rbx, 1
movzx ecx, byte [rbx - 1]
test cl, cl
je 0x4a88c3
cmp cl, 0xa
mov edx, dword [rsi + 0xc]
je 0x4a88f0
mov rax, qword [rsi + 0x10]
pxor xmm0, xmm0
add rbx, 1
movss xmm3, dword [rsi + 0x1c]
movss xmm2, dword [rsi + 0x18]
mov rbp, qword [rax + rcx*8]
movzx ecx, byte [rbp]
lea rax, [rbp + 1]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
cvtsi2ss xmm0, ecx
movss dword [rsp + 0x20], xmm0
call rdi
movzx eax, byte [rbp]
pxor xmm0, xmm0
movzx ecx, byte [rbx - 1]
cvtsi2ss xmm0, eax
test cl, cl
addss xmm6, xmm0
jne 0x4a8864
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm9, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.OPENGL32.dll_glPopClientAttrib]
neg edx
pxor xmm0, xmm0
xor ecx, ecx
xorps xmm6, xmm9
cvtsi2ss xmm0, edx
movss dword [rsp + 0x20], xmm6
movaps xmm3, xmm8
xor edx, edx
mov qword [rsp + 0x30], 0
pxor xmm2, xmm2
pxor xmm6, xmm6
movss dword [rsp + 0x28], xmm0
call qword [sym.imp.OPENGL32.dll_glBitmap]
jmp 0x4a8858
lea rdx, str.glutBitmapString
lea rcx, [0x005b7e00]
call fcn.004a1bb0
jmp 0x4a87b8
Function at 0x4b34f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00c87e24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4b3678
mov rax, qword [0x00c87e28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4b353c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4b35c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4b3520
mov rcx, rbx
call fcn.004b4190
test rax, rax
mov r12, rax
je 0x4b36ad
mov rax, qword [0x00c87e28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004b42c0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00c87e28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4b3690
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4b35be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4b3620
add dword [0x00c87e24], 1
cmp edi, 8
jae 0x4b35f3
test dil, 4
jne 0x4b3664
test edi, edi
je 0x4b35e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4b367f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4b35e8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4b360c
jmp 0x4b35e8
add rsi, qword [0x00c87e28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4b35be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00586cd0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4b35e8
xor esi, esi
jmp 0x4b3547
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4b35e8
mov rax, qword [0x00c87e28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00586cd0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00586cd0
nop
nop dword [rax]

Function at 0x4b3e00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00c88100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00c880e0]
test rbx, rbx
je 0x4b3e54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4b3e4b
test rsi, rsi
je 0x4b3e4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4b3e30
lea rcx, [0x00c88100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4b4190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005d2640]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4b41fd
mov rcx, r8
call fcn.004b4070
test eax, eax
je 0x4b41fd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4b41fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4b41f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4b41ff
add rax, 0x28
cmp rax, r9
jne 0x4b41e0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4b48f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4b4921
xor edx, edx
mov ecx, eax
mov dword [0x00c88150], eax
call fcn.004c5420
test eax, eax
sete al
movzx eax, al
mov dword [0x0058bcf8], eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b490e

Function at 0x4b4a30
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov edi, 1
mov rax, qword [rdx]
mov rbp, qword [rcx + 0x10]
mov r12, qword [rcx + 0x18]
test rax, rax
mov rsi, rcx
mov rbx, rdx
mov r15, r8
je 0x4b4b30
mov r13, qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4b4a8c
mov qword [0x00c88158], r14
mov rax, qword [rbx]
add edi, 1
mov rax, qword [rax]
test rax, rax
mov qword [rbx], rax
je 0x4b4b30
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
mov r14, qword [rax + 0x30]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call rbp
test eax, eax
jne 0x4b4b50
test r14, r14
je 0x4b4adf
mov qword [rsp + 0x20], rbx
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0xa
mov ecx, 1
call r14
cmp eax, 7
je 0x4b4b75
cmp eax, 8
jne 0x4b4b50
mov rax, qword [rbx]
mov r14, qword [rax]
mov eax, dword [0x0058bcf8]
test eax, eax
js 0x4b4b20
test eax, eax
je 0x4b4a70
mov rdx, r14
mov ecx, dword [0x00c88150]
call r13
test eax, eax
jne 0x4b4a77
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4b4a77
call fcn.004b4930
mov eax, dword [0x0058bcf8]
jmp 0x4b4aef
mov qword [rsp + 0x28], r12
mov r9, rsi
mov r8, qword [rsi]
mov edx, 0x1a
mov qword [rsp + 0x20], rbx
mov ecx, 1
call rbp
test eax, eax
je 0x4b4b70
mov eax, 2
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 5
mov dword [r15], edi
jmp 0x4b4b55
Function at 0x4b4b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x0058bcf8]
test eax, eax
mov rbx, rcx
js 0x4b4c00
test eax, eax
jne 0x4b4bb3
mov rax, qword [0x00c88158]
mov qword [0x00c88158], rbx
mov qword [rbx], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edi, dword [0x00c88150]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov ebp, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbx], rdi
mov rdx, rbx
mov ecx, dword [0x00c88150]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4b4baa
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
call fcn.004b4930
mov eax, dword [0x0058bcf8]
jmp 0x4b4b95

Function at 0x4b4c10
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x0058bcf8]
mov rbx, qword [rcx]
test eax, eax
js 0x4b4c52
test eax, eax
jne 0x4b4c33
mov qword [0x00c88158], rbx
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
mov ecx, dword [0x00c88150]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4b4c2d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004b4930
mov eax, dword [0x0058bcf8]
jmp 0x4b4c22

Function at 0x4b4d20
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [0x0058bcf8]
test eax, eax
mov rbx, rcx
js 0x4b4da0
test eax, eax
mov rsi, qword [0x00c88158]
jne 0x4b4db6
test rsi, rsi
mov qword [rsp + 0x38], rsi
je 0x4b4d91
lea rdi, [rsp + 0x38]
mov rax, rsi
mov rax, qword [rax + 0x30]
test rax, rax
je 0x4b4d7f
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call rax
cmp eax, 6
je 0x4b4de0
cmp eax, 8
jne 0x4b4e13
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
test rax, rax
mov qword [rsp + 0x38], rax
jne 0x4b4d51
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call fcn.004b4930
mov eax, dword [0x0058bcf8]
mov rsi, qword [0x00c88158]
test eax, eax
je 0x4b4d3f
mov esi, dword [0x00c88150]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4b4d3f
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, rdi
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov qword [rsp + 0x38], rsi
mov qword [rbx + 0x18], rax
call fcn.004b4840
cmp eax, 7
jne 0x4b4d96
mov rcx, rdi
call fcn.004b49c0
mov eax, 3
jmp 0x4b4d96
Function at 0x4b4f60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x4b4fb0
mov edx, dword [0x0058bcf8]
test edx, edx
js 0x4b4fc0
test edx, edx
mov rsi, qword [0x00c88158]
jne 0x4b4fd6
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
lea r8, [rsp + 0x24]
mov rdx, rsi
call fcn.004b4a30
cmp eax, 7
jne 0x4b4ff9
mov rcx, rsi
call fcn.004b49c0
nop dword [rax]
call fcn.004b4d20
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.004b4930
mov edx, dword [0x0058bcf8]
mov rsi, qword [0x00c88158]
test edx, edx
je 0x4b4f86
mov esi, dword [0x00c88150]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4b4f86
call sub.msvcrt.dll_abort
nop
nop
mov rax, qword [rcx + 8]
test rax, rax
je 0x4b5014
mov rdx, rcx
mov ecx, 1
jmp rax
ret
Function at 0x4c7820
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x4c784c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x52fcd0
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 rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x52fcf8
call r12
cmp dword [rax], 4
jne 0x52fd16
mov rcx, rbp
call fcn.0052fb40
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x52fcf0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
lea rcx, [0x0058ec20]
jmp 0x4b5220

Function at 0x586cd0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.004c4d80
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.004c4d80
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001dc0
Capabilities:
Check for debugger via api
Check for process debug object
Check processdebugflags
Check processdebugport

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
call fcn.140025960
mov r14, rax
mov edi, edx
mov ecx, 0x23
call fcn.1400334e0
call fcn.140025960
mov rsi, rax
mov ebx, edx
mov r8, qword [0x1428c80d0]
test r8, r8
jne 0x140001e23
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call sub.KERNEL32.dll_QueryPerformanceFrequency
test eax, eax
je 0x14000205a
mov r8, qword [rsp + 0x38]
mov qword [0x1428c80d0], r8
test r8, r8
je 0x14000205f
cmp r8, 0x3b9aca00
ja 0x140001e38
mov eax, 0x3b9aca00
xor edx, edx
div r8d
jmp 0x140001e3a
xor eax, eax
lea ecx, [rax - 0x3b9aca00]
xor edx, edx
cmp r8, 2
cmovae ecx, eax
setb al
xor r9d, r9d
cmp r14, rsi
setne r9b
mov r8d, 0xff
cmovae r8d, r9d
test r8b, r8b
jne 0x140001e71
cmp edi, ebx
setne r8b
jb 0x140001f10
cmp r8b, 1
jne 0x140001f10
mov r8, r14
sub r8, rsi
jb 0x14000205f
cmp edi, ebx
jae 0x140001eac
test r8, r8
je 0x14000205f
dec r8
lea r9d, [rdi + 0x3b9aca00]
sub r9d, ebx
cmp r9d, 0x3b9aca00
jae 0x140001ebb
jmp 0x140001ee0
mov r9d, edi
sub r9d, ebx
cmp r9d, 0x3b9aca00
jb 0x140001ee0
mov r10d, r9d
shr r10d, 9
imul r10, r10, 0x44b83
shr r10, 0x27
add r8, r10
jb 0x14000205f
imul r10d, r10d, 0x3b9aca00
sub r9d, r10d
mov dl, al
xor eax, eax
cmp r8, rdx
setne al
mov edx, 0xff
cmovb eax, edx
xor r8d, r8d
cmp r9d, ecx
setne r8b
cmovb r8d, edx
test al, al
cmovne r8d, eax
cmp r8b, 1
jne 0x140002055
cmp rsi, r14
jb 0x140002055
sub rsi, r14
cmp ebx, edi
jae 0x140001f32
test rsi, rsi
je 0x140002055
dec rsi
add ebx, 0x3b9aca00
sub ebx, edi
cmp ebx, 0x3b9aca00
jb 0x140001f53
shr ebx, 9
imul rax, rbx, 0x44b83
shr rax, 0x27
add rsi, rax
jb 0x14000205f
cmp rsi, 0x19
jb 0x140002055
lea rcx, [rsp + 0x38]
call fcn.14004e750
cmp byte [rsp + 0x38], 0x12
jne 0x14000205f
call fcn.140036ac0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.KERNEL32.dll_CheckRemoteDebuggerPresent
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 7
mov r9d, 8
call sub.ntdll.dll_NtQueryInformationProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, 0x1f
mov r9d, 4
call sub.ntdll.dll_NtQueryInformationProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0x1e
mov r9d, 8
call sub.ntdll.dll_NtQueryInformationProcess
cmp dword [rsp + 0x2c], 0
jne 0x140002055
cmp qword [rsp + 0x30], 0
jne 0x140002055
cmp dword [rsp + 0x28], 0
je 0x140002055
cmp qword [rsp + 0x38], 0
jne 0x140002055
mov ecx, 0x80000001
call sub.KERNEL32.dll_SetThreadExecutionState
call fcn.140002070
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140032e10
call sub.KERNEL32.dll_GetLastError
ud2
Function at 0x14001ee20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x14001ee4a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001ee63
add rax, 8
jmp 0x14001eefa
lea rcx, [0x140058108]
call fcn.14002abc0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14001ee41
je 0x14001ee7f
test rsi, rsi
je 0x14001ee83
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
je 0x14001ee85
mov rdi, qword [rsi + 8]
jmp 0x14001ee85
xor eax, eax
jmp 0x14001eefa
xor edi, edi
movzx eax, byte [0x1428c8100]
mov edx, 0x10
xor ecx, ecx
call fcn.1400321e0
test rax, rax
je 0x14001ef22
mov rbx, rax
mov rsi, rax
lea rax, [0x140058108]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x14001ef02
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058120]
test ecx, ecx
je 0x14001ef12
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14001eef7
mov rcx, qword [0x1428c80c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140058108]
call fcn.14002abc0
mov ecx, eax
jmp 0x14001eec1
lea rcx, [0x140058108]
call fcn.14002abc0
mov ecx, eax
jmp 0x14001eed5
ud2
Function at 0x140028ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, r9
mov rbx, r8
mov rdi, rcx
mov rax, qword [rdx]
mov r8, qword [rdx + 8]
mov rcx, r9
mov rdx, rax
call fcn.14002c790
cmp byte [rbx], 0
jne 0x140028ce2
lea rdx, [0x1428c1eb8]
mov r8d, 3
mov rcx, rsi
call fcn.14002d8c0
movabs rbx, 0x8000000000000000
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x20]
call fcn.1400310f0
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
cmp r15, rbx
jne 0x140028d1d
mov rcx, rbx
mov rdx, r14
call fcn.140028d90
mov qword [rdi], rbx
jmp 0x140028d55
mov r12, qword [rsp + 0x30]
mov rcx, r14
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x140028d3c
mov qword [rdi], r15
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r12
jmp 0x140028d55
mov qword [rdi], rbx
test r15, r15
je 0x140028d55
mov rcx, qword [0x1428c80c8]
xor edx, edx
mov r8, r14
call sub.KERNEL32.dll_HeapFree
cmp qword [rsi], 0
je 0x140028d7a
mov r8, qword [rsi + 8]
mov rcx, qword [0x1428c80c8]
xor edx, edx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14002a820
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ecx, dword [0x140058040]
test ecx, ecx
je 0x14002a847
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002a860
add rax, 8
jmp 0x14002a8fb
lea rcx, [0x140058028]
call fcn.14002abc0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002a83e
je 0x14002a8f9
movzx eax, byte [0x1428c8100]
mov edx, 0x10
xor ecx, ecx
call fcn.1400321e0
test rax, rax
je 0x14002a923
mov rbx, rax
mov rsi, rax
lea rax, [0x140058028]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140058040]
test ecx, ecx
je 0x14002a903
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x140058040]
test ecx, ecx
je 0x14002a913
dec ecx
add rbx, 8
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14002a8f4
mov rax, qword [rdi + 8]
test rax, rax
je 0x14002a8e3
lock dec qword [rax]
jne 0x14002a8e3
mov rcx, qword [rdi + 8]
call fcn.140023320
mov rcx, qword [0x1428c80c8]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rax, rbx
jmp 0x14002a8fb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140058028]
call fcn.14002abc0
mov ecx, eax
jmp 0x14002a8a6
lea rcx, [0x140058028]
call fcn.14002abc0
mov ecx, eax
jmp 0x14002a8ba
ud2

Function at 0x14002abc0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x14002ac45
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14002ac7c
cmp dword [rsp + 0x2c], 0
je 0x14002ac6d
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002ac7e
mov edi, eax
mov rax, qword [0x1428cb038]
mov rax, qword [0x1428c80c0]
nop dword [rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1428c80c0], rsi
jne 0x14002ac20
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14002ac72
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14002ac7c
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14002ac72
mov esi, eax
mov ecx, edi
call sub.KERNEL32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14002ac72
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
ud2