joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445220
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44538f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x445238
cmp edx, ecx
jne 0x44537d
nop dword [rax]
test rsi, rsi
jne 0x44537d
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x445296
nop
call fcn.00464d80
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
nop dword [rax + rax]
call fcn.00445120
mov rcx, qword [0x005e93b8]
mov rdx, qword [0x005e93b0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
sar esi, 5
mov r8d, esi
shl esi, 5
sub edi, esi
test edi, edi
jl 0x445378
cmp edi, 0x20
sbb esi, esi
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x44536d
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x005e9ff0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x005e9ff0], rbx
mov edx, 1
lea rsi, [0x005e9ff8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x44535c
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1228], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x00519280]
mov ebx, 0x28
call fcn.00436c00
mov rcx, rax
mov rax, rsi
call fcn.00463440
call fcn.00435020
lea rax, [0x00518538]
mov ebx, 0x23
call fcn.00436c00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460d60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00445220
Function at 0x140014870
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x1400148e0
jg 0x1400148a0
sub edx, 0x49
cmp dl, 1
ja 0x1400148f0
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.140014910
cmp dl, 0x58
jne 0x1400148f0
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.140014be0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x140014900
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.140014690
add rsp, 0x30
pop rsi
jmp fcn.140012fe0
xor eax, eax
jmp 0x1400148da
Function at 0x14001dd50
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.140028af0
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.140028af0
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 0x14001ddc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401d10d4]
mov rbx, rcx
test esi, esi
jle 0x14001def0
mov rax, qword [0x1401d10d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001de0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001de95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001ddf0
mov rcx, rbx
call fcn.14001e840
mov rdi, rax
test rax, rax
je 0x14001df12
mov rax, qword [0x1401d10d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14001e980
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401d10d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001def7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001de8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001dea0
add dword [0x1401d10d4], 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 [0x1401d10d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001de8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001dd50
nop dword [rax]
xor esi, esi
jmp 0x14001de18
mov rax, qword [0x1401d10d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14001dd50
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14001dd50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001e4b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401d1140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d1120]
test rbx, rbx
je 0x14001e50c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14001e503
test eax, eax
jne 0x14001e503
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e4e8
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 0x14001e840
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14001e8c0
Capabilities:
Parse pe header

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

Function at 0x14001e980
Capabilities:
Parse pe header

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

Function at 0x14001f8c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14001f8f0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14001f910
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14001f940
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14002b560
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401d1c80], 1
je 0x14002b600
lea rdi, [0x1401d1c80]
mov rcx, rdi
call fcn.14002af00
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14002a810
mov esi, dword [0x1401d1c80]
test esi, esi
jne 0x14002b5d8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14011de38], eax
cmp eax, 0xffffffff
je 0x1400de236
mov dword [0x1401d1c80], 1
mov rcx, rbp
call fcn.14002aae0
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14002b1e0
cmp esi, 1
je 0x14002b5bc
mov ecx, 2
call qword [fcn.140028af0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14002b5bc
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14002b610
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14002b2f0
mov rbx, rax
test rax, rax
je 0x14002b70c
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.14002adf0
cmp eax, 1
je 0x14002b718
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 0x1400de23c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14011de38]
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 0x1400de23c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14002b150
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002b740
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14002b610
Function at 0x14002bf00
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1401a9ef0]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14002c060
cmp eax, 1
je 0x14002bf65
call fcn.14002af00
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.14002a810
mov ebp, dword [rbx]
test ebp, ebp
je 0x14002bf88
cmp ebp, 1
jne 0x14002c028
mov rcx, r13
call fcn.14002aae0
mov rcx, rdi
call fcn.14002b1e0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14002c0ab
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14002b2c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14002b560
mov ecx, dword [0x14011de38]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14002c098
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14002b560
mov ecx, dword [0x14011de38]
call rbp
test rax, rax
je 0x14002c080
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14002b560
mov ecx, dword [0x14011de38]
call rbp
test rax, rax
je 0x14002c070
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14002aae0
mov rcx, rdi
call fcn.14002b1e0
jmp 0x14002bf65
mov ecx, 2
call qword [fcn.140028af0]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14002aae0
mov rcx, rdi
call fcn.14002b1e0
jmp 0x14002bf65
mov eax, 0x16
jmp 0x14002bf67
call fcn.14002b610
test rax, rax
jne 0x14002bffe
jmp 0x1400de26e
call fcn.14002b610
test rax, rax
jne 0x14002bfdb
jmp 0x1400de25f
call fcn.14002b610
test rax, rax
jne 0x14002bfb6
jmp 0x1400de255
call fcn.14001f910
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 0x14002c330
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.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002c3a8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14002ae00
cmp esi, dword [rbx + 0x48]
jae 0x14002c383
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14002c383
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14002ae50
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.14002b610
mov rbx, rax
jmp 0x14002c35d
Function at 0x14002c3c0
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.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002c4b8
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14002ae00
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14002c483
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14002c4c5
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14002c4c5
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
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14002ae50
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
call fcn.14002b610
mov rbx, rax
jmp 0x14002c3fa
mov rcx, r13
call fcn.14002ae50
mov eax, 0xc
jmp 0x14002c4a1

Function at 0x14002c560
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002c588
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14002b610
test rax, rax
jne 0x14002c57a
add rsp, 0x28
ret

Function at 0x14002c5f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002c618
add rax, 0x18
add rsp, 0x28
ret
call fcn.14002b610
test rax, rax
jne 0x14002c60a
jmp 0x14002c60e

Function at 0x14002c730
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401d1c88]
test eax, eax
jne 0x14002c748
xor eax, eax
add rsp, 0x28
ret
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002c778
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002c73e
test byte [rax + 0x40], 3
je 0x14002c73e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14002c740
call fcn.14002b610
test rax, rax
je 0x14002c73e
jmp 0x14002c75e

Function at 0x14002c790
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002c7d0
test ebx, ebx
jle 0x14002c7c0
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.14002b610
test rax, rax
jne 0x14002c7ad
add rsp, 0x20
pop rbx
ret
Function at 0x14002c8c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002c938
test byte [rbx + 0x40], 0xc
jne 0x14002c8ef
mov eax, dword [0x1401d1c88]
test eax, eax
jne 0x14002c900
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002a810
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002c923
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002c923
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002c94c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002aae0
call fcn.14002b610
mov rbx, rax
test rax, rax
jne 0x14002c8df
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 0x14002c96a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002aae0
call fcn.14002c7e0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002c9e8
call fcn.14002a4d0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002ca30
test rsi, rsi
je 0x14002c9fe
call fcn.14002c8c0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002ca20
mov edx, edi
call fcn.14002a5a0
call fcn.14002c8c0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002ca40
call fcn.14002c8c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002c8c0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002c9d6
call fcn.14002b610
mov rbx, rax
jmp 0x14002c9bc
call fcn.14002b610
jmp 0x14002c9fe
Function at 0x14002c980
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002c938
test byte [rbx + 0x40], 0xc
jne 0x14002c8ef
mov eax, dword [0x1401d1c88]
test eax, eax
jne 0x14002c900
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14002a810
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002c923
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002c923
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002c94c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14002aae0
call fcn.14002b610
mov rbx, rax
test rax, rax
jne 0x14002c8df
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 0x14002c96a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14002aae0
call fcn.14002c7e0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002c9e8
call fcn.14002a4d0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002ca30
test rsi, rsi
je 0x14002c9fe
call fcn.14002c8c0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002ca20
mov edx, edi
call fcn.14002a5a0
call fcn.14002c8c0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002ca40
call fcn.14002c8c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002c8c0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002c9d6
call fcn.14002b610
mov rbx, rax
jmp 0x14002c9bc
call fcn.14002b610
jmp 0x14002c9fe

Function at 0x14002ca50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14002b560
mov ecx, dword [0x14011de38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002cac0
test esi, esi
je 0x14002caa0
call fcn.14002c8c0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002cad0
mov edx, esi
call fcn.14002a5a0
call fcn.14002c8c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002c8c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002c8c0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002b610
mov rbx, rax
jmp 0x14002ca71
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002ca8a
Function at 0x14001ccf0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14001cd36
mov r15, rbx
test r15, r15
je 0x14001ce11
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14001cd92
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x14001cd81
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140088e90
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14001cd12
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14001ce2d
lea rcx, [r13*8]
call fcn.140056d40
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14001cdf3
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14001ce11
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14001cdd8
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14001ce13
add rbx, 0xfffffffffffffff8
jne 0x14001ce06
ud2
test r12, r12
je 0x14001cd12
mov rcx, r12
call fcn.140056d7c
mov r15, qword [rsi + 0x10]
jmp 0x14001cd12
call fcn.14008a530
int3

Function at 0x140023af0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023b78
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140023b62
cmp dword [rsp + 0x38], 4
jne 0x140023b62
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140058180
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140023b62