joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094210
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0xb0]
lea rax, [rsp + 0x38]
mov rsi, qword [rsp + 0xb8]
mov r15, r9
mov r14, r8
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov dword [rsp + 0x30], ebx
call fcn.140094400
test eax, eax
jne 0x140094397
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov qword [rsp + 0x58], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [rsp + 0x30]
mov ebx, eax
test rbp, rbp
je 0x1400942a8
cmp dword [rsi], edi
jae 0x1400942a8
mov ebx, 0xea
jmp 0x140094385
test eax, eax
jne 0x140094385
test rbp, rbp
je 0x140094383
mov r8d, dword [rsi]
xor edx, edx
mov rcx, rbp
call fcn.1400ec650
inc edi
mov ecx, edi
mov dword [rsp + 0x30], edi
call fcn.1400f8cb0
mov rdi, rax
test rax, rax
je 0x14009437c
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1400ec650
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x140094372
mov r8d, dword [rsi]
xor edx, edx
mov rcx, rbp
call fcn.1400ec650
mov r14d, dword [rsp + 0x30]
mov eax, dword [rsi]
mov r8d, r14d
test r14d, r14d
je 0x14009436f
mov rcx, rbp
cmp rax, r14
jb 0x140094350
mov rdx, rdi
call fcn.1400ebf80
mov rcx, rdi
mov dword [rsi], r14d
call fcn.1400f8c9c
jmp 0x140094385
mov r8, rax
xor edx, edx
call fcn.1400ec650
call fcn.1400f8d8c
mov dword [rax], 0x22
call fcn.1400f8ab4
mov r14d, dword [rsp + 0x30]
mov dword [rsi], r14d
mov rcx, rdi
call fcn.1400f8c9c
jmp 0x140094385
mov ebx, 0x7a
jmp 0x140094385
mov dword [rsi], edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0x60
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140094520
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov esi, dword [rsp + 0xd0]
lea rax, [rsp + 0x50]
mov rdi, qword [rsp + 0xc0]
mov r12d, r9d
mov r15, r8
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov r14, rdx
mov rbp, rcx
call fcn.140094400
mov ebx, eax
test eax, eax
je 0x1400945ad
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
or esi, 2
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, r14
mov dword [rsp + 0x20], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test eax, eax
jne 0x1400945e5
test rdi, rdi
je 0x1400945d8
mov eax, dword [rsp + 0xc8]
mov r9d, r12d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e9cb0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140097d80
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x78], rdx
mov r13, qword [rsp + 0x220]
mov dword [rsp + 0x70], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
mov qword [rdx + 0x20], rax
mov rcx, rdx
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
mov dword [rsp + 0x70], 1
movzx eax, byte [r14 + 0xf]
movzx ecx, byte [r14 + 0xe]
movzx edx, byte [r14 + 0xd]
movzx r10d, byte [r14 + 0xc]
movzx r11d, byte [r14 + 0xb]
movzx ebx, byte [r14 + 0xa]
movzx edi, byte [r14 + 9]
movzx esi, byte [r14 + 8]
movzx ebp, word [r14 + 6]
movzx r9d, word [r14 + 4]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
mov r8d, dword [r14]
lea rdx, str..Volume_08lX__04hX__04hX__02hhX_02hhX__02hhX_02hhX_02hhX_02hhX_02hhX_02hhX_
lea rcx, [rsp + 0xa0]
call fcn.140097810
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x140097ebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
xor r9d, r9d
lea edx, [r9 + 1]
mov rcx, r15
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedError::ISDI2_ERROR_TYPE__unsigned_long_int__char_const____ptr64____ptr64
lea rdx, str.GetDiskFreeSpaceEx___failed_in_DiskShrinkExtension::getVolumeFreeSpace
mov rcx, r15
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
jmp 0x140097ed3
mov rax, qword [rsp + 0x90]
mov qword [r13], rax
mov rax, qword [rsp + 0x80]
mov qword [r12], rax
mov rax, r15
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400e9cb0
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cd100
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400cd12d
xor eax, eax
jmp 0x1400cd227
cmp qword [rcx + 0x68], 0
je 0x1400cd141
lfence
call fcn.140020730
jmp 0x1400cd227
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400cd158
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400cd15a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400cd18c
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400ebf80
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400cd21e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400cd1c7
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, rbp
mov r15d, 0xfff
jmp 0x1400cd1f7
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.14010ca04
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1400cd21e
cmp rbp, r15
ja 0x1400cd1d2
test rbx, rbx
je 0x1400cd21e
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14010ca04
mov rbp, rbx
sub rbp, rax
sub rdi, rbp
mov rax, rdi
lfence
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14011c8a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14011c8d2
call fcn.1400f8d8c
mov dword [rax], 0x16
call fcn.1400f8ab4
jmp 0x14011c9f1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14011c9f1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14011c9f1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14011c901
lock or dword [rcx + 0x14], 0x10
jmp 0x14011c9f1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14011c915
call fcn.14011dcd4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140113b6c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14011d450
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14011c9df
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14011c9aa
mov rcx, rsi
call fcn.140113b6c
cmp eax, edi
je 0x14011c995
mov rcx, rsi
call fcn.140113b6c
cmp eax, 0xfffffffe
je 0x14011c995
mov rcx, rsi
call fcn.140113b6c
movsxd rbx, eax
lea r14, [0x140196600]
mov rcx, rsi
sar rbx, 6
call fcn.140113b6c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14011c99c
lea rdx, [0x140186b20]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14011c9aa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14011c9ce
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14011c9ce
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14011c9ce
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14011c9f4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14011ca0c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14011c72e
call fcn.1400f8d8c
mov dword [rax], 0x16
call fcn.1400f8ab4
jmp 0x14011c87e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14011c87e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14011c87e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14011c75d
lock or dword [rcx + 0x14], 0x10
jmp 0x14011c87e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14011c771
call fcn.14011dcd4
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x14011c781
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x14011c784
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140113b6c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14011d450
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14011c86c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14011c817
mov rcx, rbx
call fcn.140113b6c
cmp eax, 0xffffffff
je 0x14011c802
mov rcx, rbx
call fcn.140113b6c
cmp eax, 0xfffffffe
je 0x14011c802
mov rcx, rbx
call fcn.140113b6c
movsxd rdi, eax
lea rsi, [0x140196600]
mov rcx, rbx
sar rdi, 6
call fcn.140113b6c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14011c809
lea rdx, [0x140186b20]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14011c817
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14011c83b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14011c83b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14011c83b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14011c859
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14011c864
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x14011c883
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14011c6f8
Function at 0x14011cd24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400ea700
sub rsp, rax
mov rax, qword [0x140186768]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140113b6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14011cd73
mov rax, rbp
jmp 0x14011ce7b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x196600]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14011dc28
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x196600]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14011ce77
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011ce77
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14011dc28
test rax, rax
js 0x14011ce77
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14011ce77
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14011ce69
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14011ce69
cmp byte [rcx], 0xd
jne 0x14011ce4f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14011ce5e
cmp byte [rcx + 1], 0xa
jne 0x14011ce5e
inc rcx
jmp 0x14011ce5e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x187280]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14011ce31
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14011ce7b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e9cb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011cfa4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140196600]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14011d002
cmp word [rdx], r12w
jne 0x14011d002
or byte [rax + r8*8 + 0x38], cl
jmp 0x14011d008
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14011d163
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14011d13e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14011d041
mov rcx, r9
jmp 0x14011d064
cmp r9, rdx
jae 0x14011d07b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14011d025
jmp 0x14011d163
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011d138
cmp dword [rsp + 0x80], edi
je 0x14011d138
mov rdx, r14
lea r11, [0x140196600]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14011d111
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14011d0e4
mov word [rbx], r12w
jmp 0x14011d15f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14011d0ed
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14011d15f
cmp word [rsp + 0x70], r12w
jne 0x14011d11e
cmp rbx, rsi
je 0x14011d0de
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14011dc30
cmp word [rsp + 0x70], r12w
je 0x14011d163
mov word [rbx], r13w
jmp 0x14011d15f
lea r11, [0x140196600]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14011d15b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14011d163
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14011e488
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14011e50f
mov rsi, rbx
cmp word [rax], bp
je 0x14011e4ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14011e4b8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14011e4b4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401127bc
mov rdi, rax
test rax, rax
je 0x14011e4fc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ebf80
mov rbp, rdi
xor ecx, ecx
call fcn.140112780
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x141435058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1414351df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141435089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14143506f
add dl, dl
jne 0x141435096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414350f6
xor eax, eax
add dl, dl
jne 0x1414350a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414351ad
add dl, dl
jne 0x1414350b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414350c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414350d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414350dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414350ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14143507e
mov eax, 1
add dl, dl
jne 0x141435106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141435113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414350fb
sub eax, ebx
mov ebx, 1
jne 0x14143514c
mov ecx, 1
add dl, dl
jne 0x14143512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14143513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141435123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14143507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141435168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141435175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14143515d
cmp eax, 0x7d00
jae 0x14143519b
cmp eax, 0x500
jb 0x141435196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14143507e
cmp eax, 0x7f
ja 0x14143519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14143507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414351d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14143507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005b40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140017040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140001f50
nop
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140008080
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140005cad
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005cad
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005cad
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005cad
mov eax, dword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140005c73
mov rdi, qword [rdi]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005cad
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x140005caf
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140005cef
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005cea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005cea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009a64
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009a00
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret