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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00521900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005218e0]
test rbx, rbx
je 0x40cbb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40cbab
test r12, r12
je 0x40cbab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40cb90
lea rcx, [0x00521900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40cef0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004fa840]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40cf69
mov rcx, r10
call fcn.0040cdc0
test eax, eax
je 0x40cf69
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40cf66
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40cf5d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40cf69
add r8, 0x28
cmp r8, r9
jne 0x40cf48
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x40d900
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov qword [rbp], r8
mov r15, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov rsi, rax
lea r13d, [rax + 0xf]
lea edi, [rax + 0x10]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d1a0
sub rsp, rax
movsxd r12, esi
mov rdx, r15
movsxd r13, r13d
mov r8, r12
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
movabs rax, 0x656d68732d636367
mov qword [rsp + 0x20], rax
mov eax, 0x326d
lea r15d, [rsi + 0x50]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r12 + 0x10]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r13 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r13 + 0x20], 0x2d
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d9fa
int3
mov rcx, r14
add esi, 0x51
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x40da48
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.0040d890
mov r14, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r13, rax
mov eax, 0x40
nop dword [rax + rax]
bt r13, rax
jae 0x40da73
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x40da60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x40da87
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, esi
call fcn.0040d890
mov r14, rax
cmp r13, rax
je 0x40daad
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x40da1f
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
cmp qword [rbp], 0
je 0x40da1f
mov rcx, r14
call qword [rbp]
jmp 0x40da1f

Function at 0x41ad70
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x005223e8]
test rbx, rbx
je 0x41ada8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x005223e8]
test rax, rax
je 0x41add0
cmp dword [rax], 0xffffffff
je 0x4b4010
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005223e8], rax
mov rbx, rax
jmp 0x41ad81
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005223e8], rax
jmp 0x41ad95
call sub.msvcrt.dll_abort
nop
Function at 0x41b280
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x41b2a5
call fcn.0041a120
cmp eax, 1
je 0x41b2b2
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
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 0x41b338
mov eax, 0x28
jmp 0x41b30a
add rax, 1
cmp rax, 0x6b
je 0x41b32a
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x41b300
cmp eax, 0x6a
je 0x41b32a
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x41b318
Function at 0x41b340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x005223f0]
test rcx, rcx
je 0x41b498
cmp dword [rcx], 1
je 0x41b363
call fcn.0041b200
mov rax, qword [0x005223e8]
test rax, rax
je 0x41b4c0
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x41b390
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.0041aba0
cmp qword [0x00525050], 0
mov rbx, rax
je 0x41b383
test rax, rax
je 0x41b383
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.0041b280
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
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 0x4b4016
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
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
mov rax, qword [0x005223e8]
test rax, rax
je 0x41b4e8
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4b4016
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0041e8d0
mov qword [0x005223f0], rax
mov rcx, rax
jmp 0x41b359
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005223e8], rax
jmp 0x41b373
lea r8, [0x0041a180]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call fcn.0041e8d0
mov qword [0x005223e8], rax
jmp 0x41b46e
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x41e8d0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r12, rcx
movsxd rbx, edx
call sub.msvcrt.dll_strlen
mov r8, rax
lea eax, [rax + 0xf]
mov dword [rbp - 0x54], eax
lea eax, [r8 + 0x51]
lea edi, [r8 + 0x10]
cdqe
lea r15d, [r8 + 0x50]
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040d1a0
movabs rcx, 0x656d68732d636367
sub rsp, rax
movsxd r13, r8d
mov rdx, r12
mov eax, 0x326d
mov r8, r13
mov qword [rsp + 0x20], rcx
lea r14, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r14 + r13 + 0x10]
movsxd r12, dword [rbp - 0x54]
mov r8, r14
movabs rdx, 0x6161616161616161
movabs rcx, 0x6161616161616161
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rdx
xor edx, edx
mov qword [rax + 0x38], rcx
movsxd rax, r15d
xor ecx, ecx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + r12 + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + r12 + 0x20], 0x2d
mov edx, 0xffffffff
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41e9ce
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
je 0x41ea20
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041e860
mov r14, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r12, rax
mov eax, 0x40
bt r12, rax
jae 0x41ea43
mov edx, r15d
sub edx, eax
movsxd rdx, edx
mov byte [r14 + rdx], 0x41
sub eax, 1
jne 0x41ea30
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
jne 0x41ea57
int3
mov rdx, r14
movzx ecx, ax
mov r9d, edi
mov r8d, r15d
call fcn.0041e860
mov r14, rax
cmp r12, rax
je 0x41ea7d
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x41e9f0
xor edx, edx
mov r8, rbx
mov rcx, rax
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x41e9f0
mov rcx, r14
call rsi
jmp 0x41e9f0
Function at 0x41fde0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch event tracing for windows function

Disassembly:
push r12
push rbx
sub rsp, 0x48
lea rcx, str.ntdll.dll
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtTraceEvent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x41fe38
mov rcx, qword [0x004fa250]
lea rdx, str.Failed_to_get_address_of_NtTraceEvent.
call fcn.004affd0
mov rcx, rax
call fcn.004adea0
mov eax, 1
jmp 0x41fe7c
lea r9, [rsp + 0x34]
lea r12, [rsp + 0x38]
mov edx, 8
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x28], r9
mov r8d, 0x40
mov rcx, r12
call rbx
mov rax, qword [rsp + 0x38]
mov r9, qword [rsp + 0x28]
mov rcx, r12
mov edx, 8
mov byte [rax], 0xc3
mov r8d, dword [rsp + 0x34]
call rbx
xor eax, eax
add rsp, 0x48
pop rbx
pop r12
ret

Function at 0x420500
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3400]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp fcn.0040d900

Function at 0x420520
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004b3410]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp fcn.0040d900
Function at 0x47c130
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47c157
call rbp
cmp dword [rax], 4
jne 0x47c174
mov rcx, rdi
call fcn.0047bf30
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47c150
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4b34f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows fibers

Disassembly:
push r12
sub rsp, 0x30
call fcn.0040bd20
call fcn.0041fde0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
mov edx, dword [0x004f4080]
mov r9d, 4
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x004f4080]
mov r9d, 0x12
lea r8, str.msoxouauoenxisiai
lea rcx, [0x004b7ea0]
mov r12, rax
call fcn.0041fdb0
mov edx, dword [0x004f4080]
mov r9d, 0x15
lea r8, str.cckiaajfjiixpoanasid
lea rcx, [0x004b7ea0]
call fcn.0041fdb0
mov r8d, dword [0x004f4080]
lea rdx, [0x004b7ea0]
mov rcx, r12
call sub.msvcrt.dll_memmove
mov edx, dword [0x004f4080]
lea r9, [rsp + 0x2c]
mov rcx, r12
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_CreateFiber]
mov rcx, rax
test rax, rax
jne 0x4b35cb
mov rcx, qword [0x004fa250]
lea rdx, str.Failed_to_create_fiber.
call fcn.004affd0
mov rcx, rax
call fcn.004adea0
mov eax, 1
jmp 0x4b35d3
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
xor eax, eax
add rsp, 0x30
pop r12
ret
Function at 0x2fc4cfe30
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d0f10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d0832
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d08ca
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d08ae
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 0x2fc4d08a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d08a2
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 0x2fc4d0868
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d08cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d09d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d09f8
mov eax, 0
jmp 0x2fc4d0a46
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 0x2fc4d0a21
mov eax, 0
jmp 0x2fc4d0a46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d0a41
mov eax, 0
jmp 0x2fc4d0a46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d0a4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d0aca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d0ac1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d0ac1
mov rax, qword [rbp - 8]
jmp 0x2fc4d0adf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d0a94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400bff7d
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140102440
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140102468
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401024b2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14010245d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c174c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401616f0
mov rax, rcx
neg rcx
test rax, 7
je 0x14016170d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140161768
test al, 7
jne 0x140161700
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140161721
mov rdx, qword [rax - 8]
test dl, dl
je 0x140161792
test dh, dh
je 0x14016178c
shr rdx, 0x10
test dl, dl
je 0x140161786
test dh, dh
je 0x140161780
shr rdx, 0x10
test dl, dl
je 0x14016177a
test dh, dh
je 0x140161774
shr edx, 0x10
test dl, dl
je 0x14016176e
test dh, dh
jne 0x140161721
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c1792
Capabilities:
Query environment variable

Disassembly:
jmp 0x14021c630
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14021c1b0
lea rcx, [rsp + 0x20]
call fcn.14021c200
movzx eax, al
test eax, eax
jne 0x14021c675
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14021c1e0
mov rax, qword [rsp + 0x40]
jmp 0x14021c76f
lea rcx, [rsp + 0x20]
call fcn.14021c300
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14021c2a0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c1b43
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c108a
lea rcx, [rsp + 0x28]
call fcn.1400c202a
movzx eax, al
test eax, eax
jne 0x14021c70f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c3605
lea rcx, [rsp + 0x20]
call fcn.14021c1e0
mov rax, qword [rsp + 0x50]
jmp 0x14021c76f
lea rcx, [rsp + 0x20]
call fcn.14021c300
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c46b8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c1a8a
lea rcx, [rsp + 0x28]
call fcn.1400c50db
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c3605
lea rcx, [rsp + 0x20]
call fcn.14021c1e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c1ce7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14015d7d0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14015d150
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015d80f
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 [0x1402c8020]
jmp 0x14015d819
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c1f58
Capabilities:
Query environment variable

Disassembly:
jmp 0x14021c380
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14021c1b0
lea rcx, [rsp + 0x40]
call fcn.14021c330
movzx eax, al
test eax, eax
jne 0x14021c3c8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14021c1e0
mov rax, qword [rsp + 0x70]
jmp 0x14021c599
lea rcx, [rsp + 0x40]
call fcn.14021c300
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14021c2a0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14021c300
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400c3209
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14021c46e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14021c1e0
mov rax, qword [rsp + 0x80]
jmp 0x14021c599
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c1b43
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c1904
lea rcx, [rsp + 0x48]
call fcn.1400c12e2
movzx eax, al
test eax, eax
jne 0x14021c4d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400bfde8
lea rcx, [rsp + 0x40]
call fcn.14021c1e0
mov rax, qword [rsp + 0x88]
jmp 0x14021c599
lea rcx, [rsp + 0x48]
call fcn.1400c247b
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14021c300
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400c3209
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14021c56b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400bfde8
lea rcx, [rsp + 0x40]
call fcn.14021c1e0
mov rax, qword [rsp + 0xa0]
jmp 0x14021c599
lea rcx, [rsp + 0x48]
call fcn.1400c18b9
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400bfde8
lea rcx, [rsp + 0x40]
call fcn.14021c1e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c1f71
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14015d700
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14015d0d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14015d741
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402c8020]
jmp 0x14015d747
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c202f
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401faf80
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401f9ef0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401fafe7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402c8030]
jmp 0x1401fb009
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c1247
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c2043
Capabilities:
Terminate process

Disassembly:
jmp 0x14013a520
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret