joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b270
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400960a8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, rcx
cmp qword [rcx + 0x68], 0
je 0x14000b440
cmp byte [rcx + 0x71], 0
je 0x14000b440
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140002ab0]
or edx, 0xffffffff
mov rcx, r15
call rbx
cmp eax, 0xffffffff
jne 0x14000b2dc
xor al, al
jmp 0x14000b442
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000ac70
nop
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
nop dword [rax]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, rcx
lea r14, [rbp - 0x30]
cmovae r14, rcx
mov rsi, qword [r15 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call qword [fcn.140002ab0]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r15 + 0x74]
mov rcx, rsi
call rdi
test eax, eax
je 0x14000b362
sub eax, 1
jne 0x14000b3d8
jmp 0x14000b367
mov byte [r15 + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000b3b4
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov r9, qword [r15 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.14004d894
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000b3e5
cmp byte [r15 + 0x71], 0
je 0x14000b3e9
test rbx, rbx
jne 0x14000b310
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000ad50
jmp 0x14000b301
sub eax, 2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x14000b3e9
xor bl, bl
jmp 0x14000b3eb
mov bl, 1
cmp rdx, 0x10
jb 0x14000b43b
lea rax, [rdx + 1]
cmp rax, 0x1000
jb 0x14000b436
test byte [rbp - 0x30], 0x1f
je 0x14000b409
call fcn.14004c910
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000b418
call fcn.14004c910
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000b427
call fcn.14004c910
int3
cmp rcx, 0x27
jbe 0x14000b433
call fcn.14004c910
int3
mov rcx, rax
call fcn.1400245c0
movzx eax, bl
jmp 0x14000b442
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140024560
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140011910
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400960a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r8d, 4
mov dword [0x1400a0d24], 0xffffffff
lea rdx, str.FREQ
mov qword [rsp + 0x48], 0xf
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
call fcn.140002d80
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, str.Processor_Performance_PPM_Processor_0_Processor_Frequency
call fcn.14001aea0
test al, al
je 0x1400119a2
call fcn.14001b150
mov rax, qword [0x1400a1c80]
mov ecx, dword [rax + 8]
mov dword [0x1400a0d24], ecx
call fcn.14001b060
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140024560
add rsp, 0x78
ret
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0x104
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x5c], 4
test eax, eax
jne 0x140011a27
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, str.MHz
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x1400a0d24]
test eax, eax
cmove ecx, dword [rsp + 0x58]
mov dword [0x1400a0d24], ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140024560
add rsp, 0x78
ret
Function at 0x140017ee0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x1400960a8]
xor rax, rsp
mov qword [rbp + 0x540], rax
lea rax, [0x140017710]
mov dword [rsp + 0x20], 0x100e0
xor esi, esi
mov qword [rbp - 0x48], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov dword [rsp + 0x70], 0x1f4
mov bl, 1
call fcn.1400207e0
test eax, eax
je 0x140017f54
xor bl, bl
lea rcx, str.NvTopps:_Clock_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140017840]
mov dword [rbp], 0x100e0
lea rdx, [rbp]
mov qword [rbp + 0x98], rax
mov rcx, rdi
mov qword [rbp + 8], rsi
mov dword [rbp + 0x50], 0x1f4
call fcn.140020bf0
test eax, eax
je 0x140017f93
xor bl, bl
lea rcx, str.NvTopps:_Voltage_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140017950]
mov dword [rbp + 0xe0], 0x100e0
lea rdx, [rbp + 0xe0]
mov qword [rbp + 0x178], rax
mov rcx, rdi
mov qword [rbp + 0xe8], rsi
mov dword [rbp + 0x130], 0x1f4
call fcn.140020b20
test eax, eax
je 0x140017fde
xor bl, bl
lea rcx, str.NvTopps:_Utilization_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140017a70]
mov dword [rbp + 0x1c0], 0x100e0
lea rdx, [rbp + 0x1c0]
mov qword [rbp + 0x258], rax
mov rcx, rdi
mov qword [rbp + 0x1c8], rsi
mov dword [rbp + 0x210], 0x1f4
call fcn.140020a50
test eax, eax
je 0x140018029
xor bl, bl
lea rcx, str.NvTopps:_Thermal_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140017df0]
mov dword [rbp + 0x2a0], 0x100e0
lea rdx, [rbp + 0x2a0]
mov qword [rbp + 0x338], rax
mov rcx, rdi
mov qword [rbp + 0x2a8], rsi
mov dword [rbp + 0x2f0], 0x1f4
call fcn.140021270
test eax, eax
je 0x140018074
xor bl, bl
lea rcx, str.NvTopps:_Power_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140017ca0]
mov dword [rbp + 0x380], 0x100e0
lea rdx, [rbp + 0x380]
mov qword [rbp + 0x418], rax
mov rcx, rdi
mov qword [rbp + 0x388], rsi
mov dword [rbp + 0x3d0], 0x1f4
call fcn.140020980
test eax, eax
je 0x1400180bd
lea rcx, str.NvTopps:_Perf_Policy_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, [0x140017b80]
mov dword [rbp + 0x460], 0x100e0
lea rdx, [rbp + 0x460]
mov qword [rbp + 0x4f8], rax
mov rcx, rdi
mov qword [rbp + 0x468], rsi
mov dword [rbp + 0x4b0], 0x1f4
call fcn.1400208b0
test eax, eax
je 0x140018106
lea rcx, str.NvTopps:_Fan_callback_registration_failed_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, bl
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.140024560
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140021b50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140021c13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140021b84
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140021c16
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140021bcf
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140021bd3
test rax, rax
je 0x140021c13
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140021c04
cmp rdx, rax
jb 0x140021bf0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400224b0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x14009eb90]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x1400224f9
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.140023100
mov qword [0x14009eb90], rax
test rax, rax
je 0x1400225d6
cmp qword [0x14009eb98], rsi
jne 0x140022529
lea rdx, [0x140073920]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009eb98], rax
test rax, rax
je 0x1400225d6
mov rax, qword [0x14009eb90]
cmp qword [0x14009eba0], rsi
jne 0x140022559
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009eba0], rax
test rax, rax
je 0x1400225d6
mov rax, qword [0x14009eb90]
cmp qword [0x14009ecd0], rsi
jne 0x140022585
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009ecd0], rax
test rax, rax
je 0x1400225d6
mov rax, qword [0x14009eb90]
cmp qword [0x14009eba8], rsi
jne 0x1400225b1
lea rdx, [0x140073950]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009eba8], rax
test rax, rax
je 0x1400225d6
mov rax, qword [0x14009eb90]
cmp qword [0x14009e628], rsi
jne 0x1400225dd
lea rdx, [0x140073818]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14009e628], rax
test rax, rax
jne 0x1400225dd
xor eax, eax
jmp 0x14002267d
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x14009eb98]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140022676
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x14009eba0]
test eax, eax
je 0x14002266d
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.140022a40
cmp eax, 1
je 0x140022693
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x14009eba0]
test eax, eax
jne 0x140022630
mov rcx, rdi
call qword [0x14009e628]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x140022678
Function at 0x140023940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140023b65
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x140023966
test rax, rax
je 0x1400239a4
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140023b65
cmp r8w, 0x2f
je 0x140023b65
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140023980
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140023b80
mov rsi, rax
test rax, rax
je 0x140023a95
mov qword [rsp + 0x50], r14
call fcn.140024310
mov r14, rax
test rax, rax
je 0x140023a82
mov rcx, rsi
call fcn.1400219b0
test eax, eax
je 0x140023a6b
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140023a17
mov r8, rbx
mov rcx, rsi
call fcn.140053310
test eax, eax
je 0x140023a3f
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140023a10
jmp 0x140023a4e
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140023340
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140023a79
mov rcx, rsi
call fcn.140021950
test eax, eax
je 0x140023a79
mov rbp, rsi
xor esi, esi
jmp 0x140023a79
mov rdx, rsi
mov rcx, r14
call fcn.140023340
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x140023b31
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140023b3a
mov rcx, rbx
call fcn.140021830
mov rdi, rax
test rax, rax
je 0x140023b3a
mov ecx, 0x37e4
call fcn.140022ee0
test eax, eax
je 0x140023acf
xor ecx, ecx
call fcn.140024050
jmp 0x140023ad4
call fcn.140024310
mov rbx, rax
test rax, rax
je 0x140023b28
mov rdx, rdi
mov rcx, rax
call fcn.140023340
mov rbp, rax
test rax, rax
je 0x140023b1f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023b01
test al, 0x50
je 0x140023b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140023b14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140023b3a
xor ecx, ecx
jmp 0x140023b47
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140023b4d
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x140024310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140024372
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140024367
cmp edi, eax
jb 0x140024367
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400283e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400283f3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140032788
lea rdx, [0x140093ed0]
lea rcx, [rsp + 0x20]
call fcn.14004567c
int3

Function at 0x14003316c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14009f3b8]
xor edx, edx
jmp fcn.1400283e0

Function at 0x140033b8c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14009f3b8]
jmp fcn.1400283e0

Function at 0x140054220
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400540b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400540b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400540b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400540b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400540b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400540b3
cmp dword [rcx + 0xf8], 0
je 0x1400540b3
mov ecx, ebx
call fcn.140054154
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140053f44
cmp dword [rbp + 0x20], 0
je 0x140054100
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140054108
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005404c
Function at 0x1400a67f2
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401a6e40
mov rax, rcx
neg rcx
test rax, 7
je 0x1401a6e5d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401a6eb8
test al, 7
jne 0x1401a6e50
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 0x1401a6e71
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401a6ee2
test dh, dh
je 0x1401a6edc
shr rdx, 0x10
test dl, dl
je 0x1401a6ed6
test dh, dh
je 0x1401a6ed0
shr rdx, 0x10
test dl, dl
je 0x1401a6eca
test dh, dh
je 0x1401a6ec4
shr edx, 0x10
test dl, dl
je 0x1401a6ebe
test dh, dh
jne 0x1401a6e71
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 0x1400a6b53
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140138790
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140138110
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401387cf
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 [0x1402fc020]
jmp 0x1401387d9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400a6cc5
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401c1a20
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401c1850
lea rcx, [rsp + 0x40]
call fcn.1401c19d0
movzx eax, al
test eax, eax
jne 0x1401c1a68
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401c1880
mov rax, qword [rsp + 0x70]
jmp 0x1401c1c39
lea rcx, [rsp + 0x40]
call fcn.1401c19a0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401c1940
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.1401c19a0
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.1400a77d8
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401c1b0e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401c1880
mov rax, qword [rsp + 0x80]
jmp 0x1401c1c39
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400a6a59
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400a690f
lea rcx, [rsp + 0x48]
call fcn.1400a6586
movzx eax, al
test eax, eax
jne 0x1401c1b75
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5839
lea rcx, [rsp + 0x40]
call fcn.1401c1880
mov rax, qword [rsp + 0x88]
jmp 0x1401c1c39
lea rcx, [rsp + 0x48]
call fcn.1400a6fd1
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401c19a0
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.1400a77d8
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401c1c0b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400a5839
lea rcx, [rsp + 0x40]
call fcn.1401c1880
mov rax, qword [rsp + 0xa0]
jmp 0x1401c1c39
lea rcx, [rsp + 0x48]
call fcn.1400a68ec
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400a5839
lea rcx, [rsp + 0x40]
call fcn.1401c1880
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400a6ccf
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401386c0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140138090
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140138701
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 [0x1402fc020]
jmp 0x140138707
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400a6d56
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401bacf0
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.1401b9c20
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401bad57
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 [0x1402fc030]
jmp 0x1401bad79
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400a6527
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 0x1400a6d6a
Capabilities:
Terminate process

Disassembly:
jmp 0x1401147b0
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
Function at 0x1400a6f77
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401d89e0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402e8178]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1401d8a06
jmp 0x1401d8a83
mov rcx, qword [rbp + 0x30]
call fcn.1400a67f2
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1401d8a1f
jmp 0x1401d8a83
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1401d8a3c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400a599c
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400a5dbb
test eax, eax
jne 0x1401d8a83
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400a69dc
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400a7468
Capabilities:
Parse pe header

Disassembly:
jmp 0x140116020
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140116040
xor al, al
jmp 0x1401160c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140116053
xor al, al
jmp 0x1401160c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14011607d
xor al, al
jmp 0x1401160c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140116091
xor al, al
jmp 0x1401160c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401160a3
xor al, al
jmp 0x1401160c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401160bf
xor al, al
jmp 0x1401160c1
mov al, 1
add rsp, 0x38
ret