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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005543
cmp byte [rcx + 0x71], 0
je 0x140005543
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000553f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005504
sub eax, 1
je 0x140005508
cmp eax, 2
jne 0x14000553f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400166d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005536
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000553f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400054ec
xor al, al
jmp 0x1400054ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400166d0
add rsp, 0x60
pop rbx
ret
Function at 0x14000e1b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
mov r8d, 0x13
lea rdx, str.enabling_power_plan
lea rcx, [rbp - 0x69]
call fcn.140005de0
nop
xor r8d, r8d
lea rdx, [rbp - 0x69]
call fcn.14000bc70
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14000e241
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e23c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e23c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400166f0
lea rdx, str.temp_plan.pow
lea rcx, [rbp + 0x27]
call fcn.140002370
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x49]
call fcn.1400024c0
mov rdx, rax
call fcn.14000d3b0
mov qword [rbp + 0x1f], 0
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova rdx, qword [rbp + 0x27]
lea r8, [rbp + 0x1f]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerImportPowerScheme]
test eax, eax
jne 0x14000e331
lea rdx, str.Power_plan_loaded_successfully_from_resource._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000e420
mov rdx, qword [rbp + 0x1f]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerSetActiveScheme]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova rcx, qword [rbp + 0x27]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 7
jbe 0x14000e312
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e30d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e30d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400166f0
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400166d0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
lea rcx, [rbp + 0x27]
call fcn.1400028f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x69]
call fcn.14000d010
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140001290
nop
mov r8, rax
lea rdx, str.Failed_to_load_power_plan_from_resource._Error:
lea rcx, [rbp - 1]
call fcn.14000b490
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.14000d0c0
lea rdx, [0x140020b38]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000e900
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, ecx
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000e9b1
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r8d, [rax + 0x21]
lea rdx, str.CreateToolhelp32Snapshot_failed.
lea rcx, [rsp + 0x20]
call fcn.140005de0
nop
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x20]
call fcn.14000bc70
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000ea52
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x40], 0x1c
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x14000ea56
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x15
lea rdx, str.Thread32First_failed.
lea rcx, [rsp + 0x20]
call fcn.140005de0
nop
mov r8d, 1
lea rdx, [rsp + 0x20]
call fcn.14000bc70
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000ea52
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400166f0
xor eax, eax
jmp 0x14000eaa8
cmp dword [rsp + 0x4c], esi
jne 0x14000ea74
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x14000ea88
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14000ea56
jmp 0x14000ea9a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400166d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000ef20
Capabilities:
Enumerate threads
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, ecx
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000efd1
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r8d, [rax + 0x21]
lea rdx, str.CreateToolhelp32Snapshot_failed.
lea rcx, [rsp + 0x20]
call fcn.140005de0
nop
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x20]
call fcn.14000bc70
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000f072
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f06d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f06d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsp + 0x40], 0x1c
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x14000f076
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x15
lea rdx, str.Thread32First_failed.
lea rcx, [rsp + 0x20]
call fcn.140005de0
nop
mov r8d, 1
lea rdx, [rsp + 0x20]
call fcn.14000bc70
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000f072
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f06d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f06d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400166f0
xor eax, eax
jmp 0x14000f0c6
cmp dword [rsp + 0x4c], esi
jne 0x14000f0a6
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000f0a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14000f076
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400166d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000f0f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, r8
mov dword [rsp + 0x58], r9d
xor r15d, r15d
mov r8, rdx
mov rsi, rdx
mov dword [rsp + 0x28], r15d
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x20], r15
mov r9d, r14d
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.140016760
mov r9d, r14d
mov dword [rsp + 0x28], ebx
mov r8, rsi
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rdx, rdi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000f1d4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_creating_registry_key.
call fcn.1400059b0
mov rcx, rax
call fcn.14000f6d0
xor al, al
jmp 0x14000f280
mov dword [rsp + 0x28], r15d
mov r9d, r14d
mov r8, rbp
mov qword [rsp + 0x20], r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, r14
mov rcx, rax
call fcn.140016760
mov r9d, r14d
mov dword [rsp + 0x28], ebx
mov r8, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000f273
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_setting_DWORD_registry_value.
call fcn.1400059b0
mov rcx, rax
call fcn.14000f6d0
xor al, al
jmp 0x14000f280
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400166d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f2b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 7
mov rbx, r8
mov rdi, rdx
mov dword [rsp + 0x38], 4
jbe 0x14000f2df
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f33b
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x14000f309
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
mov esi, dword [rsp + 0x3c]
mov qword [rsp + 0x88], rbp
cmp rdx, 7
jbe 0x14000f386
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000f381
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000f400
mov rcx, r8
call fcn.1400166f0
xor ebp, ebp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov word [rdi], bp
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000f3d2
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000f3cd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000f400
mov rcx, r8
call fcn.1400166f0
mov qword [rbx + 0x10], rbp
mov eax, esi
mov word [rbx], bp
mov rbp, qword [rsp + 0x88]
mov qword [rbx + 0x18], 7
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400166d0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000f410
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r9
mov rax, r8
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x48], r12d
cmp qword [r8 + 0x18], 7
jbe 0x14000f471
mov rax, qword [r8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f639
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x14000f4a9
mov rdx, qword [r15]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f62e
cmp dword [rsp + 0x4c], 1
jne 0x14000f62e
xorps xmm0, xmm0
mov ebx, dword [rsp + 0x48]
movdqu xmmword [rsp + 0x50], xmm0
mov rsi, r12
mov qword [rsp + 0x60], r12
mov rdi, r12
cmp rbx, 2
jb 0x14000f56f
and rbx, 0xfffffffffffffffe
cmp rbx, 0x1000
jb 0x14000f532
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14000f65f
call fcn.1400166f8
test rax, rax
je 0x14000f658
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000f547
test rbx, rbx
je 0x14000f544
mov rcx, rbx
call fcn.1400166f8
mov rdi, rax
jmp 0x14000f547
mov rdi, r12
mov rbp, rdi
mov qword [rsp + 0x50], rdi
lea rsi, [rbx + rdi]
mov qword [rsp + 0x60], rsi
mov r8, rbx
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rbx, rsi
mov qword [rsp + 0x58], rbx
jmp 0x14000f579
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
cmp qword [r15 + 0x18], 7
jbe 0x14000f583
mov r15, qword [r15]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f5f4
sub rbx, rbp
sub rbx, 2
sar rbx, 1
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x14000f5e5
mov r15, r14
cmp rax, 7
jbe 0x14000f5c9
mov r15, qword [r14]
mov qword [r14 + 0x10], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + r15], r12w
jmp 0x14000f5f4
mov r9, rbp
mov rdx, rbx
mov rcx, r14
call fcn.14000b5c0
nop
test rdi, rdi
je 0x14000f62e
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rsi, 0x1000
jb 0x14000f623
add rsi, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14000f658
mov rdi, rcx
mov rdx, rsi
mov rcx, rdi
call fcn.1400166f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400166d0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400011d0
int3
Function at 0x140011140
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14001119a
mov r8d, 4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x1400111bb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400166d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x14001119a
mov eax, dword [rsp + 0x3c]
jmp 0x14001119c
Function at 0x140013e10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x40
mov rax, qword [0x140024040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140013e4b
lea r9, str.filename_null_
xor r8d, r8d
lea edx, [rsi + 4]
call fcn.140014100
jmp 0x140013f7c
mov qword [rsp + 0x60], rdi
call fcn.140013ca0
lea r8, [0x14001c340]
mov qword [rsp + 0x30], 0
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x140013f5c
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140013f5c
mov rcx, rbx
call fcn.140013ca0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
cmp eax, 0xffffffff
jne 0x140013ebe
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x140013f3e
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
cmp rsi, 0xffffffffffffffff
jae 0x140013f3e
test rsi, rsi
jne 0x140013ef7
lea edx, [rsi + 0xd]
jmp 0x140013f43
lea rcx, [rsi + 1]
call fcn.140016760
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
jne 0x140013f3e
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.140014290
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140013f77
mov edx, 5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140014100
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140013f77
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea r9, str.filename_s
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.140014100
mov rdi, qword [rsp + 0x60]
mov eax, dword [rbx + 0x6c]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400166d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret

Function at 0x140014600
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x78]
mov rdi, r8
mov rsi, rdx
test r9, r9
je 0x140014632
mov edx, 1
mov rcx, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rcx, 0x110
mov qword [rsp + 0x30], rbx
mov edx, edi
call fcn.140014fd0
mov r8, rdi
mov rdx, rsi
mov rbx, rax
lea rcx, [rax - 1]
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rsp + 0x38]
mov byte [rbx + rdi - 1], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001616c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400161a6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400161ab
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400161f4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140019990]
cmp byte [rcx + rax], 0
je 0x1400161f4
dec r8
sub rdx, 1
jne 0x1400161da
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400172cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017316
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017316
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017316
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017316
cmp dword [rcx + 0x84], 0xe
jbe 0x140017316
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017318
xor al, al
add rsp, 0x28
ret
Function at 0x1400028e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140002901
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000292e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002930
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002989
test ecx, ecx
jle 0x140002969
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002989
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002989
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al