joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008e030
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 [0x140228058]
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 0x14008e077
mov rdx, qword [rdx]
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov ecx, ebp
add r9, r9
je 0x14008e0b3
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 0x14008e0a0
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 0x14008e0d0
movdqa xmm0, xmmword [0x1401d8170]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bp
lea rax, [rsp + 0x8a]
cmp r9, rax
je 0x14008e13c
lea r8, [rsp + 0x8a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.1400159c0
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x14008e18b
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.14015c680
mov word [rbx + rdi*2], bp
lea rax, [rsp + 0x30]
jmp 0x14008e1ac
mov qword [rsp + 0x20], 4
lea r9, str..png
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x30]
call fcn.1400233b0
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 0x14008e20e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e209
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008e29f
call fcn.14013db80
movdqa xmm0, xmmword [0x1401d8170]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bp
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14008eba0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14008e26d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e268
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008e299
call fcn.14013db80
mov rax, rsi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14013df50
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.14015fb1c
nop
call fcn.14015fb1c
nop
int3
Function at 0x1400b0bf0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140043539
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rcx, [0x140234770]
call fcn.14011be48
test eax, eax
je 0x1400b0c16
mov ecx, eax
call fcn.14011bf78
movzx ebx, byte [0x1402346a2]
lea rcx, [0x140234770]
call fcn.14011be6c
test eax, eax
je 0x1400b0c35
mov ecx, eax
call fcn.14011bf78
nop
test bl, bl
je 0x1400b0c54
mov rcx, qword [0x1402346a8]
test rcx, rcx
je 0x1400b0c54
mov edx, 0xffffffff
add rsp, 0x30
pop rbx
jmp 0x140043520
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400b9a70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r14, rdx
mov r10, rcx
mov r13, qword [rcx]
mov rdi, r13
mov rbx, qword [r13 + 8]
mov sil, 1
cmp byte [rbx + 0x19], 0
jne 0x1400b9af9
mov rdi, rbx
test r15b, r15b
je 0x1400b9ad1
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.140022dc0
movzx esi, al
xor sil, 1
jmp 0x1400b9ae0
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.140022dc0
movzx esi, al
test sil, sil
je 0x1400b9aea
mov rbx, qword [rbx]
jmp 0x1400b9aee
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x1400b9ab4
mov r10, qword [rsp + 0x70]
mov rbx, rdi
mov rcx, rdi
test sil, sil
je 0x1400b9bc0
cmp rdi, qword [r13]
jne 0x1400b9b46
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9, rdi
mov r8b, 1
lea rdx, [rsp + 0x38]
mov rcx, r10
call fcn.1400b95f0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x1400b9c20
cmp byte [rdi + 0x19], 0
je 0x1400b9b52
mov rbx, qword [rdi + 0x10]
jmp 0x1400b9bbd
mov rax, qword [rdi]
cmp byte [rax + 0x19], 0
je 0x1400b9b9f
mov rax, qword [rdi + 8]
cmp byte [rax + 0x19], 0
jne 0x1400b9b91
mov rdx, rdi
nop dword [rax + rax]
mov r8, rax
mov r9, rax
mov rcx, rdx
cmp rdx, qword [rax]
jne 0x1400b9b91
mov rbx, rax
mov rax, qword [rax + 8]
mov rdx, rbx
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x1400b9b70
cmp byte [rbx + 0x19], 0
jne 0x1400b9bc0
mov rbx, rax
mov rcx, rax
jmp 0x1400b9bc0
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400b9bbd
nop dword [rax]
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400b9bb0
mov rcx, rbx
add rcx, 0x20
mov rdx, r12
call fcn.140022dc0
mov rcx, qword [rsp + 0x70]
test al, al
je 0x1400b9c08
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9, rdi
movzx r8d, sil
lea rdx, [rsp + 0x38]
call fcn.1400b95f0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x1400b9c20
mov rdx, qword [rsp + 0x90]
call fcn.1400c3ad0
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400fd4b0
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 [0x140228058]
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.14015cb20
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 0x1400fd550
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 0x1400fd550
call fcn.140035880
mov ebx, eax
jmp 0x1400fd675
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400fd571
call fcn.140035880
jmp 0x1400fd664
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 0x1400fd594
call fcn.140035880
jmp 0x1400fd664
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 0x1400fd5b6
mov ebx, 0x8007000e
jmp 0x1400fd666
mov ecx, eax
test eax, eax
je 0x1400fd5eb
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400fd6ad
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400fd5eb
lea rcx, [rsp + 0x70]
call fcn.1400fa810
jmp 0x1400fd5f5
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400fd608
cmp qword [rsp + 0x70], 0
jne 0x1400fd617
mov ebx, 0x8007000e
jmp 0x1400fd666
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 0x1400fd641
call fcn.140035880
jmp 0x1400fd664
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.1400fcfd0
mov ebx, eax
test rdi, rdi
je 0x1400fd675
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400fd68c
lea rcx, [rsp + 0x70]
call fcn.1400fb3a0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14013df50
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1400358b0
int3
Function at 0x1401184e0
Capabilities:
Access the windows event log

