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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400b9070
cmp qword [0x14020b048], 0
mov rbx, rax
je 0x1400b94a8
test rax, rax
je 0x1400b94a8
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.1400b8ac0
cmp eax, 1
je 0x1400b94b6
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.14015e32c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1401c4b18]
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 0x1400b94bc
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.1400b8e30
nop
jmp fcn.14015e32c

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

Disassembly:
sub rsp, 0x28
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400b94f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400b9390
Function at 0x1400b9cb0
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 [0x1401d8d30]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400b9df8
cmp eax, 1
je 0x1400b9d1d
call fcn.1400b8bc0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.1400b84f0
mov r13d, dword [rbx]
test r13d, r13d
je 0x1400b9d40
cmp r13d, 1
jne 0x1400b9dd0
mov rcx, r12
call fcn.1400b87c0
test rdi, rdi
je 0x1400b9d1d
mov rcx, rdi
call fcn.1400b8f60
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x1400b9e4b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x1400b9040]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x1400b9e38
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call r13
test rax, rax
je 0x1400b9e20
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call r13
test rax, rax
je 0x1400b9e08
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400b9d08
mov ecx, 2
call qword [fcn.1400b67c0]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400b9d08
mov eax, 0x16
jmp 0x1400b9d1f
call fcn.1400b9390
test rax, rax
jne 0x1400b9db9
jmp 0x14015e35e
call fcn.1400b9390
test rax, rax
jne 0x1400b9d95
jmp 0x14015e34f
call fcn.1400b9390
test rax, rax
jne 0x1400b9d6f
jmp 0x14015e345
call fcn.1400ade70
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 0x1400ba0d0
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.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba148
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400b8ad0
cmp esi, dword [rbx + 0x48]
jae 0x1400ba123
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400ba123
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400b8b10
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.1400b9390
mov rbx, rax
jmp 0x1400ba0fd
Function at 0x1400ba160
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.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba260
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400b8ad0
cmp esi, dword [rbx + 0x48]
jae 0x1400ba1e0
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.1400b8b10
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 0x1400ba26d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x1400ba26d
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 0x1400ba1af
call fcn.1400b9390
mov rbx, rax
jmp 0x1400ba19a
mov rcx, r13
call fcn.1400b8b10
mov eax, 0xc
jmp 0x1400ba1cd

Function at 0x1400ba2f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba318
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400b9390
test rax, rax
jne 0x1400ba30a
add rsp, 0x28
ret

Function at 0x1400ba380
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba3a8
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400b9390
test rax, rax
jne 0x1400ba39a
jmp 0x1400ba39e

Function at 0x1400ba4c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140208c48]
test eax, eax
jne 0x1400ba4d8
xor eax, eax
add rsp, 0x28
ret
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba508
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400ba4ce
test byte [rax + 0x40], 3
je 0x1400ba4ce
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400ba4d0
call fcn.1400b9390
test rax, rax
jne 0x1400ba4ee
jmp 0x1400ba4ce

Function at 0x1400ba520
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba560
test ebx, ebx
jle 0x1400ba550
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.1400b9390
test rax, rax
jne 0x1400ba53d
add rsp, 0x20
pop rbx
ret
Function at 0x1400ba650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba6c8
test byte [rbx + 0x40], 0xc
jne 0x1400ba67f
mov eax, dword [0x140208c48]
test eax, eax
jne 0x1400ba690
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400b84f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400ba6b3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400ba6b3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400ba6dc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400b87c0
call fcn.1400b9390
mov rbx, rax
test rax, rax
jne 0x1400ba66f
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 0x1400ba6fa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400b87c0
call fcn.1400ba570
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400ba780
call fcn.1400b8280
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400ba7b8
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba810
test esi, esi
je 0x1400ba796
call fcn.1400ba650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400ba7f0
mov edx, edi
call fcn.1400b8350
call fcn.1400ba650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba800
call fcn.1400ba650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400ba650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400ba755
call fcn.1400b9390
mov rbx, rax
jmp 0x1400ba755
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ba76e
call fcn.1400b9390
jmp 0x1400ba796
call fcn.1400b9390
mov rbx, rax
jmp 0x1400ba751
Function at 0x1400ba710
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba6c8
test byte [rbx + 0x40], 0xc
jne 0x1400ba67f
mov eax, dword [0x140208c48]
test eax, eax
jne 0x1400ba690
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400b84f0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400ba6b3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400ba6b3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400ba6dc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400b87c0
call fcn.1400b9390
mov rbx, rax
test rax, rax
jne 0x1400ba66f
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 0x1400ba6fa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400b87c0
call fcn.1400ba570
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400ba780
call fcn.1400b8280
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400ba7b8
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba810
test esi, esi
je 0x1400ba796
call fcn.1400ba650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400ba7f0
mov edx, edi
call fcn.1400b8350
call fcn.1400ba650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ba800
call fcn.1400ba650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400ba650
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400ba755
call fcn.1400b9390
mov rbx, rax
jmp 0x1400ba755
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ba76e
call fcn.1400b9390
jmp 0x1400ba796
call fcn.1400b9390
mov rbx, rax
jmp 0x1400ba751

Function at 0x1400ba820
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400b92e0
mov ecx, dword [0x1401c4b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400ba890
test esi, esi
je 0x1400ba870
call fcn.1400ba650
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400ba8a0
mov edx, esi
call fcn.1400b8350
call fcn.1400ba650
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400ba650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400ba650
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400b9390
mov rbx, rax
jmp 0x1400ba841
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ba85a
Function at 0x14011f8a0
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 0x14011f8e8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14011f8ba
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005510]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001ac0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002792
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000282a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000280e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002802
cmp qword [rbp - 0x10], 0
je 0x140002802
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027c8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000282b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x180221fd0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180221ab0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18022200f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x180256280]
jmp 0x180222019
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x180242db0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140059343
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x140104ff0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x140159080]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x1401b1da3]
call fcn.14005c363
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.14005b580
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x1401050bb
cmp qword [rbp + 8], 0
je 0x140105083
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.14005b580
mov dword [rbp + 0x44], eax
jmp 0x140105061
cmp dword [rbp + 0x44], 0
jge 0x1401050e1
cmp qword [rbp + 8], 0
je 0x1401050da
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140105218
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1401050f7
xor eax, eax
jmp 0x140105218
mov dword [rbp + 0x84], 0
jmp 0x140105111
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x140105204
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.14005a725
mov rcx, qword [rbp + 0x210]
call fcn.1400594dd
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400594dd
mov qword [rbp + 0x1e0], rax
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x1401051f3
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400599e2
mov rax, qword [rbp + 0x1c8]
jmp 0x140105218
lea rcx, [rbp + 0xa8]
call fcn.1400599e2
jmp 0x140105103
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401414d0]
call fcn.14005b9c7
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.14005a892
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14005946f
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400a9530
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b14b8]
call fcn.14005c363
xor eax, eax
test eax, eax
je 0x1400a956a
movsx eax, byte [rbp + 0xf8]
or eax, 0x20
mov dword [rbp + 0xc0], eax
jmp 0x1400a9577
movsx eax, byte [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
mov eax, dword [rbp + 0xc0]
mov ecx, dword [rbp + 0xf0]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x140059528
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400b9d40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401b14f7]
call fcn.14005c363
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400b9d97
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400b9ea3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400b9e3c
cmp qword [rbp + 0x28], 0
jle 0x1400b9e3c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400b9ddc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14005bfcb
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1400b9e92
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400b9e92
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret