joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e880
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rdx
mov rbx, r9
mov rcx, rsi
xor edx, edx
mov r14, r8
call sub.VERSION.dll_GetFileVersionInfoSizeW
movsxd rdi, eax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140012f28
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
mov rbp, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x30]
mov rcx, rbp
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14000e905
xor eax, eax
jmp 0x14000e96d
mov rax, qword [rsp + 0x38]
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r14
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call fcn.140001d50
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000e901
mov rcx, qword [rsp + 0x40]
sub rbx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rbx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000e950
mov rcx, rbp
call fcn.140012fdc
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000e990
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
xor ebx, ebx
call fcn.140014200
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000eaa7
lea rdx, str.kernel32.DLL
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14000eaa7
xor edx, edx
mov qword [rsp + 0x278], rdi
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14000eaa3
mov ecx, edi
mov qword [rsp + 0x270], rsi
call fcn.140012f28
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000ea70
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
lea rdx, [0x14002e8a4]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000ea70
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + 8]
mov rcx, rsi
call fcn.140012fdc
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x260
pop rbx
ret
mov eax, ebx
jmp 0x14000ea82
mov eax, ebx
jmp 0x14000ea8a
Function at 0x140010dc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x4f0
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbp, rdx
lea rax, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov rcx, 0xffffffff80000002
lea r9d, [rsi + 9]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010e14
xor eax, eax
jmp 0x140010fa1
xor edx, edx
mov qword [rsp + 0x500], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x508], rdi
lea r8d, [rdx + 0x64]
call fcn.140014200
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.140014200
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
mov ebx, esi
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140010f84
cmp ebx, 0x2710
jge 0x140010f84
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
inc ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140010f58
xor edx, edx
mov dword [rsp + 0x38], 0x32
mov r8d, 0x208
lea rcx, [rsp + 0x2d0]
call fcn.140014200
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x3c], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_Text
lea rax, [rsp + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140019784
mov r8, rbp
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140010f54
add rax, 2
test ecx, ecx
jne 0x140010f40
test edx, edx
je 0x140010f7f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
inc edi
mov r9d, 0x104
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140010e70
jmp 0x140010f84
mov esi, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x508]
mov eax, esi
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140012ec0
mov rbp, qword [rsp + 0x510]
add rsp, 0x4f0
pop rsi
ret
Function at 0x140010fd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rbx, r8
lea rax, [rsp + 0x38]
mov r14, rdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001122d
mov qword [rsp + 0x710], rsi
lea r8d, [rax + 0x64]
xor edx, edx
mov qword [rsp + 0x718], rdi
lea rcx, [rsp + 0x50]
call fcn.140014200
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.140014200
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x40]
xor edi, edi
mov r9d, 0x104
xor edx, edx
mov esi, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140011212
cmp edi, 0x2710
jge 0x140011212
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x40]
inc edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140011163
xor edx, edx
mov dword [rsp + 0x40], 0x32
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.140014200
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x44], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_Text
lea rax, [rbp + 0x3e0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x50]
call fcn.140019784
mov r8, r14
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140011154
add rax, 2
test ecx, ecx
jne 0x140011140
test edx, edx
je 0x140011189
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
lea r8, [rbp - 0x40]
inc esi
mov r9d, 0x104
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140011084
jmp 0x140011212
xor edx, edx
lea rcx, [rbp + 0x1d0]
mov r8d, 0x208
call fcn.140014200
lea rcx, [rbp + 0x1d0]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1400111b0
lea rcx, [rbp + 0x1d0]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400111d0
mov rcx, qword [rsp + 0x30]
lea rdx, str.Layout_Text
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x718]
mov rsi, qword [rsp + 0x710]
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.140012ec0
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001e634
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14001e408
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e408
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e408
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e408
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e408
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e408
cmp dword [rcx + 0xf8], esi
je 0x14001e408
mov ecx, r14d
call fcn.14001e550
mov ecx, 2
call fcn.14001b720
nop
cmp byte [0x1400472a0], 0
jne 0x14001e4d2
mov r15d, 1
mov eax, r15d
xchg dword [0x140047290], eax
test ebx, ebx
jne 0x14001e47b
mov rdi, qword [0x1400441a0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140047298]
cmp rcx, rax
je 0x14001e472
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140013fd0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400474e0]
jmp 0x14001e487
cmp ebx, r15d
jne 0x14001e48d
lea rcx, [0x1400474f8]
call fcn.14001f22c
nop
test ebx, ebx
jne 0x14001e4a4
lea rdx, [0x14002e5d0]
lea rcx, [0x14002e5b0]
call fcn.14001f548
lea rdx, [0x14002e5e0]
lea rcx, [0x14002e5d8]
call fcn.14001f548
movzx eax, byte [0x1400472a0]
test esi, esi
cmove eax, r15d
mov byte [0x1400472a0], al
jmp 0x14001e4d2
mov ecx, 2
call fcn.14001b774
test esi, esi
jne 0x14001e4e9
mov ecx, r14d
call fcn.14001e504
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001e398
Function at 0x140010634
Capabilities:
Parse pe header

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

Function at 0x14001703c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016e38
Function at 0x14001c368
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001c398
xor eax, eax
jmp 0x14001c45b
mov rbp, rbx
cmp word [rax], si
je 0x14001c3bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c3a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c3a0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001c288
movsxd r14, eax
test eax, eax
jne 0x14001c3fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c391
mov rcx, r14
call fcn.140018b1c
mov rdi, rax
test rax, rax
jne 0x14001c414
xor ecx, ecx
call fcn.140017ea4
jmp 0x14001c3f0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001c288
test eax, eax
jne 0x14001c445
mov rcx, rdi
call fcn.140017ea4
jmp 0x14001c44f
xor ecx, ecx
call fcn.140017ea4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002077c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140020792
mov al, 1
jmp 0x1400207f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400207a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400207f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001cc88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400207f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400207f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400207f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400207f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021830
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001b358
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400218ba
cmp byte [rbp - 0x21], r15b
je 0x1400218b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400218f0
call fcn.1400180f4
test eax, eax
jne 0x1400218dc
cmp byte [rbp - 0x21], r15b
je 0x1400218d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400218f0
cmp byte [rbp - 0x21], r15b
je 0x1400218ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001a938
test eax, eax
jne 0x140021990
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001b358
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002192f
cmp byte [rbp - 0x21], r15b
je 0x140021964
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021964
call fcn.1400180f4
test eax, eax
jne 0x140021950
cmp byte [rbp - 0x21], r15b
je 0x140021949
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021964
cmp byte [rbp - 0x21], r15b
je 0x140021961
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001a938
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021990
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021993
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400219a1
mov rcx, rdi
call fcn.140017ea4
cmp byte [rbp + 0x3f], r15b
je 0x1400219b0
mov rcx, qword [rbp + 0x27]
call fcn.140017ea4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140023fa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023fc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023fc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400035a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140006600], rbx
je 0x1400035ec
cmp rax, rbx
jne 0x1400035df
mov ebx, 1
mov esi, ebx
jmp 0x1400035f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400035c4
mov ebx, 1
mov eax, dword [0x140006608]
cmp eax, ebx
jne 0x140003607
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000366c
mov eax, dword [0x140006608]
test eax, eax
jne 0x140003666
mov dword [0x140006608], ebx
lea r15, [0x1400043a8]
lea rdi, [0x140004390]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140003658
test eax, eax
jne 0x14000365c
cmp qword [rdi], 0
je 0x14000364d
mov rax, qword [rdi]
mov rcx, qword [0x140004370]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000362e
test eax, eax
je 0x14000366c
mov eax, 0xff
jmp 0x140003748
mov dword [0x140006024], ebx
mov eax, dword [0x140006608]
cmp eax, ebx
jne 0x140003693
lea rdx, [0x140004388]
lea rcx, [0x140004378]
call sub.msvcrt.dll__initterm
mov dword [0x140006608], 2
test esi, esi
jne 0x1400036a0
xor eax, eax
xchg qword [0x140006600], rax
cmp qword [0x140006610], 0
je 0x1400036d4
lea rcx, [0x140006610]
call fcn.140003950
test eax, eax
je 0x1400036d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140006610]
mov r9, qword [0x140004370]
call r9
mov r8, qword [0x140006038]
mov rdx, qword [0x140006030]
mov ecx, dword [0x140006028]
call fcn.140001008
mov dword [0x140006020], eax
cmp dword [0x140006040], 0
jne 0x140003704
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140006024], 0
jne 0x140003719
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140006020]
jmp 0x140003748
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140125000
add rsp, 0x28
jmp 0x1400035a0

Function at 0x14000383c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003888
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003880
cmp dword [rcx + 0x3c], edx
jl 0x140003880
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140003880
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140003888
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14001a06c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rcx
call fcn.14001a914
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x14001a0a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14001a12d
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001a0dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call fcn.14001a144
mov eax, ebx
jmp 0x14001a12d
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14001a0c3
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov dword [rdi + 0x18], eax
test eax, eax
je 0x14001a0c3
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14001a0c3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001af98
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140033880], eax
call fcn.14001b6d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140033880], 0
jne case.default.0x14001afee
mov ecx, 1
call fcn.14001b6d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
shr dword [rsi], 0xc
mov byte [rax + 0x3d], bh
invalid
xor byte [rbx], dl
sbb dh, byte [rbx - 0x1e]
pop rax
je 0x140051eca
loop 0x140051e87
fscale
or eax, dword [0x1679e106f]
xor al, 0xfd
in eax, 0x60
mov ah, 0x38
xor ebx, dword [rbp - 0x3a798201]
rcr byte [rdi - 0x67], 0x68
pop rdi
cdq
push 0x390bc942
push 0x390bc942
mov al, 0x55
mov esi, 0x95329f9f
invalid
Function at 0x140001d80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebp, ebp
mov rsi, r8
mov rdi, rdx
mov ebx, 0x8000ffff
test rdx, rdx
je 0x140001db6
mov word [rdx], bp
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140001e72
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateGuid]
mov ebx, eax
test eax, eax
js 0x140001e72
mov r8d, 0x27
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
lea r8, str.IEEtwSession.Temporal.
lea rcx, [rsp + 0x80]
call fcn.140001ea0
mov ebx, eax
test eax, eax
js 0x140001e72
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.140001ea0
mov ebx, eax
test eax, eax
js 0x140001e72
lea r8, str..etl
lea rcx, [rsp + 0x80]
call fcn.140001ea0
mov ebx, eax
test eax, eax
js 0x140001e72
mov rdx, qword [rsi]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.140001f74
mov ebx, eax
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bp
jne 0x140001e66
mov qword [rsi], rax
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140007df0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000348c
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140003516
mov rdx, qword [rbx + 0x28]
mov r8d, 0x10004
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000350d
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140003504
cmp dword [rsp + 0x24], 1
jne 0x140003504
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140003504
call fcn.140003a2c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007df0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140003534
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14001b060]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400035bf
mov rdx, qword [rbx + 0x28]
mov r8d, 0x24
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x1400035b6
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400035ad
cmp dword [rsp + 0x24], 1
je 0x1400035ad
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007df0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret