joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025710
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x14001b880], r14
mov dword [rbp + 0x28], r14d
je 0x14002574e
test rcx, rcx
je 0x140025889
mov eax, dword [0x14001b888]
mov dword [rcx], eax
jmp 0x140025889
xorps xmm0, xmm0
lea r8, [0x1400295f0]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r14w
je 0x14002577a
add rax, rdx
sub rcx, 1
jne 0x140025769
jmp 0x140025794
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
jne 0x1400257ad
xor eax, eax
jmp 0x140025890
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
jne 0x1400257e2
lea r9, [0x140029610]
xor edx, edx
lea r8, [0x140029620]
lea ecx, [rax + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x1400257a6
mov rdx, rax
xor ecx, ecx
mov r8d, 0x656e6f42
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140009ac0
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140025876
mov r9d, dword [rbx]
mov edx, r14d
test r9d, r9d
je 0x140025876
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x140025840
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x140025850
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x140025876
jmp 0x14002582d
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x14001b880], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x14001b888], eax
test rdi, rdi
je 0x140025876
mov dword [rdi], eax
test rbx, rbx
je 0x140025889
mov edx, 0x656e6f42
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x14001b880]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

Function at 0x140086d0f
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + 0x10], 0x515a346d
xor dword [rsp + 0x10], 0x5ccd0658
cmp qword [rsp + 0x10], 0x369f55cf
js fcn.140086d0f
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x18]
call fcn.14011d56e
call fcn.14006f9b9

Function at 0x140095243
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x30]
call fcn.14011bb6f
xchg ebx, eax
outsb dx, byte [rsi]
invalid
Function at 0x1fe861370
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x1fe8613d8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.E___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x1fe8614de
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x1fe86142a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.E___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x1fe8614de
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x1fe8614fa
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r9d, 0
lea r8, str.Gemini_Security
lea rax, str.Welcome_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov dword [rbp - 4], 0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1fe86157c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.E___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x1fe861661
lea rcx, [rbp - 0x18]
mov edx, dword [rbp - 4]
lea rax, [rbp - 0x18]
mov r9d, 0
mov r8, rcx
mov rcx, rax
call sym.X_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 0x10]
mov r9, rdx
mov r8d, 0x20
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x1fe8615e4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.E___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x1fe861661
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1fe861641
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.E___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x1fe861661
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x10]
call rax
mov eax, 1
add rsp, 0x50
pop rbp
ret

Function at 0x1fe861810
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1fe861880
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1fe86c064]
mov rbx, rcx
test esi, esi
jle 0x1fe8619b0
mov rax, qword [0x1fe86c068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1fe8618cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1fe861955
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1fe8618b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1fe8619d2
mov rax, qword [0x1fe86c068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1fe86c068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1fe8619b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1fe86194e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1fe861960
add dword [0x1fe86c064], 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 [0x1fe86c068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1fe86194e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1fe8618d8
mov rax, qword [0x1fe86c068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1fe861d50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1fe86c0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1fe86c080]
test rbx, rbx
je 0x1fe861dac
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 eax, eax
jne 0x1fe861da3
test rsi, rsi
je 0x1fe861da3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1fe861d88
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 0x1fe861fc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1fe861fd8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1fe861fe0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1fe861ff0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1fe86203d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1fe862034
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1fe86203f
add rax, 0x28
cmp rax, r9
jne 0x1fe862020
xor eax, eax
ret

Function at 0x1fe862040
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1fe8620d0
mov rdx, qword [0x1fe8695d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1fe8620be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1fe8620be
cmp word [rax + 0x18], 0x20b
jne 0x1fe8620be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1fe8620d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1fe8620a9
add rbx, 0x28
cmp rbx, rdi
je 0x1fe8620d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1fe8620a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1fe8620e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1fe862160
Capabilities:
Parse pe header

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

Function at 0x1fe8621a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1fe8695d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1fe8621c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1fe8621c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1fe8621c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1fe862210
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1fe862207
test rcx, rcx
je 0x1fe8621c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1fe8621f8
xor eax, eax
ret
Function at 0x1fe862220
Capabilities:
Parse pe header

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

Function at 0x1fe862260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1fe8695d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1fe862280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1fe862288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1fe862280
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1fe862280
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1fe8622d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1fe8622e0
add rdx, 0x28
cmp r9, rdx
jne 0x1fe8622c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1fe8622f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1fe8695d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1fe862312
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1fe862320
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1fe862312
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1fe862312
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1fe862312
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1fe862375
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1fe862388
add rdx, 0x28
cmp rdx, r10
jne 0x1fe862360
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1fe862397
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1fe8623a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1fe86237e
test ecx, ecx
jg 0x1fe862390
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001f41
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14003c0c0
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rsp], rax
mov rax, 0x3c
mov dword [rsp + rax], 0xcccccccc
sub rax, 4
cmp rax, 4
jg 0x14003c0d5
mov rax, qword [rsp]
mov dword [rsp], 0xcccccccc
mov dword [rsp + 4], 0xcccccccc
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov qword [rbp + 0x40], r8
mov byte [rbp], 0
mov byte [rbp + 1], 0
mov byte [rbp], 1
mov qword [rbp + 8], 0
mov rax, qword [rbp + 8]
mov rdx, qword [rbp + 0x40]
cmp rax, rdx
jae 0x14003c15e
mov rax, qword [rbp + 8]
add rax, qword [rbp + 0x38]
movzx eax, byte [rax]
movzx eax, al
xor qword [rbp + 0x30], rax
movabs rax, 0x100000001b3
imul rax, qword [rbp + 0x30]
mov qword [rbp + 0x30], rax
mov byte [rbp], 1
mov eax, 1
add rax, qword [rbp + 8]
mov qword [rbp + 8], rax
jmp 0x14003c119
mov byte [rbp + 1], 1
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140002ef5
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400a5630
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
call fcn.14000431d
mov ecx, 8
imul rcx, rcx, 5
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rax + rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x1400a5698
cmp dword [rsp + 0x20], 0x31
je 0x1400a569f
cmp dword [rsp + 0x20], 0x32
je 0x1400a56a6
jmp 0x1400a56ad
mov eax, 2
jmp 0x1400a56af
mov eax, 1
jmp 0x1400a56af
mov eax, 3
jmp 0x1400a56af
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140003783
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400cb420
mov rax, rcx
neg rcx
test rax, 7
je 0x1400cb43d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400cb498
test al, 7
jne 0x1400cb430
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 0x1400cb451
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400cb4c2
test dh, dh
je 0x1400cb4bc
shr rdx, 0x10
test dl, dl
je 0x1400cb4b6
test dh, dh
je 0x1400cb4b0
shr rdx, 0x10
test dl, dl
je 0x1400cb4aa
test dh, dh
je 0x1400cb4a4
shr edx, 0x10
test dl, dl
je 0x1400cb49e
test dh, dh
jne 0x1400cb451
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 0x1400037bf
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401602c0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14015fe40
lea rcx, [rsp + 0x20]
call fcn.14015fe90
movzx eax, al
test eax, eax
jne 0x140160305
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14015fe70
mov rax, qword [rsp + 0x40]
jmp 0x1401603ff
lea rcx, [rsp + 0x20]
call fcn.14015ff90
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14015ff30
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.140003b8e
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400030c6
lea rcx, [rsp + 0x28]
call fcn.14000407a
movzx eax, al
test eax, eax
jne 0x14016039f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14000566e
lea rcx, [rsp + 0x20]
call fcn.14015fe70
mov rax, qword [rsp + 0x50]
jmp 0x1401603ff
lea rcx, [rsp + 0x20]
call fcn.14015ff90
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400067b2
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.140003acb
lea rcx, [rsp + 0x28]
call fcn.14000724d
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.14000566e
lea rcx, [rsp + 0x20]
call fcn.14015fe70
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x140003d23
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400c7900
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400c7280
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400c793f
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 [0x140288020]
jmp 0x1400c7949
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140003fb2
Capabilities:
Query environment variable

Disassembly:
jmp 0x140160010
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14015fe40
lea rcx, [rsp + 0x40]
call fcn.14015ffc0
movzx eax, al
test eax, eax
jne 0x140160058
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14015fe70
mov rax, qword [rsp + 0x70]
jmp 0x140160229
lea rcx, [rsp + 0x40]
call fcn.14015ff90
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14015ff30
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.14015ff90
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.14000523b
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401600fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14015fe70
mov rax, qword [rsp + 0x80]
jmp 0x140160229
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140003b8e
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003959
lea rcx, [rsp + 0x48]
call fcn.140003319
movzx eax, al
test eax, eax
jne 0x140160165
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001d9d
lea rcx, [rsp + 0x40]
call fcn.14015fe70
mov rax, qword [rsp + 0x88]
jmp 0x140160229
lea rcx, [rsp + 0x48]
call fcn.1400044b7
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14015ff90
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.14000523b
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401601fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001d9d
lea rcx, [rsp + 0x40]
call fcn.14015fe70
mov rax, qword [rsp + 0xa0]
jmp 0x140160229
lea rcx, [rsp + 0x48]
call fcn.14000390e
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001d9d
lea rcx, [rsp + 0x40]
call fcn.14015fe70
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140003fcb
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400c7830
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400c7200
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400c7871
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 [0x140288020]
jmp 0x1400c7877
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140004084
Capabilities:
Get geographical location

Disassembly:
jmp 0x14016be30
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.14016ada0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14016be97
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 [0x140288030]
jmp 0x14016beb9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14000327e
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 0x1400040a7
Capabilities:
Terminate process

Disassembly:
jmp 0x14004f320
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