Disassembly:
sub rsp, 0x28
sub edx, 1
je 0x14011854b
sub edx, 1
je 0x140118554
sub edx, 1
je 0x140118554
sub edx, 1
je 0x140118554
cmp edx, 1
je 0x14011850d
lea rdx, str.Bad_service_request
add rsp, 0x28
jmp fcn.140118b50
test rcx, rcx
jne 0x14011854b
mov ecx, 0x274
mov eax, 3
xchg dword [rcx], eax
lea edx, [rcx - 4]
mov rcx, qword [0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ecx, dword [0x290]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_PostThreadMessageW]
add rsp, 0x28
jmp fcn.140118ca0
add rsp, 0x28
ret
Function at 0x140118860
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140118ae0
test eax, eax
je 0x140118891
mov eax, 1
jmp 0x140118998
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140118a8e
cmp eax, 0x104
je 0x140118a8e
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 0x140118ad7
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 0x1401189b1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140117b60
test eax, eax
jne 0x14011896f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14016a768
test eax, eax
je 0x14011896f
cmp eax, 0xc
je 0x140118aab
cmp eax, 0x16
je 0x140118aa0
cmp eax, 0x22
je 0x140118aa0
cmp eax, 0x50
jne 0x140118a95
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.14013df50
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 0x140118a72
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140117b60
test eax, eax
jne 0x140118a67
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14016a768
test eax, eax
je 0x140118a67
cmp eax, 0xc
je 0x140118acc
cmp eax, 0x16
je 0x140118ac1
cmp eax, 0x22
je 0x140118ac1
cmp eax, 0x50
jne 0x140118ab6
xor r9d, r9d
mov r8, rdi
jmp 0x140118976
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140118988
xor eax, eax
jmp 0x140118998
mov ecx, 0x80004005
call fcn.1400358b0
int3
mov ecx, 0x80070057
call fcn.1400358b0
int3
mov ecx, 0x8007000e
call fcn.1400358b0
int3
mov ecx, 0x80004005
call fcn.1400358b0
int3
mov ecx, 0x80070057
call fcn.1400358b0
int3
mov ecx, 0x8007000e
call fcn.1400358b0
int3
call fcn.14013e5c4
int3
Function at 0x140118b50
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 [0x140228058]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.14000ae90
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.1401637a8
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x140118bd6
lea rcx, [rsp + 0x60]
call fcn.14016a8a4
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140118c27
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.14013df50
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140119ea0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x80
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r14d, dl
mov rsi, rcx
call fcn.14011ac40
test eax, eax
jne 0x140119ed7
mov eax, 0x80004005
jmp 0x14011a059
mov rcx, qword [0x14023f780]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0xa0], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.AE711B96_345B_47C2_9EB0_A6779BD61702
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.1400fe5d0
test eax, eax
js 0x14011a051
mov qword [rsp + 0x98], 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.14002e180
test eax, eax
je 0x140119f6b
mov ecx, eax
call fcn.1400fa930
mov ebx, eax
jmp 0x14011a034
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.14002dff0
mov rdi, qword [rsp + 0x58]
test eax, eax
je 0x140119fb9
mov ecx, eax
call fcn.1400fa930
mov ebx, eax
jmp 0x14011a026
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x14011a026
lea r8, [rsi + 0x68]
test r8, r8
je 0x14011a015
mov rax, 0xffffffffffffffff
nop
cmp word [r8 + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140119fe0
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.140118860
test eax, eax
jne 0x14011a026
mov ebx, 0x80004005
test rdi, rdi
je 0x14011a034
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x14011a047
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14013df50
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop r14
ret
Function at 0x14011a970
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 [0x140228058]
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.14002e180
mov ebx, eax
test eax, eax
je 0x14011a9e6
mov dword [rdi + 0x27c], eax
jmp 0x14011ab34
mov rdx, qword [rsp + 0x48]
lea r8, str.AE711B96_345B_47C2_9EB0_A6779BD61702
mov r9d, 0x20019
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.14002e180
mov ebx, eax
test eax, eax
jne 0x14011ab1c
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 0x14011aa8a
mov eax, dword [rsp + 0x64]
dec eax
cmp eax, 1
jbe 0x14011aa64
lea eax, [rbx + 0xd]
jmp 0x14011aa8a
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14011aa82
test al, 1
jne 0x14011aa7b
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r12w
je 0x14011aa87
mov eax, SafeArrayDestroy
jmp 0x14011aa8a
mov word [rbp - 0x70], r12w
mov eax, r12d
mov dword [rdi + 0x28c], r12d
test eax, eax
jne 0x14011aae0
lea rax, [rdi + 0x68]
mov dword [rdi + 0x28c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14011b180]
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 0x14011aad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
jmp 0x14011ab22
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x14011ab0b
cmp eax, 0x80010106
jne 0x14011ab22
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14011ab0f
jmp 0x14011ab22
mov byte [rdi + 0x62], 1
mov edx, r15d
mov rcx, rdi
call fcn.14011a0e0
mov ebx, eax
mov dword [rdi + 0x27c], eax
cmp qword [rsp + 0x30], r12
je 0x14011ab34
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x48], r12
je 0x14011ab46
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.14013df50
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 0x14011b000
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
call fcn.14011ac40
test eax, eax
jne 0x14011b017
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.14002e180
test eax, eax
je 0x14011b05a
mov ecx, eax
call fcn.1400fa930
mov ebx, eax
jmp 0x14011b0c0
mov rdx, qword [rsp + 0x38]
lea r8, str.AE711B96_345B_47C2_9EB0_A6779BD61702
mov r9d, 0x20006
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x30], rbx
call fcn.14002e180
test eax, eax
je 0x14011b092
mov ecx, eax
call fcn.1400fa930
jmp 0x14011b0ab
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.14011b0e0
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x14011b0c0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x14011b0d3
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 0x14011b1f0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [0x14023f789], 0
mov ebx, r9d
jne 0x14011b24e
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140234bd0]
call fcn.1401196f0
cmp al, 1
jne 0x14011b236
mov edx, ebx
lea rcx, [0x140234bd0]
call fcn.14011a970
cmp dword [0x140234e5c], 0
jne 0x14011b24e
cmp byte [0x140234c32], 0
je 0x14011b24e
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14013ea70
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x14013eaca
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x14013ead2
mov r14, qword [r14]
jmp 0x14013ea9b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
cld
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
invalid

Function at 0x1401417b0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1401417c3
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.140141de4
lea rdx, [0x140222c80]
lea rcx, [rsp + 0x20]
call fcn.14015bf9c
int3

Function at 0x14014c23c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140235f60]
xor edx, edx
jmp fcn.1401417b0
Function at 0x14014cbfc
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140235f60]
jmp fcn.1401417b0

Function at 0x140158ac4
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, [0x140158b80]
mov r9, qword [r9 + 8]
jmp fcn.140149b54

Function at 0x140158b58
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, [0x140158b90]
mov r9, qword [r9 + 8]
jmp fcn.140149b54

Function at 0x1401715c0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401715e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140164274
or eax, 0xffffffff
jmp 0x1401715e2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140171ab4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401718e0
Function at 0x140006a48
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
and dword [rax - 0x18], 0
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140006a73
mov rcx, qword [rdx]
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
sete dl
mov rcx, qword [rsp + 0x48]
lea rax, str.Could_not_read_file_version_info
mov qword [rsp + 0x20], rax
movzx r9d, dl
lea r8, str.amcorewcd_sourcecommon_src_versioninfo.cpp
mov edx, 0x82
call fcn.140006b20
mov ecx, esi
call fcn.140010d10
mov qword [rdi], rax
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x140006aca
mov rbx, qword [rbx]
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, str.Could_not_retrieve_file_version_info
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.amcorewcd_sourcecommon_src_versioninfo.cpp
mov edx, 0x8b
call fcn.140006b58
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400084ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs rcx, 0xcbf29ce484222325
test r8, r8
je 0x14000851c
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x1400084fe
mov rax, rcx
ret