joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a1a0
Capabilities:
Enumerate threads

Disassembly:
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15d, ecx
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a1f8
lea rdx, str.Failed_to_create_thread_snapshot.
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
xor al, al
jmp 0x14001a3d1
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14001a3ab
mov qword [rsp + 0x90], r12
xor r12d, r12d
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x98], rdi
cmp dword [rsp + 0x44], r15d
jne 0x14001a36b
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14001a345
lea rcx, [0x1400bb5d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14001a33a
lea rdx, str.NtQueryInformationThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtFreezeThread
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rbx, rbx
je 0x14001a33a
test rax, rax
je 0x14001a33a
mov r9d, 8
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x30]
mov edx, 9
mov rcx, rsi
call rbx
test eax, eax
js 0x14001a33a
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14001a33a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x30
lea r8, [rsp + 0x58]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14001a33a
cmp qword [rsp + 0x60], rdi
jne 0x14001a33a
lea rdx, str.Freezing_thread_ID:
lea rcx, [0x1400cac40]
call fcn.14000bd60
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.140008700
mov rcx, rax
call fcn.14000c010
xor edx, edx
mov rcx, rsi
call rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001a36b
lea rdx, str.Failed_to_open_thread_for_process_ID:
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov edx, r15d
mov rcx, rax
call fcn.140008700
mov rcx, rax
call fcn.14000c010
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14001a241
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
jmp 0x14001a3c6
lea rdx, str.Failed_to_iterate_through_threads.
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140034bd0
add rsp, 0xa8
pop r15
pop r14
ret
Function at 0x14001a3f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0x3a8
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rbp, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a447
lea rdx, str.Failed_to_create_process_snapshot.
lea rcx, [0x1400cadc0]
call fcn.14000bd60
mov rcx, rax
call fcn.14000c010
xor al, al
jmp 0x14001a53b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001a530
mov qword [rsp + 0x3d0], rsi
mov qword [rsp + 0x3a0], r14
xor r14d, r14d
mov qword [rsp + 0x3c8], rbx
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x6c]
mov dword [rsp + 0x28], 0x104
mov r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp qword [rbp + 0x20], 0xf
lea rdx, [rbp + 8]
jbe 0x14001a4c3
mov rdx, qword [rbp + 8]
lea rcx, [rsp + 0x280]
call fcn.140052c80
test eax, eax
jne 0x14001a502
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001a502
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001a480
mov r14, qword [rsp + 0x3a0]
mov rsi, qword [rsp + 0x3d0]
mov rbx, qword [rsp + 0x3c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140034bd0
add rsp, 0x3a8
pop rdi
pop rbp
ret
Function at 0x14001ce40
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x14001ce64
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x14001cef2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001cec0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x14001cec0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140099350
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001cedd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14001cee5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x14001ce81
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x14001cfd0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x14001cf09
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001cf0b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001cf3d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140099350
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001cfcd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001cf78
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14001cfae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140057780
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14001cfcd
cmp rsi, rax
ja 0x14001cf81
test rsi, rsi
je 0x14001cfcd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140057780
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

Function at 0x14001ebf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
cmp rdx, r8
jbe 0x14001ec69
lea rax, str.transposed_pointer_range
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1400ba2e0]
lea rax, [0x1400b9fdc]
mov r8d, 0x510
mov ecx, 2
mov qword [rsp + 0x20], rax
call fcn.1400407b0
cmp eax, 1
jne 0x14001ec44
int3
mov r9d, 0x510
mov qword [rsp + 0x20], rbx
lea r8, str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.41.34120includexutility
lea rdx, [0x1400ba114]
lea rcx, str._transposed_pointer_range_
call fcn.140041260
movabs rax, 0xcbf29ce484222325
sub rdi, rsi
je 0x14001ec95
movabs rdx, 0x100000001b3
movzx ecx, byte [rsi + rbx]
inc rbx
xor rax, rcx
imul rax, rdx
cmp rbx, rdi
jb 0x14001ec82
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140026190
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x84], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x88]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140026265
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140026265
mov r9d, dword [rbx + 0x84]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14002627e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x84], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140026255
cmp byte [rcx], 0x5c
jne 0x14002624e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14002624e
mov r8d, dword [rbx + 0x90]
test r8b, 8
jne 0x14002623c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14002624b
test r8b, 0x10
jne 0x14002624e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14002624e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140020980
test edi, edi
jne 0x1400261b3
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140020970
int3
Function at 0x14002cf80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14002cfbd
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14002cf20
add rsp, 0x58
ret

Function at 0x14002de00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x70]
mov ecx, 0x105
call fcn.14002d2c0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14002de3f
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
jmp 0x14002dee1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14002de60
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x14002de77
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x34]
jmp 0x14002dee1
mov eax, dword [rsp + 0x24]
and eax, 0x400
test eax, eax
je 0x14002decc
mov r9d, 0x2000000
mov r8d, 0x80
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14002def0
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.14002d340
nop
cmp dword [rsp + 0x28], 0
je 0x14002decc
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0x3c]
jmp 0x14002dee1
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x44]
add rsp, 0x68
ret

Function at 0x14003f5d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14003f0b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14003f60f
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 [0x14009e568]
jmp 0x14003f619
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400588a0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400588c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.1400589c0
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140068860
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x14006ffc0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.1400554e0
movzx eax, al
test eax, eax
je 0x14006ffe7
mov al, 1
jmp 0x1400700dc
lea rcx, [rsp + 0x60]
call fcn.140055520
movzx eax, al
test eax, eax
je 0x140070026
lea rcx, [rsp + 0x60]
call fcn.14002d170
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.14002d170
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x140070026
xor al, al
jmp 0x1400700dc
lea rcx, [rsp + 0x60]
call fcn.140058180
mov ecx, eax
call fcn.140085530
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14007004b
xor al, al
jmp 0x1400700dc
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140070090
xor al, al
jmp 0x1400700dc
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400700b9
xor al, al
jmp 0x1400700dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x1400700cf
mov dword [rsp + 0x20], 1
jmp 0x1400700d7
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x1400715d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400966a0
sub rsp, rax
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400cc4c0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400717ca
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140071716
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140071716
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400716fb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140071698
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007178a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400717e9
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1400717c5
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400717e9
jmp 0x14007166e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140034bd0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140071810
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400966a0
sub rsp, rax
mov rax, qword [0x1400c9080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1400cc4c0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140071a25
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140071969
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140071969
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140071949
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400718d8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400719e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140071a44
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x140071a20
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140071a44
jmp 0x1400718ae
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140034bd0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140074c30
Capabilities:
Get geographical location

Disassembly:
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.1400741a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140074c8c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
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 fcn.140099230
jmp 0x140074cae
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140074f40
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 0x140082e90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14002d060
lea rcx, [rsp + 0x40]
call fcn.140082e50
movzx eax, al
test eax, eax
jne 0x140082ed8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140082d80
mov rax, qword [rsp + 0x70]
jmp 0x1400830a9
lea rcx, [rsp + 0x40]
call fcn.14002d170
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140082e00
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.14002d170
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.140078f20
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140082f7e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140082d80
mov rax, qword [rsp + 0x80]
jmp 0x1400830a9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400433c0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14002d060
lea rcx, [rsp + 0x48]
call fcn.140034ba0
movzx eax, al
test eax, eax
jne 0x140082fe5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14002d0d0
lea rcx, [rsp + 0x40]
call fcn.140082d80
mov rax, qword [rsp + 0x88]
jmp 0x1400830a9
lea rcx, [rsp + 0x48]
call fcn.14002d170
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14002d170
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.140078f20
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14008307b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14002d0d0
lea rcx, [rsp + 0x40]
call fcn.140082d80
mov rax, qword [rsp + 0xa0]
jmp 0x1400830a9
lea rcx, [rsp + 0x48]
call fcn.140038600
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14002d0d0
lea rcx, [rsp + 0x40]
call fcn.140082d80
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret