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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov r9d, dword [rcx + 8]
xor eax, eax
mov rsi, rdx
mov qword [rsp + 0x40], rax
mov r8, rdx
mov dword [rsp + 0x48], eax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.1800067e0
jmp 0x18000691d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1800068c4
mov ebx, eax
test eax, eax
jne 0x18000698d
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x190]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x180]
xor ebx, ebx
mov dword [rbp + 0x180], 0x100
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18000690e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000697c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
mov rdx, rsi
mov dword [rsp + 0x48], ebx
mov rcx, rdi
call fcn.1800066e4
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000699d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006e68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x470
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r14, r9
mov r15, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x498], rax
test rax, rax
jne 0x180006ef1
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x498], rax
test rax, rax
jne 0x180006ef1
call fcn.180006408
mov ebx, eax
jmp 0x18000700b
mov r8, r14
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180006f12
call fcn.180006408
jmp 0x180006ffa
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180006f08
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x490], eax
inc eax
cmp eax, ebx
jae 0x180006f50
mov ebx, 0x8007000e
jmp 0x180006ffc
mov ecx, eax
test eax, eax
je 0x180006f88
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180006f7e
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180006f88
lea rcx, [rsp + 0x60]
call fcn.180009e64
jmp 0x180006f92
mov ecx, 0x80070216
call fcn.1800063ec
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x180006faa
cmp qword [rsp + 0x60], rdi
je 0x180006f46
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180006f08
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4b0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180007c38
mov ebx, eax
test rsi, rsi
je 0x18000700b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x180007022
lea rcx, [rsp + 0x60]
call fcn.180009cdc
nop
mov eax, ebx
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180009198
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r14d, edx
mov rdi, rcx
or ebx, 0xffffffff
xor esi, esi
cmp edx, ebx
jne 0x1800091d5
cmp edx, ebx
cmovne esi, edx
mov eax, esi
jmp 0x1800093b9
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180009210
mov rdx, qword [rdi + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x180009210
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], r14b
mov eax, r14d
jmp 0x1800093b9
cmp qword [rdi + 0x80], rsi
je 0x1800093b7
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18000924a
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x68], rsi
jne 0x18000926b
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call fcn.1800105f0
cmp eax, ebx
cmovne ebx, r14d
jmp 0x1800093b7
mov byte [rbp - 0x30], r14b
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], rsi
mov byte [rbp - 0x20], sil
mov r15d, 8
mov r8d, r15d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.18000c9c0
mov qword [rbp - 0x10], r15
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
mov byte [rax + 8], sil
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
lea r8, [rbp - 0x20]
cmovae r8, qword [rbp - 0x20]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2f]
lea r8, [rbp - 0x30]
lea rdx, [rdi + 0x74]
call qword [r10 + 0x38]
test eax, eax
js 0x180009399
cmp eax, 1
jg 0x18000937e
lea rax, [rbp - 0x20]
mov r10, qword [rbp - 0x20]
mov r9, qword [rbp - 8]
cmp r9, 0x10
cmovae rax, r10
mov r15, qword [rbp + 0x40]
sub r15, rax
je 0x180009346
lea rcx, [rbp - 0x20]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, r15
mov edx, 1
call fcn.1800112e8
cmp r15, rax
jne 0x180009399
mov byte [rdi + 0x71], 1
lea rax, [rbp - 0x30]
cmp qword [rbp + 0x48], rax
jne 0x180009379
test r15, r15
jne 0x1800092a9
cmp qword [rbp - 0x10], 0x20
jae 0x180009399
xor r8d, r8d
lea edx, [r15 + 8]
lea rcx, [rbp - 0x20]
call fcn.180002a58
jmp 0x1800092a9
mov ebx, r14d
jmp 0x180009399
cmp eax, 3
jne 0x180009399
movsx ecx, byte [rbp - 0x30]
mov rdx, qword [rdi + 0x80]
call fcn.1800105f0
cmp eax, ebx
cmovne ebx, r14d
mov r9, qword [rbp - 8]
cmp r9, 0x10
jb 0x1800093b7
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp - 0x20]
call fcn.180001690
nop
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1800099fc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x68], rbx
je 0x180009b57
cmp byte [rcx + 0x71], bl
je 0x180009b57
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x180009a4c
xor al, al
jmp 0x180009b59
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], rbx
mov byte [rbp - 0x28], bl
mov r15d, 8
mov r8d, r15d
xor edx, edx
lea rcx, [rbp - 0x28]
call fcn.18000c9c0
mov qword [rbp - 0x18], r15
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + 8], bl
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x180009ac7
sub ecx, 1
jne 0x180009b2e
jmp 0x180009aca
mov byte [rdi + 0x71], bl
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rsi, qword [rbp + 0x20]
sub rsi, rax
je 0x180009b0c
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
call fcn.1800112e8
cmp rsi, rax
jne 0x180009b35
cmp byte [rdi + 0x71], bl
je 0x180009b33
test rsi, rsi
jne 0x180009a84
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x28]
call fcn.180002a58
jmp 0x180009a84
cmp ecx, 2
jne 0x180009b35
mov bl, 1
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
jb 0x180009b53
lea rdx, [r9 + 1]
mov r8d, 1
mov rcx, qword [rbp - 0x28]
call fcn.180001690
nop
mov al, bl
jmp 0x180009b59
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180020320
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd r13, ecx
lea r10, [0x18003c040]
mov rdi, r13
mov r15, r13
sar r15, 6
and edi, 0x3f
shl rdi, 6
mov r14, rdx
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
mov rcx, qword [rax + rdi + 0x28]
mov qword [rsp + 0x98], rcx
test r8, r8
je 0x180020378
cmp word [rdx], r9w
jne 0x180020378
or byte [rax + rdi + 0x38], 4
jmp 0x18002037d
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x180020533
lea rbp, [rdx + 2]
mov edx, 0xd
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x180020515
cmp ax, dx
je 0x1800203bf
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x180020460
cmp rbp, r12
jae 0x1800203e5
cmp word [rbp], r9w
jne 0x1800203e0
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x180020460
mov word [rbx], dx
jmp 0x1800203ae
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
add rsi, 2
add rbp, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800204f9
cmp dword [rsp + 0x90], 0
je 0x1800204f9
lea r10, [0x18003c040]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x1800204aa
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x18002046e
mov word [rbx], r9w
add rbx, 2
mov edx, 0xd
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x180020399
jmp 0x180020533
mov ecx, 0xd
mov word [rsp + 0x88], ax
mov word [rbx], cx
add rbx, 2
xor edx, edx
mov rcx, qword [r10 + r15*8]
mov al, byte [rsp + rdx + 0x88]
add rcx, rdi
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, 2
jl 0x180020484
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x180020453
cmp word [rsp + 0x80], r9w
jne 0x1800204ba
cmp rbx, r14
je 0x18002044b
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.180019d14
mov r9d, 0xa
lea r10, [0x18003c040]
cmp word [rsp + 0x80], r9w
je 0x180020453
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x180020458
mov edx, 0xd
lea r10, [0x18003c040]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x180020458
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x180020529
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x180020533
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, 2
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800012f0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
movzx ebp, r8w
mov r12, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rcx + 8], r13d
lea rax, vtable.CCoreManage.0
mov qword [rcx], rax
mov qword [rcx + 0x18], r13
lea rbx, [rcx + 0x20]
mov qword [rsp + 0x88], rbx
lea ecx, [r13 + 8]
call fcn.18000a618
test rax, rax
je 0x18000134c
mov qword [rax], rbx
jmp 0x18000134f
mov rax, r13
mov qword [rbx], rax
mov rcx, rbx
call fcn.180004bc0
mov qword [rbx + 0x30], rax
mov byte [rax + 0x29], 1
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rbx + 0x30]
mov qword [rax], rax
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x10], rax
mov qword [rbx + 0x38], r13
mov qword [rdi + 0x60], r13
lea rbx, [rdi + 0x78]
mov qword [rsp + 0x88], rbx
mov ecx, 8
call fcn.18000a618
test rax, rax
je 0x1800013a1
mov qword [rax], rbx
jmp 0x1800013a4
mov rax, r13
mov qword [rbx], rax
mov rcx, rbx
call fcn.180004bc0
mov qword [rbx + 0x30], rax
mov byte [rax + 0x29], 1
mov rax, qword [rbx + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rbx + 0x30]
mov qword [rax], rax
mov rax, qword [rbx + 0x30]
mov qword [rax + 0x10], rax
mov qword [rbx + 0x38], r13
lea r9, str.2B99178A_21A2_4176_8D32_81DA708CFD0A_Event
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0xe8], rax
mov qword [rdi + 0xf0], r13
mov qword [rdi + 0xf8], r13
mov qword [rdi + 0x10], r12
mov word [rdi + 0x70], bp
mov dword [rdi + 0xe0], r13d
mov ecx, 0xc8
call fcn.18000a618
test rax, rax
je 0x180001424
mov rcx, rax
call fcn.1800094a0
jmp 0x180001427
mov rax, r13
mov qword [rdi + 0x68], rax
mov qword [rax + 0x40], rdi
mov rbx, qword [rdi + 0x68]
mov qword [rsp + 0x88], rbx
test rbx, rbx
je 0x18000144a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
lea rdx, [rdi + 0x60]
call qword [rax + 0x20]
test eax, eax
jne 0x1800014d1
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1800014d1
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
lea rcx, [rdi + 0xb8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea r8, str.2B99178A_21A2_4176_8D32_81DA708CFD0A_FileMap
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rdi + 0xf0], rax
test rax, rax
je 0x1800014b8
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0xf8], rax
test rbx, rbx
je 0x1800014cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, rdi
jmp 0x1800014e8
mov rax, rdi
jmp 0x1800014e8
test rbx, rbx
je 0x1800014e5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, rdi
jmp 0x1800014e8
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001b50
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xb00
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0xaf0], rax
sub ecx, 2
je 0x180001ba1
sub ecx, 1
je 0x180001b98
sub ecx, 1
je 0x180001b8f
cmp ecx, 1
je 0x180001b86
xor eax, eax
jmp 0x180001caa
lea rbx, str._op:7
jmp 0x180001ba8
lea rbx, str._op:6
jmp 0x180001ba8
lea rbx, str._op:8
jmp 0x180001ba8
lea rbx, str._op:9
lea rdx, [rsp + 0xe0]
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0xb10], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.Update.exe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x2f2]
xor edi, edi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x2f0], di
call fcn.18000b450
lea r8, [rsp + 0xe0]
lea rdx, str.__s___s
lea rcx, [rsp + 0x2f0]
mov r9, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
call fcn.18000b450
mov eax, 5
lea rdx, [rsp + 0x2f0]
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdi, qword [rsp + 0xb10]
mov ebx, eax
test eax, eax
je 0x180001ca8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xaf0]
xor rcx, rsp
call fcn.18000a310
add rsp, 0xb00
pop rbx
ret

Function at 0x180005020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180005053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180005097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x180005092
cmp rbx, r11
jae 0x180005097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x180005080
cmp rbx, r11
jb 0x18000509b
xor eax, eax
jmp 0x1800050a7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180005420
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rsi, rdx
mov byte [rdx], 0
xor ecx, ecx
xor edx, edx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x18000545b
mov eax, 0x80004005
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
lea rdx, str.KuaiZipDrive
mov r8d, 4
mov rcx, rax
mov qword [rsp + 0x70], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180005490
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x1800054e7
jmp 0x18000551b
xor eax, eax
xor ecx, ecx
lea r8, [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x78]
lea r9d, [rcx + 0x24]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x78], ecx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x180005508
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
cmp dword [rsp + 0x34], 4
jne 0x180005512
mov byte [rsi], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
xor eax, eax
add rsp, 0x60
pop rsi
ret
Function at 0x180005a10
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x250
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x180005a54
mov eax, 0x80004005
jmp 0x180005bc0
lea rdx, str.KuaiZipDrive
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x268], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180005a8a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x180005bb8
mov qword [rsp + 0x260], rsi
lea r9, [rsp + 0x20]
mov qword [rsp + 0x270], r12
xor r12d, r12d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [rsp + 0x20]
lea ecx, [r12 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180005aef
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x180005b0b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005ba8
lea rdx, str.KuaiZipDrive
mov rcx, rbp
call fcn.180005e80
mov rcx, qword [rsi + 0x10]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180005b8b
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], r12w
call fcn.18000b450
xor ecx, ecx
call fcn.18000ab34
mov r8, qword [rsi + 0x10]
lea rdx, str._s__d
lea rcx, [rsp + 0x30]
add r8, 8
mov r9, rax
call fcn.180006180
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x30]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rsi, qword [rsp + 0x260]
mov r12, qword [rsp + 0x270]
mov rdi, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18000a310
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rbp
ret
Function at 0x180005e80
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x180005ec7
mov eax, 0x80004005
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
lea rdx, str.KuaiZipDrive
mov r8d, 0x2c
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180005efd
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180006022
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000603a
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x18000600c
cmp eax, 3
jne 0x180005f9a
nop word [rax + rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000603a
cmp dword [rsp + 0x34], 1
je 0x18000600c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
ja 0x18000603a
cmp dword [rsp + 0x34], 3
je 0x180005f40
mov ebx, 1
lea r8, [rsp + 0x30]
mov rcx, rsi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x18000600e
cmp dword [rsp + 0x34], ebx
je 0x18000600c
nop dword [rax]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x18000603a
cmp dword [rsp + 0x34], ebx
je 0x18000600c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x3a98
ja 0x18000603a
cmp dword [rsp + 0x34], ebx
jne 0x180005fc0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ebx, 0x80004005
jmp 0x18000600e