joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002db00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14002dbd3
cmp byte [rcx + 0x71], 0
je 0x14002dbd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002dbcf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14002db94
sub eax, 1
je 0x14002db98
cmp eax, 2
jne 0x14002dbcf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002e400
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002dbc6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14002dbcf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002db7c
xor al, al
jmp 0x14002db7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002e400
add rsp, 0x60
pop rbx
ret

Function at 0x14002e090
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002e114
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140030660]
cmp byte [rcx + rax], 0
je 0x14002e114
dec r8
sub rdx, 1
jne 0x14002e0fa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002ef88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002efd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002efd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002efd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002efd2
cmp dword [rcx + 0x84], 0xe
jbe 0x14002efd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002efd4
xor al, al
add rsp, 0x28
ret
Function at 0x140793058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407931df
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 0x140793089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079306f
add dl, dl
jne 0x140793096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407930f6
xor eax, eax
add dl, dl
jne 0x1407930a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407931ad
add dl, dl
jne 0x1407930b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407930c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407930d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407930dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407930ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14079307e
mov eax, 1
add dl, dl
jne 0x140793106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140793113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407930fb
sub eax, ebx
mov ebx, 1
jne 0x14079314c
mov ecx, 1
add dl, dl
jne 0x14079312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140793123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140793168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140793175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079315d
cmp eax, 0x7d00
jae 0x14079319b
cmp eax, 0x500
jb 0x140793196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079307e
cmp eax, 0x7f
ja 0x14079319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407931d2
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 0x14079307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140023690
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002369d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400236ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140023695
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400236c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400236b2
sub eax, 3
jb 0x1400236df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140023716
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140023706
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140023704
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400236f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140023652
jmp 0x14002369d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe200
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140023762
cmp rsi, rcx
jae 0x14002376a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140023749
cmp al, 0x8f
ja 0x140023749
cmp byte [rsi - 2], 0xf
je 0x14002374f
sub al, 0xe8
cmp al, 1
ja 0x140023733
cmp rsi, rcx
jae 0x14002376a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140023739
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002376a
lodsb al, byte [rsi]
jmp 0x140023749
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x21000]
mov eax, dword [rdi]
or eax, eax
je 0x1400237c7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2616c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140023777
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400237c1
mov qword [rbx], rax
add rbx, 8
jmp 0x140023797
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140023801
cmp al, 0xef
ja 0x1400237f3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400237d3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400237e2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140023880], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140023880
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140023870
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x14001132f
Capabilities:
Terminate process

Disassembly:
jmp 0x140016730
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011410
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017a80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017aa0
xor al, al
jmp 0x140017b21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017ab3
xor al, al
jmp 0x140017b21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017add
xor al, al
jmp 0x140017b21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017af1
xor al, al
jmp 0x140017b21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017b03
xor al, al
jmp 0x140017b21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017b1f
xor al, al
jmp 0x140017b21
mov al, 1
add rsp, 0x38
ret
Function at 0x14001688c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001690a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140016901
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140016901
mov rax, qword [rbp - 8]
jmp 0x14001691f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400168d4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140003f70
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x140132088]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movzx ebx, dl
mov rdi, rcx
mov qword [r11 - 0x38], rcx
lea rcx, [r11 - 0x30]
call fcn.140020400
nop
mov r8d, 4
lea rdx, str.__am
mov rcx, rdi
call fcn.140009030
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400a7960
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0x540
lea rcx, str.runas
lea rax, str.open
test bl, bl
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rax, qword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rax, [0x1400f3020]
mov qword [rsp + 0x58], rax
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000403d
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140004073
lea rcx, [rsp + 0xa8]
call fcn.140002380
nop
mov rcx, rdi
call fcn.140002380
xor al, al
jmp 0x14000409f
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140004087
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa8]
call fcn.140002380
nop
mov rcx, rdi
call fcn.140002380
mov al, 1
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400a5660
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
Function at 0x140004560
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
jne 0x140004584
xor al, al
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x38], rbp
mov ebp, 0x100
mov ecx, ebp
mov qword [rsp + 0x30], rsi
mov esi, 0x80
call fcn.1400aa4bc
cmp qword [rdi + 0x18], 8
mov rbx, rax
mov dword [rsp + 0x60], 0xfe
mov rdx, rdi
mov dword [rsp + 0x78], 1
jb 0x1400045c4
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x140004640
nop dword [rax + rax]
mov edx, ebp
mov rcx, rbx
add rdx, rdx
mov esi, ebp
call fcn.1400aa424
cmp qword [rdi + 0x18], 8
lea ebp, [rsi + rsi]
mov rbx, rax
mov rdx, rdi
lea eax, [rbp - 2]
mov dword [rsp + 0x60], eax
jb 0x140004619
mov rdx, qword [rdi]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov rcx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1400045f0
mov rbp, qword [rsp + 0x38]
xor dil, dil
test eax, eax
jne 0x14000467d
mov eax, dword [rsp + 0x60]
xor edx, edx
cmp eax, esi
jb 0x140004659
lea eax, [rsi - 1]
mov word [rbx + rax*2], dx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140004664
mov rdx, rbx
mov rcx, r15
call fcn.140002400
mov dil, 1
mov rcx, rbx
call fcn.1400aa178
mov rsi, qword [rsp + 0x30]
movzx eax, dil
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400084d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3e8]
sub rsp, 0x4e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140132088]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
movaps xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [0x1400f4a20]
movaps xmmword [rbp - 0x40], xmm1
movaps xmm0, xmmword [0x1400f4a30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [0x1400f4a40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmm0, xmmword [0x1400f4a50]
movaps xmmword [rbp - 0x10], xmm0
movsd xmm1, qword [0x1400f4a60]
movsd qword [rbp], xmm1
mov eax, dword [0x1400f4a68]
mov dword [rbp + 8], eax
xor edx, edx
mov r8d, 0x1ac
lea rcx, [rbp + 0xc]
call fcn.1400a7960
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400085df
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x1c0]
call fcn.1400a7960
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.haozipcd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400085e6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1400086df
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x1400fd1f0]
movdqu xmmword [rsp + 0x78], xmm1
xor ebx, ebx
mov word [rsp + 0x68], bx
lea r8d, [rbx + 0xc]
lea rdx, [0x1400f4a70]
lea rcx, [rsp + 0x68]
call fcn.140002400
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.1400179c8
nop
lea rcx, [rsp + 0x68]
call fcn.140002380
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1400fd1f0]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], bx
lea rax, [rbp + 0x1c0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140008664
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x48]
call fcn.140002400
nop
lea rcx, [rsp + 0x48]
call fcn.1400023f0
mov rdi, rax
lea rcx, [rbp - 0x78]
call fcn.1400023f0
cmp rax, rdi
cmovae rdi, rax
lea rcx, [rsp + 0x48]
call fcn.140002310
mov rbx, rax
lea rcx, [rbp - 0x78]
call fcn.140002310
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call fcn.14001f460
test eax, eax
sete bl
lea rcx, [rsp + 0x48]
call fcn.140002380
nop
lea rcx, [rbp - 0x78]
call fcn.140002380
nop
movzx eax, bl
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400a5660
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000cda0
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140132088]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov edx, 0x7550
lea rcx, [rsp + 0x58]
call fcn.140008710
nop
movzx eax, byte [rbx + 4]
xor r14d, r14d
test al, al
je 0x14000cf01
movdqa xmm0, xmmword [0x1400fd1f0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
movsx r8d, al
lea rdx, str._c:_
lea rcx, [rsp + 0x78]
call fcn.14001fc80
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
mov dword [rsp + 0x38], 0x104
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, 0x104
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14000cea9
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000ce90
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x58]
call fcn.140002400
mov edx, 0x7553
lea rcx, [rbp - 0x68]
call fcn.140008710
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
cmp qword [rax + 0x18], 8
jb 0x14000ced3
mov rax, qword [rax]
movsx r9d, byte [rbx + 4]
mov qword [rsp + 0x20], rcx
mov r8, rax
lea rdx, str._s__c:__s
mov rcx, rdi
call fcn.14001fc80
nop
lea rcx, [rbp - 0x68]
call fcn.140002380
nop
lea rcx, [rsp + 0x78]
jmp 0x14000cf42
mov edx, 0x7553
lea rcx, [rbp - 0x68]
call fcn.140008710
nop
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r9, qword [rsp + 0x58]
cmp qword [rax + 0x18], 8
jb 0x14000cf2b
mov rax, qword [rax]
mov r8, rax
lea rdx, str._s_s
mov rcx, rdi
call fcn.14001fc80
nop
lea rcx, [rbp - 0x68]
call fcn.140002380
mov r8, rdi
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.14000cb60
mov rbx, rax
cmp rdi, rax
je 0x14000cf84
mov rcx, rdi
call fcn.140002380
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rbp - 0x68]
call fcn.140002380
nop
lea rcx, [rsp + 0x58]
call fcn.140002380
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.1400a5660
add rsp, 0x4f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001739c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x880
mov rax, qword [0x140132088]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rax, qword [rsp + 0x890]
movzx eax, byte [rax + 8]
test eax, eax
je 0x1400173d0
jmp 0x140017562
mov rax, qword [rsp + 0x890]
mov byte [rax + 8], 1
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x140017461
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140017435
cmp qword [rsp + 0x20], 0
je 0x140017433
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140017461
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x410
jae 0x140017450
jmp 0x140017455
call fcn.1400a5b88
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x40], ax
lea rdx, [0x1400f86c4]
lea rcx, [rsp + 0x40]
call fcn.1400b01a0
lea rdx, [0x1400f8910]
lea rcx, [rsp + 0x40]
call fcn.1400b01a0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400174bf
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x410
jae 0x1400174ae
jmp 0x1400174b3
call fcn.1400a5b88
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov word [rsp + rcx + 0x40], ax
lea rax, [rsp + 0x450]
mov rdi, rax
xor eax, eax
mov ecx, 0x412
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.1400ad560
test rax, rax
jbe 0x140017534
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x450]
call fcn.1400b0158
lea rcx, [rsp + 0x450]
call fcn.1400ad560
test rax, rax
jbe 0x140017534
lea rdx, [0x1400f86c4]
lea rcx, [rsp + 0x450]
call fcn.1400b01a0
lea rdx, str.HaoZip.hzv
lea rcx, [rsp + 0x450]
call fcn.1400b01a0
call fcn.140024900
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x450]
call fcn.1400ad560
test rax, rax
jbe 0x140017562
lea rdx, [rsp + 0x450]
mov rcx, qword [rsp + 0x38]
call fcn.1400249d0
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1400a5660
add rsp, 0x880
pop rdi
ret

Function at 0x1400178b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x1400178ce
xor eax, eax
jmp 0x140017931
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400178ef
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1400178f3
xor eax, eax
jmp 0x140017931
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140017670
movzx eax, al
test eax, eax
jne 0x14001791c
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14001769c
xor eax, eax
jmp 0x140017931
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret