joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029b94
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d134
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d134
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029ce4
cmp rax, 0xffffffffffffffff
je 0x140029ce4
xor edi, edi
test rbp, rbp
jle 0x140029c8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fdb4
mov rbx, rax
test rax, rax
jne 0x140029c1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c85
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aad0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de10
cmp eax, 0xffffffff
je 0x140029c65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c2c
mov edx, r15d
mov ecx, r14d
call fcn.14001aad0
jmp 0x140029c85
cmp byte [rsi + 0x38], dil
je 0x140029c7c
cmp dword [rsi + 0x34], 5
jne 0x140029c7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b414
jmp 0x140029cf8
jns 0x140029cf8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d134
cmp rax, 0xffffffffffffffff
jne 0x140029cb0
cmp byte [rsi + 0x30], dil
je 0x140029cf8
mov edi, dword [rsi + 0x2c]
jmp 0x140029cf8
mov ecx, r14d
call fcn.140019608
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029cf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029cf8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029cf1
mov eax, dword [rsi + 0x2c]
jmp 0x140029cf6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d134
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002adf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, str..PhysicalDrive0
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400010c0
add rsp, 0x260
pop rbx
ret
Function at 0x140009060
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 0x14000909a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000909f
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 0x1400090e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000b470]
cmp byte [rcx + rax], 0
je 0x1400090e8
dec r8
sub rdx, 1
jne 0x1400090ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009b24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009b6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009b6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009b6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009b6e
cmp dword [rcx + 0x84], 0xe
jbe 0x140009b6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009b70
xor al, al
add rsp, 0x28
ret
Function at 0x140001078
Capabilities:
Parse pe header

Disassembly:
jmp 0x140050448
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 0x140050213
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140050213
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050213
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140050213
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140050213
cmp dword [rcx + 0x84], 0xe
jbe 0x140050213
cmp dword [rcx + 0xf8], 0
je 0x140050213
mov ecx, ebx
call fcn.1400503a4
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.14004ff08
cmp dword [rbp + 0x20], 0
je 0x140050260
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140050298
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400501ac

Function at 0x140001127
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140066914
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400898f8]
mov ecx, 5
lea r8, [0x1400898f0]
lea rdx, str.FlsGetValue
call fcn.140065f0c
mov ecx, ebx
test rax, rax
je 0x14006694e
add rsp, 0x20
pop rbx
jmp qword [0x1400ac010]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]

Function at 0x140001708
Capabilities:
Access the windows event log

Disassembly:
jmp 0x14000dab0
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140003c8d
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.140001294
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x26c], esi
jne 0x14000db36
lea rcx, [rsp + 0x60]
call fcn.140002d38
lea rdx, [rdi + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000db87
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001d61
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400017f8
Capabilities:
Delete registry key

Disassembly:
jmp 0x14000d410
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000d4c5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000d491
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000d4b0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x14000d4b0
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x14000d4b0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x14009dd99], 0
jne 0x14000d510
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000d500
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x14009dd90], rax
mov byte [0x14009dd99], 1
jmp 0x14000d517
mov rax, qword [0x14009dd90]
mov byte [0x14009dd99], 1
jmp 0x14000d517
mov rax, qword [0x14009dd90]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14000d49a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax

Function at 0x140001992
Capabilities:
Terminate process

Disassembly:
jmp 0x14001cb30
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x140001c3f
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001aac0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140002c02
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400846c8]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.1400018ac
test eax, eax
jne 0x14001ab57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001ab57
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
test eax, eax
je 0x14001ab50
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov byte [0x14009d730], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140001cdf
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14006696c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140089918]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140089910]
call fcn.140065f0c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400669ac
call qword [0x1400ac010]
jmp 0x1400669b2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000204a
Capabilities:
Delete registry value

