joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d2e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140022040]
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.140005dd0
nop
xor r8d, r8d
lea rdx, [rbp - 0x69]
call fcn.14000aea0
nop
mov rdx, qword [rbp - 0x51]
cmp rdx, 0xf
jbe 0x14000d371
inc rdx
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d36c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d36c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014ee0
lea rdx, str.temp_plan.pow
lea rcx, [rbp + 0x27]
call fcn.140002340
nop
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x49]
call fcn.140002490
mov rdx, rax
call fcn.14000c4e0
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 0x14000d461
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.14000d550
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 0x14000d442
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d43d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d43d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014ee0
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140014ec0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
lea rcx, [rbp + 0x27]
call fcn.1400028e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x69]
call fcn.14000c140
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x49]
call fcn.140001260
nop
mov r8, rax
lea rdx, str.Failed_to_load_power_plan_from_resource._Error:
lea rcx, [rbp - 1]
call fcn.14000a830
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.14000c1f0
lea rdx, [0x14001f398]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000d9a0
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 [0x140022040]
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.140014f50
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 0x14000da84
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.1400059a0
mov rcx, rax
call fcn.14000df80
xor al, al
jmp 0x14000db30
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.140014f50
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 0x14000db23
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.1400059a0
mov rcx, rax
call fcn.14000df80
xor al, al
jmp 0x14000db30
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.140014ec0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000db60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140022040]
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 0x14000db8f
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 0x14000dbeb
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x14000dbb9
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 0x14000dc36
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000dc31
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000dcb0
mov rcx, r8
call fcn.140014ee0
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 0x14000dc82
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000dc7d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000dcb0
mov rcx, r8
call fcn.140014ee0
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.140014ec0
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 0x14000dcc0
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 [0x140022040]
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 0x14000dd21
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 0x14000dee9
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x14000dd59
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 0x14000dede
cmp dword [rsp + 0x4c], 1
jne 0x14000dede
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 0x14000de1f
and rbx, 0xfffffffffffffffe
cmp rbx, 0x1000
jb 0x14000dde2
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14000df0f
call fcn.140014ee8
test rax, rax
je 0x14000df08
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000ddf7
test rbx, rbx
je 0x14000ddf4
mov rcx, rbx
call fcn.140014ee8
mov rdi, rax
jmp 0x14000ddf7
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 0x14000de29
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
cmp qword [r15 + 0x18], 7
jbe 0x14000de33
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 0x14000dea4
sub rbx, rbp
sub rbx, 2
sar rbx, 1
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x14000de95
mov r15, r14
cmp rax, 7
jbe 0x14000de79
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 0x14000dea4
mov r9, rbp
mov rdx, rbx
mov rcx, r14
call fcn.14000e140
nop
test rdi, rdi
je 0x14000dede
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rsi, 0x1000
jb 0x14000ded3
add rsi, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14000df08
mov rdi, rcx
mov rdx, rsi
mov rcx, rdi
call fcn.140014ee0
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.140014ec0
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.1400011a0
int3
Function at 0x14000f9c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov esi, ecx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000fa76
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r8d, [rax + 0x22]
lea rdx, str.Failed_to_create_process_snapshot
lea rcx, [rsp + 0x20]
call fcn.140005dd0
nop
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x20]
call fcn.14000aea0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000fae9
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fa6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000fa6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140014ee0
jmp 0x14000fae9
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000fae0
cmp dword [rsp + 0x60], esi
jne 0x14000face
mov ecx, dword [rsp + 0x48]
call fcn.14000f9c0
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000face
mov edx, 1
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 0x14000fa90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140014ec0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000fb10
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140022040]
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 0x14000fb6a
mov r8d, 4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14000fb8b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140014ec0
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 0x14000fb6a
mov eax, dword [rsp + 0x3c]
jmp 0x14000fb6c
Function at 0x140012600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x40
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001263b
lea r9, str.filename_null_
xor r8d, r8d
lea edx, [rsi + 4]
call fcn.1400128f0
jmp 0x14001276c
mov qword [rsp + 0x60], rdi
call fcn.140012490
lea r8, [0x14001aca8]
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 0x14001274c
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14001274c
mov rcx, rbx
call fcn.140012490
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 0x1400126ae
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14001272e
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 0x14001272e
test rsi, rsi
jne 0x1400126e7
lea edx, [rsi + 0xd]
jmp 0x140012733
lea rcx, [rsi + 1]
call fcn.140014f50
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 0x14001272e
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.140012a80
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140012767
mov edx, 5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.1400128f0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140012767
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea r9, str.filename_s
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.1400128f0
mov rdi, qword [rsp + 0x60]
mov eax, dword [rbx + 0x6c]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140014ec0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret

Function at 0x140012df0
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 0x140012e22
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.1400137c0
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 0x14001495c
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 0x140014996
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001499b
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 0x1400149e4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140017930]
cmp byte [rcx + rax], 0
je 0x1400149e4
dec r8
sub rdx, 1
jne 0x1400149ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140015abc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015b06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015b06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015b06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015b06
cmp dword [rcx + 0x84], 0xe
jbe 0x140015b06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140015b08
xor al, al
add rsp, 0x28
ret
Function at 0x1400019e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x5c]
xor edi, edi
mov qword [rsp + 0x40], rax
mov rbx, rdx
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
lea rdx, str.KakaoTalkADGuard
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
mov edx, edi
test eax, eax
sete dl
mov dword [0x140005a5c], edx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x116
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rax, [rsp + 0x5c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREKakaoTalkADGuard
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x64], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HideTrayIcon
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x58], edi
mov rcx, qword [rsp + 0x50]
setne dil
mov dword [0x140005a58], edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002140
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140002a3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002a86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002a86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002a86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002a86
cmp dword [rcx + 0x84], 0xe
jbe 0x140002a86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002a88
xor al, al
add rsp, 0x28
ret
Function at 0x18000b8a0
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 0x18000b8c8
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 0x18000b8ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000b8f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000b949
test ecx, ecx
jle 0x18000b929
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 0x18000b949
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000b949
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

Function at 0x18000b970
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000b992
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000b9a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000b9c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000b9c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000ba02
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000ba9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000ba3d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000ba7e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000ba9e
cmp rbx, rax
ja 0x18000ba50
test rbx, rbx
je 0x18000ba9e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret