joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4230
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rdx
xor edi, edi
mov rcx, qword [rcx + 0x50]
test rcx, rcx
jne 0x1400a42b6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov edx, 0xa0000006
lea rcx, [rsp + 0x30]
call fcn.140022e50
nop
lea rdx, str.PciDiskExtension_cannot_be_null
lea rcx, [rsp + 0x30]
call fcn.140023820
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140022e90
nop
lea rcx, [rsp + 0x30]
call fcn.140023190
jmp 0x1400a4378
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
movzx eax, ax
cmp eax, dword [rsi + 0x48]
jne 0x1400a436b
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005c876.0]
movzx r8d, ax
mov dword [rsp + 0x20], r8d
movzx edx, r8b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x21]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x22]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x23]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rsi + 0x38]
and rcx, rdx
shl rcx, 4
add rcx, qword [rsi + 0x20]
mov rax, qword [rcx + 8]
cmp rax, qword [rsi + 0x10]
je 0x1400a4362
mov rcx, qword [rcx]
cmp r8d, dword [rax + 0x10]
je 0x1400a435f
nop
cmp rax, rcx
je 0x1400a4362
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x1400a4350
mov rdi, rax
test rdi, rdi
je 0x1400a436b
mov al, 1
jmp 0x1400a436d
xor al, al
mov byte [rsi + 0x60], al
mov rcx, rbx
call fcn.140022e10
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140146a70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400a43a0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x1400a454d
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.14004f670
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x1400a4516
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rbx
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rbx
xor r9, rdx
imul r9, rbx
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x1400a4490
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400a4505
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1400a44cd
mov r10, qword [rdx]
cmp r10, rax
je 0x1400a44c7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400a4505
cmp r9, rdx
je 0x1400a44e1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400a4527
cmp r9, rdx
jne 0x1400a44d2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x1400a4440
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400a4505
lea rcx, str.invalid_hash_bucket_count
call fcn.1401481b4
int3
Function at 0x1400eeb40
Capabilities:
Set uefi variable

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rcx + 8]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rcx + 0x18]
movaps xmmword [r11 - 0x48], xmm1
movups xmm0, xmmword [rcx + 0x28]
movaps xmmword [r11 - 0x38], xmm0
movups xmm1, xmmword [rcx + 0x38]
movaps xmmword [r11 - 0x28], xmm1
mov r9d, 0x40
lea r8, [r11 - 0x58]
mov rdx, qword [rcx + 0x48]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
test eax, eax
je 0x1400eebb4
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140146a70
add rsp, 0xc8
ret
mov edx, 0x28
lea rcx, [rsp + 0x48]
call fcn.140024ae0
mov edx, 0xa0010073
lea rcx, [rsp + 0x48]
call fcn.140022e50
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.EFI_variable_write_fail_with_error___d_
lea rcx, [rsp + 0x48]
call fcn.140023850
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140022e90
lea rdx, [0x1401d17b0]
lea rcx, [rsp + 0x20]
call fcn.140139bfc
int3
Function at 0x1400f12f0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rcx + 0x20], rax
call fcn.140022e10
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x40], 0xffffffffffffffff
lea r8, [rsp + 0x58]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400f13ca
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400f13ca
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400f13ca
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x1400f13ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x45b
je 0x1400f13ee
lea r9, str.Shutdown_request_failed.
mov r8d, eax
mov edx, 1
mov rcx, rbx
call fcn.140023740
mov dword [rsp + 0x54], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400f1422
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140146a70
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14010e0d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rdi, r8
mov r14, rdx
mov rbp, rcx
mov r8, qword [r8 + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14010e0fe
mov rdx, qword [rdi]
movabs rbx, 0xcbf29ce484222325
xor r13d, r13d
mov ecx, r13d
add r8, r8
je 0x14010e133
movabs r9, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rbx, rax
imul rbx, r9
inc rcx
cmp rcx, r8
jb 0x14010e120
mov r9, rbx
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14010dff0
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14010e15c
mov qword [r14], rax
mov byte [r14 + 8], r13b
jmp 0x14010e2f8
movabs rax, 0x38e38e38e38e38e
cmp qword [rbp + 0x10], rax
je 0x14010e313
lea r12, [rbp + 8]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r13
lfence
mov ecx, 0x48
call fcn.140146a90
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rax + 0x10]
call fcn.140029890
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], r13
mov qword [rsi + 0x40], r13
mov rcx, qword [rbp + 0x10]
movss xmm3, dword [rbp]
add rcx, 1
xorps xmm0, xmm0
js 0x14010e1c4
cvtsi2ss xmm0, rcx
jmp 0x14010e1d9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rdi, qword [rbp + 0x38]
xorps xmm2, xmm2
test rdi, rdi
js 0x14010e1ec
cvtsi2ss xmm2, rdi
jmp 0x14010e204
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
comiss xmm1, xmm3
seta al
test al, al
je 0x14010e2a0
divss xmm0, xmm3
call fcn.1401268e4
xor ecx, ecx
movss xmm1, dword [0x14016cb4c]
comiss xmm0, xmm1
jb 0x14010e247
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14010e247
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdi, rcx
jae 0x14010e279
cmp rdi, 0x200
jae 0x14010e276
lea rdi, [rdi*8]
cmp rdi, rcx
jae 0x14010e279
mov rdi, rcx
mov rdx, rdi
mov rcx, rbp
call fcn.14010eac0
mov r9, rbx
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.14010dff0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov rdx, qword [rsp + 0x20]
mov r8, qword [rdx + 8]
inc qword [rbp + 0x10]
mov qword [rsi], rdx
mov qword [rsi + 8], r8
mov qword [r8], rsi
mov qword [rdx + 8], rsi
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x30]
and rax, rbx
add rax, rax
mov r9, qword [rcx + rax*8]
cmp r9, qword [r12]
jne 0x14010e2d9
mov qword [rcx + rax*8], rsi
jmp 0x14010e2eb
cmp r9, rdx
jne 0x14010e2e4
mov qword [rcx + rax*8], rsi
jmp 0x14010e2f0
cmp qword [rcx + rax*8 + 8], r8
jne 0x14010e2f0
mov qword [rcx + rax*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1401481b4
int3
Function at 0x140116d80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x140116f83
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [r13 + 8]
lea r14, [r13 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rbp
mov rcx, r14
call fcn.14004f670
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov qword [rsp + 0x20], r13
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x140116f45
movabs rbx, 0x100000001b3
movabs r15, 0xcbf29ce484222325
nop word [rax + rax]
mov rsi, qword [rsi]
lea rcx, [rdi + 0x10]
call fcn.1400208f0
mov r8, rax
mov r9, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140116e3d
mov r8, qword [rax]
mov rcx, r15
xor edx, edx
add r9, r9
je 0x140116e64
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, rbx
inc rdx
cmp rdx, r9
jb 0x140116e50
mov rdx, qword [r13 + 0x30]
and rdx, rcx
shl rdx, 4
mov r14, qword [r14]
add r14, rdx
cmp qword [r14], rbp
jne 0x140116e86
mov qword [r14], rdi
mov qword [r14 + 8], rdi
jmp 0x140116f35
mov rbx, qword [r14 + 8]
lea rdx, [rbx + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140115030
test al, al
je 0x140116eca
mov r8, qword [rbx]
cmp r8, rdi
je 0x140116ec4
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r14 + 8], rdi
jmp 0x140116f2b
mov r15, rbx
cmp qword [r14], rbx
je 0x140116efd
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rbx + 8]
mov r15, rbx
lea rdx, [rbx + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140115030
test al, al
jne 0x140116f5d
cmp qword [r14], rbx
jne 0x140116ee0
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r15
mov rax, qword [r15 + 8]
mov qword [rax], rdi
mov qword [r15 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r14], rdi
movabs r15, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
lea r14, [r13 + 0x18]
jne 0x140116e20
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x140116f21
lea rcx, str.invalid_hash_bucket_count
call fcn.1401481b4
int3
Function at 0x140116f90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x140117193
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [r13 + 8]
lea r14, [r13 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rbp
mov rcx, r14
call fcn.14004f670
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov qword [rsp + 0x20], r13
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x140117155
movabs rbx, 0x100000001b3
movabs r15, 0xcbf29ce484222325
nop word [rax + rax]
mov rsi, qword [rsi]
lea rcx, [rdi + 0x10]
call fcn.1400208f0
mov r8, rax
mov r9, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14011704d
mov r8, qword [rax]
mov rcx, r15
xor edx, edx
add r9, r9
je 0x140117074
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, rbx
inc rdx
cmp rdx, r9
jb 0x140117060
mov rdx, qword [r13 + 0x30]
and rdx, rcx
shl rdx, 4
mov r14, qword [r14]
add r14, rdx
cmp qword [r14], rbp
jne 0x140117096
mov qword [r14], rdi
mov qword [r14 + 8], rdi
jmp 0x140117145
mov rbx, qword [r14 + 8]
lea rdx, [rbx + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140115030
test al, al
je 0x1401170da
mov r8, qword [rbx]
cmp r8, rdi
je 0x1401170d4
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r14 + 8], rdi
jmp 0x14011713b
mov r15, rbx
cmp qword [r14], rbx
je 0x14011710d
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rbx + 8]
mov r15, rbx
lea rdx, [rbx + 0x10]
lea rcx, [rdi + 0x10]
call fcn.140115030
test al, al
jne 0x14011716d
cmp qword [r14], rbx
jne 0x1401170f0
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r15
mov rax, qword [r15 + 8]
mov qword [rax], rdi
mov qword [r15 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r14], rdi
movabs r15, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
lea r14, [r13 + 0x18]
jne 0x140117030
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x140117131
lea rcx, str.invalid_hash_bucket_count
call fcn.1401481b4
int3
Function at 0x140117c38
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140117c6f
call fcn.14011de08
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1401179fc
xor eax, eax
jmp 0x140117cfd
mov rdx, r9
mov rcx, r8
call fcn.140117bd4
mov rbx, rax
test rax, rax
je 0x140117cfa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140117b00]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140117ce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14011dd7c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140117cce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140117cdd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14012b260
jmp 0x140117cfa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140117cf7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14012b3a0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14012b40f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012b40f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012b40f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012b40f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012b40f
cmp dword [rcx + 0x84], 0xe
jbe 0x14012b40f
cmp dword [rcx + 0xf8], 0
je 0x14012b40f
mov ecx, ebx
call fcn.14012b4c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14012b29c
nop
cmp dword [rbp + 0x20], 0
je 0x14012b45d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14012b468
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14012b3a0
Function at 0x140132928
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14012ad00
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401329c9
cmp ebx, dword [rsp + 0x30]
je 0x1401329c2
test esi, esi
je 0x1401329c2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14013299d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401329aa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140132987
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401329ae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401329cb
mov eax, 1
jmp 0x1401329cb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401353dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401353f2
mov al, 1
jmp 0x140135452
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140135403
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140135450
mov ecx, dword [rcx + 0x18]
nop
call fcn.140135830
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140135450
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140135450
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140135450
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140135452
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14014b710
Capabilities:
Delete service

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14014b772
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401d6a10]
lea rax, [0x1401d6a10]
cmp rcx, rax
je 0x14014b766
test byte [rcx + 0x1c], 1
je 0x14014b766
cmp byte [rcx + 0x19], 3
jb 0x14014b766
mov rcx, qword [rcx + 0x10]
lea r8, [0x140194250]
mov edx, 0xa
mov r9d, ebx
call fcn.140020db0
mov eax, ebx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x14014b780
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rdx], rbp
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14014b7b8
call fcn.140146acc
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x38]
xor r9d, r9d
lea rsi, [rbx + 0x20]
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x14014b906
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14014b908
mov ecx, dword [rsp + 0x38]
call fcn.14014772c
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14014b814
mov eax, SafeArrayDestroy
jmp 0x14014b908
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov rcx, rax
call fcn.14013a3a0
mov r8, qword [rbx + 0x10]
lea rax, [rsp + 0x38]
mov r9d, dword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rbx + 0x18], r8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x14014b86a
mov rcx, qword [rbx + 0x10]
call fcn.140146acc
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rsi], ebp
jmp 0x14014b906
mov dword [rbx + 0x24], ebp
cmp dword [rsi], ebp
ja 0x14014b879
mov qword [rdi], rbp
jmp 0x14014b906
mov rax, qword [rbx + 0x18]
mov ecx, 0x28
mov rsi, qword [rax]
call fcn.140146a90
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14014b8fa
xorps xmm0, xmm0
mov rdx, rsi
movups xmmword [rax], xmm0
mov rcx, rax
movups xmmword [rax + 0x10], xmm0
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
mov qword [rdi], rax
call fcn.14014b930
test eax, eax
je 0x14014b903
mov rsi, qword [rdi]
test rsi, rsi
je 0x14014b8f5
mov rcx, qword [rsi]
test rcx, rcx
je 0x14014b8d9
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14014b8e8
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x28
mov rcx, rsi
call fcn.140146acc
mov qword [rdi], rbp
jmp 0x14014b903
mov qword [rdi], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [rbx + 0x24]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140146a70
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret