joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f1e0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rsi, rcx
mov qword [r11 - 0x38], rcx
xor eax, eax
mov dword [rsp + 0x24], eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x24], 1
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
lea r8, [r11 - 0x48]
mov edx, 0x800
lea rcx, [r11 - 0x30]
call fcn.140023900
nop
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
sub rax, rbx
sar rax, 1
cmp qword [rdi + 0x18], 8
jb 0x14002f267
mov rdi, qword [rdi]
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14002f298
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x14002f281
mov rdx, rbx
mov rcx, rsi
call fcn.1400150c0
nop
test rbx, rbx
je 0x14002f2d4
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14002f2cc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f2f6
mov rcx, rbx
call fcn.1401218ec
mov rax, rsi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140121cc0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401431fc
int3

Function at 0x14002f300
Capabilities:
Copy file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx edi, r8b
mov rbx, rdx
mov rdx, rcx
lea rcx, [r11 - 0x30]
call fcn.14002f1e0
nop
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14002f1e0
nop
xor esi, esi
test dil, dil
jne 0x14002f362
lea rcx, [rsp + 0x28]
call fcn.14002ff10
test al, al
je 0x14002f362
mov eax, esi
jmp 0x14002f38d
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002f3d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f3cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f449
call fcn.1401218ec
movdqa xmm0, xmmword [0x1401b5bd0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002f421
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f41c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f443
call fcn.1401218ec
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140121cc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401431fc
nop
call fcn.1401431fc
nop
int3
Function at 0x14002ff10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor bl, bl
cmp qword [rcx + 0x10], 0
je 0x14002ff9e
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14002f1e0
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ecx, 1
cmp eax, 0xffffffff
movzx ebx, bl
cmovne ebx, ecx
cmp rdx, 8
jb 0x14002ff9e
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ff99
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ffb4
call fcn.1401218ec
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140121cc0
add rsp, 0x50
pop rbx
ret
call fcn.1401431fc
int3
Function at 0x14003d4c0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, rdx
mov rdi, rcx
mov qword [rbp - 0x11], rcx
xor ebx, ebx
mov dword [rbp - 0x39], ebx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor r8d, r8d
xor edx, edx
call fcn.14003e5f0
mov qword [rdi], rax
mov dword [rbp - 0x39], 1
xor eax, eax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
lea rcx, [rbp - 1]
call fcn.14003e4f0
nop
mov dword [rbp - 9], ebx
test r12, r12
je 0x14003d606
mov rax, qword [rbp + 7]
mov rdx, qword [rbp - 1]
sub rax, rdx
sar rax, 3
lea r8d, [rax*8]
mov dword [rsp + 0x20], 3
lea r9, [rbp - 9]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x14003d606
mov edx, dword [rbp - 9]
shr rdx, 3
lea rcx, [rbp - 1]
call fcn.14003ea70
mov rbx, qword [rbp - 1]
mov r15, qword [rbp + 7]
cmp rbx, r15
je 0x14003d60a
movabs r13, 0x666666666666665
nop
mov rax, qword [rbx]
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], rax
mov byte [rbp - 0x21], 0
mov rsi, qword [rdi]
mov r14, qword [rsi + 8]
lea r9, [rbp - 0x31]
mov r8, r14
mov rdx, rsi
call fcn.14003edd0
mov rdx, qword [rdi + 8]
mov rcx, r13
sub rcx, rdx
cmp rcx, 1
jb 0x14003d66d
lea rcx, [rdx + 1]
mov qword [rdi + 8], rcx
mov qword [rsi + 8], rax
mov qword [r14], rax
cmp byte [rbp - 0x21], 0
je 0x14003d5fd
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14003d5fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
cmp rbx, r15
jne 0x14003d5a0
mov rbx, qword [rbp - 1]
test rbx, rbx
je 0x14003d643
mov rdx, qword [rbp + 0xf]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x14003d63b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003d67a
mov rcx, rbx
call fcn.1401218ec
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140121cc0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.1400ffb50
nop
call fcn.1401431fc
int3

Function at 0x14003da30
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov edx, 0x1000
call fcn.1400217e0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x38], 0
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, rcx
sar rdx, 2
lea edx, [rdx*4]
lea r8, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14003dab9
mov edx, dword [rsp + 0x38]
shr rdx, 2
mov rcx, rbx
call fcn.14003ec20
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140121cc0
add rsp, 0x50
pop rbx
ret
Function at 0x14003dad0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbp, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rsp + 0xf0]
lea r8, [0x1401b4410]
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.140033530
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003db2f
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140021f10
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x88], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14003dba2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003db9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003dc6b
call fcn.1401218ec
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 8
cmovae rdx, qword [rsp + 0x78]
cmp qword [rbx + 0x18], 8
jb 0x14003dbc0
mov rbx, qword [rbx]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003dc00
test rsi, rsi
je 0x14003dbfe
mov rcx, qword [r14]
mov qword [rsi], rcx
test eax, eax
setne bl
mov rdx, qword [rsp + 0x90]
cmp rdx, 8
jb 0x14003dc44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003dc3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003dc65
call fcn.1401218ec
movzx eax, bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140121cc0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1401431fc
int3
call fcn.1401431fc
int3
Function at 0x14007ef40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rcx
mov qword [rsp + 0x58], rcx
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x14007ef87
mov rdx, qword [rdx]
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov ecx, ebp
add r9, r9
je 0x14007efc3
movabs r10, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r8, rax
imul r8, r10
inc rcx
cmp rcx, r9
jb 0x14007efb0
lea r9, [rsp + 0x8a]
movabs r10, 0xcccccccccccccccd
nop word [rax + rax]
sub r9, 2
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8, rdx
test rdx, rdx
jne 0x14007efe0
movdqa xmm0, xmmword [0x1401b5bd0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bp
lea rax, [rsp + 0x8a]
cmp r9, rax
je 0x14007f04c
lea r8, [rsp + 0x8a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.1400150c0
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x14007f09b
lea rdi, [rcx + 4]
mov qword [rsp + 0x40], rdi
lea rbx, [rsp + 0x30]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + rcx*2]
mov r8d, 8
lea rdx, str..png
call fcn.14013fdf0
mov word [rbx + rdi*2], bp
lea rax, [rsp + 0x30]
jmp 0x14007f0bc
mov qword [rsp + 0x20], 4
lea r9, str..png
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x30]
call fcn.140022280
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 7
mov word [rax], bp
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14007f11e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007f119
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f1af
call fcn.1401218ec
movdqa xmm0, xmmword [0x1401b5bd0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bp
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14007fa60
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14007f17d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007f178
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f1a9
call fcn.1401218ec
mov rax, rsi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140121cc0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401431fc
nop
call fcn.1401431fc
nop
int3
Function at 0x1400e4f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140140260
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400e5030
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400e5030
call fcn.1400e3610
mov ebx, eax
jmp 0x1400e5155
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400e5051
call fcn.1400e3610
jmp 0x1400e5144
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400e5074
call fcn.1400e3610
jmp 0x1400e5144
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400e5096
mov ebx, 0x8007000e
jmp 0x1400e5146
mov ecx, eax
test eax, eax
je 0x1400e50cb
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400e518d
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400e50cb
lea rcx, [rsp + 0x70]
call fcn.1400e34f0
jmp 0x1400e50d5
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400e50e8
cmp qword [rsp + 0x70], 0
jne 0x1400e50f7
mov ebx, 0x8007000e
jmp 0x1400e5146
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.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400e5121
call fcn.1400e3610
jmp 0x1400e5144
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 + 0x58]
call fcn.1400e4ab0
mov ebx, eax
test rdi, rdi
je 0x1400e5155
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400e516c
lea rcx, [rsp + 0x70]
call fcn.1400e3af0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140121cc0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1400e3640
int3
Function at 0x1400fc9e0
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x140200d38]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.1400fcc60
test eax, eax
je 0x1400fca11
mov eax, 1
jmp 0x1400fcb18
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400fcc0e
cmp eax, 0x104
je 0x1400fcc0e
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 0x1400fcc57
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.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x1400fcb31
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.1400fbd30
test eax, eax
jne 0x1400fcaef
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14014ddf4
test eax, eax
je 0x1400fcaef
cmp eax, 0xc
je 0x1400fcc2b
cmp eax, 0x16
je 0x1400fcc20
cmp eax, 0x22
je 0x1400fcc20
cmp eax, 0x50
jne 0x1400fcc15
lea r8, [rdi + 0x68]
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.140121cc0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
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], SafeArrayAccessData
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x1400fcbf2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.1400fbd30
test eax, eax
jne 0x1400fcbe7
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14014ddf4
test eax, eax
je 0x1400fcbe7
cmp eax, 0xc
je 0x1400fcc4c
cmp eax, 0x16
je 0x1400fcc41
cmp eax, 0x22
je 0x1400fcc41
cmp eax, 0x50
jne 0x1400fcc36
xor r9d, r9d
mov r8, rdi
jmp 0x1400fcaf6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x1400fcb08
xor eax, eax
jmp 0x1400fcb18
mov ecx, 0x80004005
call fcn.1400e3640
int3
mov ecx, 0x80070057
call fcn.1400e3640
int3
mov ecx, 0x8007000e
call fcn.1400e3640
int3
mov ecx, 0x80004005
call fcn.1400e3640
int3
mov ecx, 0x80070057
call fcn.1400e3640
int3
mov ecx, 0x8007000e
call fcn.1400e3640
int3
call fcn.14012231c
int3
Function at 0x1400fccd0
Capabilities:
Access the windows event log

Disassembly:
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 [0x140200d38]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.14000ab80
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.140146e88
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x1400fcd56
lea rcx, [rsp + 0x60]
call fcn.14014df30
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400fcda7
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.140121cc0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400fef70
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.1400febb0
test eax, eax
jne 0x1400fef87
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 + 0x40], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], rbx
call fcn.14002bdb0
test eax, eax
je 0x1400fefca
mov ecx, eax
call fcn.1400e3630
mov ebx, eax
jmp 0x1400ff030
mov rdx, qword [rsp + 0x38]
lea r8, str.FBB4E5FF_17F2_4F5A_88D9_EAC8ABB00B32
mov r9d, 0x20006
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
call fcn.14002bdb0
test eax, eax
je 0x1400ff002
mov ecx, eax
call fcn.1400e3630
jmp 0x1400ff01b
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.1400ff210
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x1400ff030
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x1400ff043
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x1400ff320
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x140357739], 0
mov ebx, r9d
jne 0x1400ff37e
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x14020d0e0]
call fcn.1400fd780
cmp al, 1
jne 0x1400ff366
mov edx, ebx
lea rcx, [0x14020d0e0]
call fcn.1400fe900
cmp dword [0x14020d36c], 0
jne 0x1400ff37e
cmp byte [0x14020d142], 0
je 0x1400ff37e
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140125498
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401254ab
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140125ab8
lea rdx, [0x1401fc1f0]
lea rcx, [rsp + 0x20]
call fcn.14013f708
int3

Function at 0x14012fd24
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14020e420]
xor edx, edx
jmp fcn.140125498

Function at 0x1401306b8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14020e420]
jmp fcn.140125498

Function at 0x14013c2b8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14013c374]
mov r9, qword [r9 + 8]
jmp fcn.14012d6dc

Function at 0x14013c34c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14013c384]
mov r9, qword [r9 + 8]
jmp fcn.14012d6dc
Function at 0x140154be4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140154c04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140147944
or eax, 0xffffffff
jmp 0x140154c06
xor eax, eax
add rsp, 0x28
ret
Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x140013ab0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014e20
xor al, al
jmp 0x140014ea1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e33
xor al, al
jmp 0x140014ea1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e5d
xor al, al
jmp 0x140014ea1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e71
xor al, al
jmp 0x140014ea1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e83
xor al, al
jmp 0x140014ea1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e9f
xor al, al
jmp 0x140014ea1
mov al, 1
add rsp, 0x38
ret