joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001c110]
mov dword [rax], 1
mov rax, qword [0x14001c120]
mov dword [rax], 1
mov rax, qword [0x14001c130]
mov dword [rax], 1
mov rax, qword [0x14001c100]
mov dword [rax], 1
mov rax, qword [0x14001bfb0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002e70
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140002e91
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x140003c20
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x140003c70
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [0x140023150]
mov r12, rcx
mov rbx, rdx
test rsi, rsi
je 0x140003d38
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x140003cb4
call sym.strlen
mov rbx, rax
test rax, rax
jne 0x140003cf0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rsi
lea rcx, [0x14001a140]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140003d70
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
lea rcx, [rax + 9]
call sym.malloc
lea r8, [rbx + 1]
mov rdx, r12
mov qword [rax], rbx
mov r13, rax
lea rcx, [rax + 8]
call sym.memcpy
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], r13
call rsi
test byte [r13 + 7], 0x40
jne 0x140003ccd
mov rcx, r13
call fcn.14000d360
jmp 0x140003ccd
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
jmp sym.fflush
mov byte [rax], 0
lea rcx, [0x14001a0a0]
call sym.__emutls_get_address
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u162

Function at 0x1400050a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov rbx, qword [0x140023150]
test rbx, rbx
je 0x140005140
mov ecx, 0x26
call sym.malloc
movabs rdx, 0x6b63617473206f4e
movabs rcx, 0x6162656361727420
mov qword [rax + 8], rdx
mov r12, rax
movabs rdx, 0x6c69617661206b63
mov qword [rax + 0x10], rcx
lea rcx, [rsp + 0x20]
mov qword [rax], 0x1d
mov qword [rax + 0x18], rdx
mov dword [rax + 0x20], 0x656c6261
mov eax, 0xa
mov word [r12 + 0x24], ax
mov qword [rsp + 0x20], 0x1d
mov qword [rsp + 0x28], r12
call rbx
test byte [r12 + 7], 0x40
je 0x140005180
lea rcx, [0x14001a140]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140005190
add rsp, 0x38
pop rbx
pop r12
ret
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, [0x14001b388]
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x38
pop rbx
pop r12
jmp sym.fflush
mov rcx, r12
call fcn.14000d360
jmp 0x140005124
mov byte [rax], 0
lea rcx, [0x14001a0a0]
call sym.__emutls_get_address
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop r12
jmp sym.eqcopy___stdZtypedthreads_u162
Function at 0x140005450
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140023120]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x1400054df
lea rcx, [0x14001a140]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x1400054ad
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x1400054e6
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u6675
cmp byte [rdi], 0
je 0x1400054a0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14001b249]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006670
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400072a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400232e8]
test eax, eax
je 0x14000733a
lea rax, [0x1400232c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400232f0]
mov qword [rbp - 8], rax
jmp 0x14000731e
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 0x140007312
cmp qword [rbp - 0x10], 0
je 0x140007312
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 0x1400072d8
lea rax, [0x1400232c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000733b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140007440
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 0x140007468
mov eax, 0
jmp 0x1400074b6
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 0x140007491
mov eax, 0
jmp 0x1400074b6
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 0x1400074b1
mov eax, 0
jmp 0x1400074b6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400074bc
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 0x14000753a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140007531
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 0x140007531
mov rax, qword [rbp - 8]
jmp 0x14000754f
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 0x140007504
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000ee74
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14000efbe
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x14000efb1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14000ef67
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14000ef7d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14000ef63
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14000ef9c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14000efbf
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14000ffdb
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x14001a2a0], eax
mov eax, dword [0x14001a2a0]
cmp eax, 0xffffffff
jne 0x140010002
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140023d70]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001a2a0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140010208
mov rax, qword [rbp - 0x10]
jmp 0x140010368
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x140010224
cmp qword [rbp - 0x10], 0
jne 0x14001022e
mov eax, 0
jmp 0x140010368
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140010309
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14001a2a0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140010364
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140010462
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400104cf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x14001a2a0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140010613
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001056c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140010527
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001a2a0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140010613
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400105a6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140010613
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001a2a0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140011255
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x14001a2b0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140023d70]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001a2a0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14001136a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14001a2b0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140011338
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x14001a2b0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x140011379
lea rax, [0x14001a2b0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400113b5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140011423
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x14001a2a0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001146d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001146d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14001a2b0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001145f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14000b310
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
cmp qword [rdx + 0x18], 8
mov rbp, rcx
mov qword [rdx + 0x10], rbx
jb 0x14000b335
mov rax, qword [rdx]
jmp 0x14000b338
mov rax, rsi
xor r8d, r8d
mov word [rax], bx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14000b38e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000b37e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000b36c
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140009d90
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov eax, 2
mov qword [rsp + 0x40], rdi
mul r14
mov qword [rsp + 0x48], r15
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.14000e0b4
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000b3f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000b3db
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140009d90
xor al, al
jmp 0x14000b422
cmp word [rdi], bx
je 0x14000b40a
mov rbx, r15
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000b400
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400060e0
mov rcx, rdi
call fcn.14000e0ac
mov al, 1
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x140005a90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp - 0x40], esp
mov qword [rsp + 0x20], rdi
push r12
push r14
mov dword [rsp - 0x1c], 0x2d936199
push r15
sub rsp, 0x40
mov rsi, qword [rdx + 8]
lea rbp, [rdx + 8]
xchg rdi, rdi
mov rdi, rdx
mov r15, rcx
cmp rsi, 4
mov dword [rsp - 0x30], 0x2e554b58
jbe 0x140005adc
mov rdi, qword [rdx]
lea rcx, [rsi + 1]
mov dword [rsp - 0x28], 0x58f7300b
mov eax, 0xa268f96
xor eax, 0x6f309301
xor eax, 0x37b7bb84
sub eax, 0x3b88ec72
mov dword [rsp - 0x44], 0x1ebc002b
xor eax, 0x6c40aed2
sub eax, 0x7b581471
mul rcx
pushf
mov dword [rsp - 0x20], edx
movabs rcx, 0xffffffff3525ab56
xor rcx, 0xd52fba9
xor rcx, 0x235026d
mov dword [rsp - 0x3c], 0x517a33a5
sub rcx, 0x303e0567
add rcx, 0x7fffffff
xor rcx, 0x75fbb2d5
mov dword [rsp - 0x1c], edi
popf
cmovo rax, rcx
mov rcx, rax
call fcn.140073cf0
mov dword [rsp - 0x14], ecx
xor r12d, r12d
mov rbx, rax
mov r8d, r12d
test rsi, rsi
mov r15, r15
je 0x140005be5
sub rdi, rax
nop word [rax + rax]
mov dword [rsp - 0x34], 0x6124062c
movzx ecx, r8b
lea rax, [rax + 2]
and cl, 3
mov r8, r8
mov edx, 0x21e58afb
sub edx, 0x72ab2ca
xor edx, 0x536875e6
mov dword [rsp - 0x2c], esp
sub edx, 0x1d911529
sub edx, 0x291fc79a
xor edx, 0x1b728f91
mov dword [rsp - 0x44], 0x1d1d400a
shl cl, 3
inc r8
sar edx, cl
movsx ecx, dl
xchg rbx, rbx
xor cx, word [rdi + rax - 2]
mov word [rax - 2], cx
cmp r8, rsi
jb 0x140005b89
xchg rbp, rbp
mov word [rbx + rsi*2], r12w
mov r8, rbx
mov rax, qword [0x1400a4ee0]
xchg rbx, rbx
xor edx, edx
mov ebp, dword [rbp]
mov ecx, 0x3567029c
add ecx, 0x5649090
mov dword [rsp - 0x14], ebp
xor ecx, 0x44d5011b
sub ecx, 0x461cc678
sub ecx, 0x3800cdd6
mov dword [rsp - 0x40], 0x48ed2142
xor rax, qword [0x1400a4ab0]
mov r9d, ebp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp - 0x40], esp
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call rax
xchg r9, r9
movsxd rdi, eax
lea rcx, [rdi + 1]
call fcn.140073cf0
mov r10, qword [0x1400a4ee0]
xchg r14, r14
lea edx, [rdi + 1]
xor r10, qword [0x1400a4ab0]
mov r9d, ebp
xchg r8, r8
mov qword [rsp + 0x38], r12
mov r8, rbx
mov qword [rsp + 0x30], r12
mov dword [rsp - 0x44], 0x4f6a5a3d
mov ecx, 0x3c3589fb
xor ecx, 0xc8995e3
add ecx, 0x32cba90d
mov rsp, rsp
sub ecx, 0x4241abd5
add ecx, 0x54269a1e
xor ecx, 0x6b179d1e
mov dword [rsp - 0x34], edi
sub ecx, 0x1e7a3087
mov dword [rsp + 0x28], edx
mov rsi, rax
xor edx, edx
mov dword [rsp - 0x24], 0x44645a08
mov qword [rsp + 0x20], rax
call r10
mov byte [rdi + rsi], r12b
xchg rdi, rdi
mov rcx, rbx
mov qword [r15], rsi
call fcn.140073d00
mov r10, r10
mov rbx, qword [rsp + 0x60]
mov rax, r15
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov dword [rsp - 0x1c], esp
mov rdi, qword [rsp + 0x78]
mov byte [r15 + 8], 0x44
add byte [r15 + 8], 9
mov rsp, rsp
add byte [r15 + 8], 0x2f
xor byte [r15 + 8], 0x20
xor byte [r15 + 8], 0x31
mov r11, r11
add byte [r15 + 8], 7
sub byte [r15 + 8], 0x73
add rsp, 0x40
mov dword [rsp - 0x30], edi
pop r15
pop r14
pop r12
mov dword [rsp - 0x30], esi
ret