Disassembly:
jmp 0x1400114e0
sub rsp, 0x58
call fcn.140002d01
test eax, eax
jne 0x1400114f7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x38], rbx
mov rdx, 0xffffffff80000000
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
call fcn.140002545
test eax, eax
je 0x140011539
mov ecx, eax
call fcn.140002f4a
mov ebx, eax
jmp 0x14001159e
mov rdx, qword [rsp + 0x38]
lea r8, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
mov r9d, 0x20006
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], rbx
call fcn.140002545
test eax, eax
je 0x140011570
mov ecx, eax
call fcn.140002f4a
jmp 0x140011589
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.140001825
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x14001159e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x1400115b1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x1400024b9
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005f6a8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14005f77c
mov rsi, rax
cmp word [rax], r14w
je 0x14005f6fb
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14005f6e3
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14005f6df
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x14005f77c
mov rcx, rbp
call fcn.140002d47
mov rdi, rax
test rax, rax
je 0x14005f76f
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
test eax, eax
je 0x14005f76f
mov rsi, rdi
mov rdi, r14
jmp 0x14005f772
mov rsi, r14
mov rcx, rdi
call fcn.140002a04
jmp 0x14005f77f
mov rsi, r14
test rbx, rbx
je 0x14005f78d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400028ab
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x14000ef80
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.140002545
mov ebx, eax
test eax, eax
jne 0x14000f097
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000f071
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400028ab
mov ebx, eax
test eax, eax
jne 0x14000f097
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f020
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000f086
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.1400017f8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000f0a7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001d61
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002af4
Capabilities:
Create service

Disassembly:
jmp 0x14000d700
push rdi
sub rsp, 0xa90
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140003576
test eax, eax
je 0x14000d731
mov eax, 1
jmp 0x14000d838
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x14000d92e
cmp eax, 0x104
je 0x14000d92e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14000d977
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000d851
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140003936
test eax, eax
jne 0x14000d80f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140001e7e
test eax, eax
je 0x14000d80f
cmp eax, 0xc
je 0x14000d94b
cmp eax, 0x16
je 0x14000d940
cmp eax, 0x22
je 0x14000d940
cmp eax, 0x50
jne 0x14000d935
lea r8, [rdi + 0x48]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140001d61
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x48
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
jne 0x14000d912
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140003936
test eax, eax
jne 0x14000d907
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140001e7e
test eax, eax
je 0x14000d907
cmp eax, 0xc
je 0x14000d96c
cmp eax, 0x16
je 0x14000d961
cmp eax, 0x22
je 0x14000d961
cmp eax, 0x50
jne 0x14000d956
xor r9d, r9d
mov r8, rdi
jmp 0x14000d816
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14000d828
xor eax, eax
jmp 0x14000d838
mov ecx, 0x80004005
call fcn.140003661
int3
mov ecx, 0x80070057
call fcn.140003661
int3
mov ecx, 0x8007000e
call fcn.140003661
int3
mov ecx, 0x80004005
call fcn.140003661
int3
mov ecx, 0x80070057
call fcn.140003661
int3
mov ecx, 0x8007000e
call fcn.140003661
int3
call fcn.1400029eb
int3
Function at 0x1400034ef
Capabilities:
Parse pe header

Disassembly:
jmp 0x140050458
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400501ac

Function at 0x140003517
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x14000fa30
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000fabe
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000fabe
call fcn.14000363e
mov ebx, eax
jmp 0x14000fbe3
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000fadf
call fcn.14000363e
jmp 0x14000fbd2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000fb02
call fcn.14000363e
jmp 0x14000fbd2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000fb24
mov ebx, 0x8007000e
jmp 0x14000fbd4
mov ecx, eax
test eax, eax
je 0x14000fb59
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000fc1b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000fb59
lea rcx, [rsp + 0x70]
call fcn.140001f7d
jmp 0x14000fb63
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000fb76
cmp qword [rsp + 0x70], 0
jne 0x14000fb85
mov ebx, 0x8007000e
jmp 0x14000fbd4
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000fbaf
call fcn.14000363e
jmp 0x14000fbd2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003463
mov ebx, eax
test rdi, rdi
je 0x14000fbe3
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000fbfa
lea rcx, [rsp + 0x70]
call fcn.1400035a3
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001d61
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140003661
int3