joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018ce80
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
movzx eax, byte [0x140256a90]
test al, al
je 0x14018cf2b
mov qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], 0
xorps xmm0, xmm0
mov dword [r11 - 0x38], r8d
xor r9d, r9d
mov qword [r11 - 0x40], rdx
xor r8d, r8d
xor edx, edx
mov qword [r11 - 8], rdi
movups xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x48], rax
call qword [0x1401ea880]
mov edi, eax
cmp eax, 0xc0000011
jne 0x14018cf01
xor ecx, ecx
mov qword [rsp + 0x58], 0
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
ret
mov ecx, edi
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, 0xffffffffffffffff
test edi, edi
js 0x14018cf21
mov rax, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
ret
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov rax, 0xffffffffffffffff
je 0x14018cf54
mov eax, dword [rsp + 0x88]
add rsp, 0x68
ret

Function at 0x14018cf60
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
movzx eax, byte [0x140256a90]
test al, al
je 0x14018cfd4
xor eax, eax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x28], rax
xorps xmm0, xmm0
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov dword [r11 - 0x38], r8d
lea rax, [r11 - 0x18]
mov qword [r11 - 0x40], rdx
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x48], rax
movups xmmword [rsp + 0x50], xmm0
call qword [0x1401ea898]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x58]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, 0xffffffffffffffff
cmovs rax, rcx
add rsp, 0x68
ret
xor eax, eax
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, 0xffffffffffffffff
test eax, eax
je 0x14018cffb
mov ecx, dword [rsp + 0x88]
mov rax, rcx
add rsp, 0x68
ret

Function at 0x14018d010
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
movzx eax, byte [0x140256a90]
mov rdi, rdx
mov rbx, rcx
test al, al
je 0x14018d074
mov qword [rsp + 0x60], rdx
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov r9d, 8
call qword [0x1401e9e28]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
setns al
dec eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor r8d, r8d
call fcn.14018d0b0
cmp rax, rdi
je 0x14018d091
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rbx, qword [rsp + 0x50]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x40
pop rdi
ret
Function at 0x14018d250
Capabilities:
Get file size

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx eax, byte [0x140256a90]
test al, al
je 0x14018d2cc
mov r9d, 0x18
mov qword [rsp + 0x60], rbx
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
call qword [0x1401ea098]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x48]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
mov rdx, 0xffffffffffffffff
cmovs rax, rdx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x68
ret
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14018d30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
test ecx, ecx
cmovne rax, rdx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x68
ret
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x68
ret

Function at 0x14018d3d0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x240], rax
test rdx, rdx
je 0x14018d40b
mov eax, dword [rdx]
test eax, eax
je 0x14018d40b
cmp eax, 1
je 0x14018d449
mov eax, dword [rdx + 4]
add rdx, 8
add rdx, rax
mov eax, dword [rdx]
test eax, eax
jne 0x14018d3f6
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x104
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x20]
movzx r8d, byte [0x140256a90]
call fcn.14018c810
test eax, eax
je 0x14018d465
cmp eax, 1
je 0x14018d450
mov ebx, 0xffffffff
jmp 0x14018d471
call fcn.14018eeb0
jmp 0x14018d48d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb ebx, ebx
neg ebx
dec ebx
jmp 0x14018d471
mov rcx, qword [rsp + 0x20]
call fcn.14018eeb0
mov ebx, eax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x14018d48b
test rcx, rcx
je 0x14018d48b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x250
pop rbx
ret
Function at 0x14018d9d0
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, r8d
test rdx, rdx
je 0x14018da15
mov eax, dword [rdx]
test eax, eax
je 0x14018da15
nop dword [rax]
cmp eax, 1
je 0x14018da5a
mov eax, dword [rdx + 4]
add rdx, 8
add rdx, rax
mov eax, dword [rdx]
test eax, eax
jne 0x14018da00
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x104
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x20]
movzx r8d, byte [0x140256a90]
call fcn.14018c810
test eax, eax
je 0x14018daed
cmp eax, 1
je 0x14018da64
mov ebx, 0xffffffff
jmp 0x14018dafc
call fcn.14018f040
jmp 0x14018db18
mov ecx, ebx
and ecx, 1
mov eax, ebx
mov edx, ecx
or edx, 2
and al, 2
cmove edx, ecx
mov eax, ebx
mov ecx, edx
or ecx, 4
and al, 4
cmove ecx, edx
mov eax, ebx
mov edx, ecx
or edx, 0x10
and al, 8
cmove edx, ecx
mov eax, ebx
mov ecx, edx
bts ecx, 0xa
and al, 0x10
cmove ecx, edx
mov eax, ebx
mov edx, ecx
bts edx, 7
and al, 0x20
cmove edx, ecx
mov eax, ebx
mov r8d, edx
bts r8d, 9
and al, 0x80
cmove r8d, edx
mov eax, ebx
mov ecx, r8d
bts ecx, 0x12
and eax, 0x100
cmove ecx, r8d
mov edx, ecx
bts edx, 0x16
and ebx, 0x200
cmove edx, ecx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb ebx, ebx
neg ebx
dec ebx
jmp 0x14018dafc
mov r8d, ebx
mov rcx, qword [rsp + 0x20]
call fcn.14018f040
mov ebx, eax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x14018db16
test rcx, rcx
je 0x14018db16
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x250
pop rbx
ret
Function at 0x14018db40
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa8
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, byte [0x140256a90]
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbp, rcx
test al, al
je 0x14018dc42
mov qword [rsp + 0xa0], rbx
test rdx, rdx
jne 0x14018db8c
test r9, r9
je 0x14018dbef
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call qword [0x1401ea098]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jns 0x14018dbd2
mov rbx, qword [rsp + 0xa0]
mov eax, 0xffffffff
jmp 0x14018dcbf
test rdi, rdi
je 0x14018dbdf
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
test rsi, rsi
je 0x14018dbef
mov ecx, dword [rsp + 0x60]
call fcn.14018f680
mov dword [rsi], eax
test r14, r14
je 0x14018dc36
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rsp + 0x78]
mov rcx, rbp
lea rdx, [rsp + 0x30]
call qword [0x1401ea098]
mov ecx, eax
mov ebx, eax
call qword [0x14024f040]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x14018dbc0
mov rax, qword [rsp + 0x80]
mov qword [r14], rax
mov rbx, qword [rsp + 0xa0]
xor eax, eax
jmp 0x14018dcbf
test rdi, rdi
jne 0x14018dc4c
test rsi, rsi
je 0x14018dc8f
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14018dc62
mov eax, 0xffffffff
jmp 0x14018dcbf
test rdi, rdi
je 0x14018dc7f
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
test rsi, rsi
je 0x14018dc8f
mov ecx, dword [rsp + 0x40]
call fcn.14018f680
mov dword [rsi], eax
test r14, r14
je 0x14018dcbd
lea rdx, [rsp + 0x34]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14018dcb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14018dc5b
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0xa8
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018fa80
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, rcx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x104
xor ebx, ebx
mov qword [rsp + 0x40], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14018fc89
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14018fc89
add eax, 0xfffffffe
cmp eax, 1
ja 0x14018fc84
lea edx, [rbx + 0x5c]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdi, rax
test rax, rax
je 0x14018fc84
sub rdi, r14
sar rdi, 1
mov rsi, qword [rsp + 0x40]
lea r12, [rsi + rdi]
movabs r13, 0xfc0fc0fc0fc0fc1
cmp r12, qword [rsp + 0x38]
jbe 0x14018fbb0
lfence
mov rax, r13
mul r12
shr rdx, 4
inc rdx
imul rax, rdx, 0x104
cmp rax, r12
cmovae r12, rax
lea rdx, [r12 + r12]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
cmove rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r15, rax
test rax, rax
je 0x14018fc84
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x14018fba4
lea rax, [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
cmp rdx, rax
jne 0x14018fba4
lea r8, [rsi + rsi]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
jmp 0x14018fbb5
mov r15, qword [rsp + 0x30]
lea r8, [rdi + rdi]
lea rcx, [r15 + rsi*2]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
add rdi, qword [rsp + 0x40]
mov qword [rsp + 0x40], rdi
lea r15, [rdi + 1]
cmp r15, qword [rsp + 0x38]
jbe 0x14018fc4c
lfence
mov rax, r13
mul r15
shr rdx, 4
inc rdx
imul rax, rdx, 0x104
cmp rax, r15
cmovae r15, rax
lea rdx, [r15 + r15]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
cmp rcx, rax
cmove rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rsi, rax
test rax, rax
je 0x14018fc84
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14018fc40
lea rax, [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
cmp rdx, rax
jne 0x14018fc40
lea r8, [rdi + rdi]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r15
jmp 0x14018fc51
mov rsi, qword [rsp + 0x30]
mov word [rsi + rdi*2], bx
inc qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.14018fa80
test eax, eax
jne 0x14018fc84
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14018fc89
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14018fc89
mov ebx, 0xffffffff
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x14018fca3
test rcx, rcx
je 0x14018fca3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1401c5190
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401910a0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r9, r9
je 0x1401910db
mov r8, r9
mov rdx, rbx
mov rcx, rdi
call fcn.1401aec20
jmp 0x1401910ee
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140191159
mov eax, eax
cmp rax, rbx
ja 0x140191159
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140191159
test rbx, rbx
je 0x140191155
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140191120
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
cmp rax, rbx
jae 0x140191144
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
jmp 0x140191160
lea r9, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
mov word [rdi + rbx*2 - 2], ax
xor eax, eax
jmp 0x140191160
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401c5190
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x140191290
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x50
xor r9d, r9d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rbx, rcx
call qword [case.0x1401ba071.159]
test eax, eax
jne 0x1401912fd
lea rax, [rsp + 0x30]
mov rcx, rbx
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x1401912e3
mov rax, 0xffffffffffffffff
add rsp, 0x50
pop rbx
ret
mov ecx, dword [rsp + 0x70]
mov eax, dword [rsp + 0x68]
imul rax, rcx
mov ecx, dword [rsp + 0x78]
imul rax, rcx
add rsp, 0x50
pop rbx
ret
mov rax, qword [rsp + 0x38]
add rsp, 0x50
pop rbx
ret
Function at 0x140191310
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x80
mov rdi, r9
mov rbx, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x38], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.14018db40
test eax, eax
je 0x140191361
mov rax, 0xffffffffffffffff
jmp 0x140191461
mov rcx, qword [rsp + 0x38]
cmp rdi, rcx
jb 0x140191372
xor eax, eax
jmp 0x140191461
lea rax, [rbx + rdi]
cmp rax, rcx
jbe 0x140191381
mov rbx, rcx
sub rbx, rdi
mov eax, dword [0x140256d98]
test eax, eax
jne 0x1401913a0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x78]
mov dword [0x140256d98], eax
mov esi, eax
dec rsi
not rsi
and rsi, rdi
sub rdi, rsi
mov qword [rsp + 0x30], 0xffffffffffffffff
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, r14
call qword [case.0x1401ba071.160]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140191459
lfence
lea rcx, [rdi + rbx]
mov r8, rsi
shr r8, 0x20
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140191450
lfence
lea rdx, [rax + rdi]
mov r8, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x30], rbx
jmp 0x140191444
lfence
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r14
call qword [case.0x1401b9e8b.6]
lfence
mov rax, qword [rsp + 0x30]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret

Function at 0x140191480
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov eax, dword [0x140256d9c]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test eax, eax
jne 0x1401914d3
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov dword [0x140256d9c], eax
test eax, eax
je 0x14019153f
mov ecx, eax
xor edx, edx
mov rax, r14
div rcx
test rdx, rdx
jne 0x14019153f
mov rax, rsi
div rcx
test rdx, rdx
jne 0x14019153f
mov rax, rdi
div rcx
test rdx, rdx
jne 0x14019153f
lea ecx, [rdx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14019153f
xor ecx, ecx
mov qword [rax], r14
lea rdx, [r14 + rsi]
mov qword [rax + 8], rsi
add rdx, rdi
mov qword [rax + 0x10], rdi
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140191557
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
mov rax, rbx
jmp 0x140191541
Function at 0x140192a60
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor dil, dil
add rcx, 0x238
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0xc], 0
mov byte [rbx + 8], 1
je 0x140192b30
xor edx, edx
mov qword [rsp + 0x68], rsi
xor ecx, ecx
mov r8d, 0xf0000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140192b2b
lea rdx, [rbx + 0x20]
mov r8d, 0x134
mov rcx, rax
call qword [case.0x1401ba071.44]
mov qword [rbx], rax
test rax, rax
je 0x140192b22
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140192b1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140192b22
mov rcx, qword [rbx]
lea r8, [rsp + 0x20]
mov edx, 0x81
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140192b22
mov rdx, qword [rbx]
mov r8d, 4
call fcn.140193cb0
mov dil, 1
mov byte [rbx + 9], dil
mov rcx, rsi
call qword [case.0x1401ba071.43]
mov rsi, qword [rsp + 0x68]
lea rcx, [rbx + 0x238]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140193cb0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rcx, rsi
lea rdx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140193d15
cmp dword [rsp + 0x24], edi
je 0x140193d34
cmp ebx, 0xa
jge 0x140193d15
lfence
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rsi
inc ebx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140193ce8
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov al, 1
jmp 0x140193d17

Function at 0x140194b90
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
test rcx, rcx
je 0x140194cf6
mov rbx, qword [rcx + 0x18]
test rbx, rbx
je 0x140194cf6
mov rbx, qword [rbx + 0x18]
test rbx, rbx
je 0x140194cf6
mov rdx, rbx
lea rcx, str.1.2.840.113549.1.1.11
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140194bfa
mov rdx, rbx
lea rcx, str.1.2.840.113549.1.1.12
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140194bfa
mov rdx, rbx
lea rcx, str.1.2.840.113549.1.1.13
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140194cf6
xor edi, edi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rdi + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140194c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140194cdf
mov dword [rsp + 0x20], 8
lea r9d, [rdi + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140194cdf
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140194cca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090008
sete bl
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140194ca2
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140194cb9
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x40], rdi
test bl, bl
je 0x140194cf6
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140194cdf
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140194cf6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x40], rdi
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1401952d0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 5
xor ebx, ebx
nop dword [rax]
test ebx, ebx
jne 0x140195322
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
dec edi
mov ebx, eax
test eax, eax
jne 0x14019531e
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jg 0x1401952f0
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret