joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400346b0
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x10], 0
mov ebx, 0xffffffff
je 0x140034735
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140034750
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 ebx, eax
cmp rdx, 8
jb 0x140034735
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034730
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003474a
call fcn.140149194
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140149500
add rsp, 0x50
pop rbx
ret
call fcn.1401501d4
int3

Function at 0x140034750
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov qword [r14], rcx
mov qword [r14 + 0x10], rcx
mov qword [r14 + 0x18], 7
mov word [r14], cx
mov dword [rsp + 0x20], 1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], rcx
mov ecx, 0x1027
call fcn.140149158
test rax, rax
je 0x140034865
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov qword [rsp + 0x30], rdi
lea rbx, [rdi + 0x1000]
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rdi
call fcn.14014ba20
mov qword [rsp + 0x38], rbx
cmp qword [rsi + 0x18], 8
jb 0x1400347f5
mov rsi, qword [rsi]
mov r8d, 0x800
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140034829
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x140034812
mov rdx, rdi
mov rcx, r14
call fcn.140020fa0
nop
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea r8, [rdi - 8]
cmp r8, 0x1f
ja 0x140034865
mov edx, 0x1027
call fcn.140149194
mov rax, r14
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140149500
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.1401501d4
int3
Function at 0x140034870
Capabilities:
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edi, r8b
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140034750
nop
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140034750
nop
xor esi, esi
test dil, dil
jne 0x140034938
cmp qword [rsp + 0x30], rsi
je 0x140034938
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140034750
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14003492f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003492a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034a29
call fcn.140149194
cmp ebx, 0xffffffff
je 0x140034938
mov eax, esi
jmp 0x140034963
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400349aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400349a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034a2f
call fcn.140149194
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], si
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400349fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400349f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034a23
call fcn.140149194
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140149500
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401501d4
nop
call fcn.1401501d4
nop
call fcn.1401501d4
int3
Function at 0x14003f720
Capabilities:
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0x30
xor bl, bl
cmp qword [rdx + 0x18], 8
jb 0x14003f732
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14003f73c
mov rcx, qword [rcx]
mov r8, rdx
mov qword [rsp + 0x20], 0
mov rdx, rcx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
movzx ecx, bl
mov edx, 1
test eax, eax
cmovns ecx, edx
movzx eax, cl
add rsp, 0x30
pop rbx
ret
Function at 0x140048c60
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov ecx, 0x4027
call fcn.140149158
test rax, rax
je 0x140048d8f
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rdi], rcx
lea rax, [rcx + 0x4000]
mov qword [rdi + 0x10], rax
lea rbx, [rcx + 0x4000]
xor edx, edx
mov r8d, 0x4000
call fcn.14014ba20
mov qword [rdi + 8], rbx
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], esi
mov rcx, qword [rdi]
sub rbx, rcx
and ebx, 0xfffffffc
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140048d6f
mov ebx, dword [rsp + 0x30]
shr rbx, 2
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
sar rcx, 2
cmp rbx, rcx
jae 0x140048d30
lea rax, [rdx + rbx*4]
mov qword [rdi + 8], rax
jmp 0x140048d6f
jbe 0x140048d6f
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 2
cmp rbx, rax
jbe 0x140048d4f
mov rdx, rbx
mov rcx, rdi
call fcn.140049bf0
jmp 0x140048d6f
sub rbx, rcx
lea rbx, [rbx*4]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14014ba20
lea rcx, [rbx + rsi]
mov qword [rdi + 8], rcx
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140149500
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.1401501d4
int3
Function at 0x140049760
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140049779
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x14008eaf0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x11], rcx
xor edi, edi
mov r9, rdx
cmp qword [rdx + 0x18], 8
jb 0x14008eb2b
mov r9, qword [rdx]
movabs r8, 0xcbf29ce484222325
mov rdx, qword [rdx + 0x10]
add rdx, rdx
mov rcx, rdi
je 0x14008eb64
movabs r10, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + r9]
xor r8, rax
imul r8, r10
inc rcx
cmp rcx, rdx
jb 0x14008eb50
lea r9, [rbp + 0x41]
movabs r10, 0xcccccccccccccccd
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 0x14008eb72
mov qword [rbp - 0x39], rdi
mov rcx, rdi
mov qword [rbp - 0x29], rcx
mov edx, 7
mov qword [rbp - 0x21], rdx
mov word [rbp - 0x39], di
lea rax, [rbp + 0x41]
cmp r9, rax
je 0x14008ebe1
lea r8, [rbp + 0x41]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rbp - 0x39]
call fcn.140020fa0
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x14008ec1b
lea rax, [rcx + 4]
mov qword [rbp - 0x29], rax
lea rax, [rbp - 0x39]
cmp rdx, 8
cmovae rax, qword [rbp - 0x39]
movabs rdx, 0x67006e0070002e
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], di
lea rax, [rbp - 0x39]
jmp 0x14008ec3e
lfence
mov qword [rsp + 0x20], 4
lea r9, str..png
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rbp - 0x39]
call fcn.1400310a0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14008ec9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008ec97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008ed1f
call fcn.140149194
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], di
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.14008f800
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x14008ecf5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008ecf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008ed19
call fcn.140149194
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140149500
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401501d4
nop
call fcn.1401501d4
nop
int3
Function at 0x1400fa3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.14014ba20
mov qword [rsp + 0x60], 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 0x1400fa447
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 0x1400fa447
call fcn.14003aee0
mov ebx, eax
jmp 0x1400fa572
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400fa468
call fcn.14003aee0
jmp 0x1400fa561
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 0x1400fa48b
call fcn.14003aee0
jmp 0x1400fa561
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 0x1400fa4ad
mov ebx, 0x8007000e
jmp 0x1400fa563
mov ecx, eax
test eax, eax
je 0x1400fa4e5
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400fa5aa
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400fa4e5
lfence
lea rcx, [rsp + 0x60]
call fcn.1400f7350
jmp 0x1400fa4ef
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x1400fa502
cmp qword [rsp + 0x60], 0
jne 0x1400fa511
mov ebx, 0x8007000e
jmp 0x1400fa563
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
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 0x1400fa53e
call fcn.14003aee0
jmp 0x1400fa561
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1400f9eb0
mov ebx, eax
test rdi, rdi
je 0x1400fa572
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400fa589
lea rcx, [rsp + 0x60]
call fcn.1400f8050
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140149500
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.14003af10
int3
Function at 0x14011e310
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.14011e590
test eax, eax
je 0x14011e341
mov eax, 1
jmp 0x14011e448
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14011e53e
cmp eax, 0x104
je 0x14011e53e
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 0x14011e587
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 0x14011e461
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14011d5c0
test eax, eax
jne 0x14011e41f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14015d2c4
test eax, eax
je 0x14011e41f
cmp eax, 0xc
je 0x14011e55b
cmp eax, 0x16
je 0x14011e550
cmp eax, 0x22
je 0x14011e550
cmp eax, 0x50
jne 0x14011e545
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.140149500
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], SafeArrayUnlock
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x14011e522
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14011d5c0
test eax, eax
jne 0x14011e517
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14015d2c4
test eax, eax
je 0x14011e517
cmp eax, 0xc
je 0x14011e57c
cmp eax, 0x16
je 0x14011e571
cmp eax, 0x22
je 0x14011e571
cmp eax, 0x50
jne 0x14011e566
xor r9d, r9d
mov r8, rdi
jmp 0x14011e426
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14011e438
xor eax, eax
jmp 0x14011e448
mov ecx, 0x80004005
call fcn.14003af10
int3
mov ecx, 0x80070057
call fcn.14003af10
int3
mov ecx, 0x8007000e
call fcn.14003af10
int3
mov ecx, 0x80004005
call fcn.14003af10
int3
mov ecx, 0x80070057
call fcn.14003af10
int3
mov ecx, 0x8007000e
call fcn.14003af10
int3
call fcn.140149ab4
int3
Function at 0x14011e600
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 [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.14000c460
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.140155700
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x14011e686
lea rcx, [rsp + 0x60]
call fcn.14015d414
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14011e6d7
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.140149500
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14011f4f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0xa0
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx r14d, dl
mov rsi, rcx
call fcn.140120260
test eax, eax
jne 0x14011f52a
mov eax, 0x80004005
jmp 0x14011f6b9
mov rcx, qword [0x14034be70]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0xc0], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea rdi, str.FBB4E5FF_17F2_4F5A_88D9_EAC8ABB00B32
lea r9, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x80], xmm0
call fcn.1400fb480
test eax, eax
jns 0x14011f57c
lfence
jmp 0x14011f6b1
mov qword [rsp + 0xb8], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov r9d, 0x20006
mov qword [rsp + 0x48], rbx
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
call fcn.140034570
test eax, eax
je 0x14011f5c5
mov ecx, eax
call fcn.1400f74e0
mov ebx, eax
jmp 0x14011f694
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov r8, rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
call fcn.1400343e0
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x14011f613
mov ecx, eax
call fcn.1400f74e0
mov ebx, eax
jmp 0x14011f686
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x14011f686
lea r8, [rsi + 0x68]
test r8, r8
je 0x14011f675
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x14011f640
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], r8
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.14011e310
test eax, eax
jne 0x14011f686
mov ebx, 0x80004005
test rdi, rdi
je 0x14011f694
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x14011f6a7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140149500
mov rsi, qword [rsp + 0xc8]
add rsp, 0xa0
pop r14
ret
Function at 0x14011ff90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r12d, r12d
lea r8, str.AppID
mov r15d, edx
mov qword [rsp + 0x50], r12
mov rdi, rcx
mov qword [rsp + 0x48], r12
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r12
lea rcx, [rsp + 0x48]
mov r9d, 0x20019
call fcn.140034570
mov ebx, eax
test eax, eax
je 0x140120006
mov dword [rdi + 0x27c], eax
jmp 0x140120148
mov rdx, qword [rsp + 0x48]
lea r8, str.FBB4E5FF_17F2_4F5A_88D9_EAC8ABB00B32
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.140034570
mov ebx, eax
test eax, eax
je 0x140120042
mov dword [rdi + 0x27c], eax
jmp 0x140120136
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x60], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012009d
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
ja 0x14012009d
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1401200e8
test al, 1
jne 0x14012009d
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x1401200ed
xor edx, edx
mov dword [rdi + 0x28c], r12d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x1401200cf
cmp eax, 0x80010106
jne 0x140120136
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1401200d3
jmp 0x140120136
mov byte [rdi + 0x62], 1
mov edx, r15d
mov rcx, rdi
call fcn.14011f740
mov ebx, eax
mov dword [rdi + 0x27c], eax
jmp 0x140120136
mov word [rbp - 0x70], r12w
lea rax, [rdi + 0x68]
mov dword [rdi + 0x28c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x1401207d0]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r12
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140120130
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
cmp qword [rsp + 0x30], r12
je 0x140120148
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x14012015a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140149500
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x140120620
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1401f3030]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140120260
test eax, eax
jne 0x140120659
mov eax, 0x80004005
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140149500
add rsp, 0x88
ret
mov qword [rsp + 0x80], 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.140034570
test eax, eax
je 0x1401206a2
mov ecx, eax
call fcn.1400f74e0
mov ebx, eax
jmp 0x140120736
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
mov r9d, 0x20006
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
lea rbx, str.FBB4E5FF_17F2_4F5A_88D9_EAC8ABB00B32
mov r8, rbx
call fcn.140034570
test eax, eax
je 0x1401206dd
mov ecx, eax
call fcn.1400f74e0
jmp 0x140120721
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x14034be70]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
lea r9, [rsp + 0x50]
movdqu xmmword [rsp + 0x60], xmm0
lea edx, [r8 + 0x65]
call fcn.1400fb480
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x140120736
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x140120749
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140149500
add rsp, 0x88
ret

Function at 0x140120840
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14034be79], 0
mov ebx, r9d
jne 0x14012089e
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x1401ff110]
call fcn.14011efd0
cmp al, 1
jne 0x140120886
mov edx, ebx
lea rcx, [0x1401ff110]
call fcn.14011ff90
cmp dword [0x1401ff39c], 0
jne 0x14012089e
cmp byte [0x1401ff172], 0
je 0x14012089e
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14014a2c4
Capabilities:
Parse pe header

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