joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ef80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14003efe1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14003efa0
mov ecx, dword [r9]
jmp 0x14003f0cb
cmp ecx, 0x4e0
jb 0x14003f0cb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003f000
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003f050
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140042690
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140125040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm1, xmm1
mov rdi, rcx
cvtss2sd xmm1, xmm2
lea rcx, [rsp + 0x38]
mov rbx, r9
mov rsi, rdx
call fcn.14003f500
cmp qword [rsp + 0x50], 0xf
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x58]
cmova r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140042733
mov rcx, qword [rsp + 0x38]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004272e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004272e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050e8c
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
cvtsd2ss xmm0, xmm0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140050ad0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004dc90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14004dcb8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14004dcde
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004dce0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004dd39
test ecx, ecx
jle 0x14004dd19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14004dd39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004dd39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14004dd60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004dd82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14004dd98
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004ddb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004ddb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004ddf2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004de8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004de2d
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
cmp rbx, 0xfff
jbe 0x14004de6e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004de8e
cmp rbx, rax
ja 0x14004de40
test rbx, rbx
je 0x14004de8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14004e2f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140125040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004e31d
xor eax, eax
jmp 0x14004e489
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004e357
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14004e357
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14004e489
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004e47c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004e39a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004e3c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e481
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004e434
sub eax, 1
je 0x14004e434
cmp eax, 2
jne 0x14004e47c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e481
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004e462
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004e47c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e481
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140050ad0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004e8b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140125040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004e983
cmp byte [rcx + 0x71], 0
je 0x14004e983
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004e97f
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 0x14004e944
sub eax, 1
je 0x14004e948
cmp eax, 2
jne 0x14004e97f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140050ad0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004e976
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 0x14004e97f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004e92c
xor al, al
jmp 0x14004e92c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140050ad0
add rsp, 0x60
pop rbx
ret

Function at 0x140050270
Capabilities:
Get geographical location

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

Function at 0x1400518e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005192e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005192e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005192e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005192e
cmp dword [rcx + 0x84], 0xe
jbe 0x14005192e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140051930
xor al, al
add rsp, 0x28
ret
Function at 0x140001a00
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x480
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x478], rax
mov rcx, qword [rsp + 0x490]
add rcx, 8
mov r8d, 0x3ec
lea rdx, [rsp + 0x468]
call fcn.140002e80
mov rcx, rax
call fcn.14000afd0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140018470
lea rcx, [rsp + 0x20]
call fcn.140002590
mov edx, eax
mov rax, qword [rsp + 0x490]
mov dword [rax + 0x44], edx
mov rax, qword [rsp + 0x490]
cmp dword [rax + 0x44], 0xffffffff
jne 0x140001ad6
lea rcx, [rsp + 0x28]
call fcn.140002ff0
mov edx, 0xd1
lea rcx, [rsp + 0x28]
call fcn.140003c90
lea rcx, [rsp + 0x28]
call fcn.14000afd0
mov rcx, qword [rsp + 0x490]
add rcx, 8
xor r9d, r9d
lea r8, [0x14002b924]
mov rdx, rax
call fcn.140002ec0
lea rcx, [rsp + 0x28]
call fcn.1400040f0
jmp 0x140001c41
mov rcx, qword [rsp + 0x490]
add rcx, 8
mov edx, 0x3ff
call fcn.140002e50
mov edx, eax
mov rax, qword [rsp + 0x490]
mov dword [rax + 0x54], edx
mov rcx, qword [rsp + 0x490]
add rcx, 8
mov r8d, 0x3ff
lea rdx, [rsp + 0x470]
call fcn.140002e80
mov rcx, rax
call fcn.140002db0
test eax, eax
je 0x140001c2d
xor eax, eax
mov word [rsp + 0x250], ax
lea rdi, [rsp + 0x252]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x250]
lea rcx, [0x14002b978]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001b80
xor edx, edx
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x250]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14001d2b4
lea rdx, [0x14002b9a0]
lea rcx, [rsp + 0x40]
call fcn.140002ac0
lea rcx, [rsp + 0x460]
call fcn.140002ff0
mov rcx, qword [rsp + 0x490]
add rcx, 8
mov edx, 0x3ff
call fcn.140002e50
mov r8d, eax
lea rdx, [0x14002b9bc]
lea rcx, [rsp + 0x460]
call fcn.140003010
lea rcx, [rsp + 0x460]
call fcn.14000afd0
lea r9, [rsp + 0x40]
mov r8, rax
lea rdx, str.DiskReadOnly
lea rcx, [0x14002b9e8]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x460]
call fcn.1400040f0
mov edx, dword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x490]
call fcn.140002380
mov rcx, qword [rsp + 0x478]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x480
pop rdi
ret
Function at 0x140005030
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0xd8], 0x80004004
jne 0x140005072
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xd8], 0
mov eax, 0x80004004
jmp 0x14000518a
mov rcx, qword [rsp + 0x40]
add rcx, 0x88
call fcn.14000bc50
test eax, eax
jne 0x14000511c
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xd8], 0
mov rcx, qword [rsp + 0x40]
add rcx, 0xd0
mov rdx, qword [rsp + 0x58]
call fcn.140009ed0
mov r11, qword [rsp + 0x40]
mov dword [r11 + 0xe8], 1
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0xe0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r9, qword [rsp + 0x40]
sub r9, 0x50
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400051a0]
xor edx, edx
xor ecx, ecx
call fcn.14001da6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 0xe0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
imul rax, rax, 0x64
xor edx, edx
mov rcx, qword [rsp + 0x50]
div qword [rcx]
mov rcx, qword [rsp + 0x40]
add rcx, 0x80
mov r9d, 0x64
mov r8d, eax
xor edx, edx
call fcn.1400189f0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
cmp qword [rcx], rax
jb 0x14000517f
mov rcx, qword [rsp + 0x40]
add rcx, 0x88
xor r9d, r9d
mov r8d, 1
mov edx, VarUI4FromDisp
call fcn.14000bb10
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xd8]
add rsp, 0x38
ret

Function at 0x140005800
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x460
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x14002bba0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov word [rsp + 0x240], dx
lea rdi, [rsp + 0x242]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.14001d2b4
lea rdx, [0x14002bbc8]
lea rcx, [rsp + 0x240]
call fcn.140002ac0
lea r9, [rsp + 0x240]
xor r8d, r8d
lea rdx, [0x14002bbe8]
lea rcx, [0x14002bc10]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x1400058bc
mov eax, 1
jmp 0x1400058be
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x460
pop rdi
ret
Function at 0x1400066a0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400068d4
cmp dword [rsp + 0x20], 1
jle 0x1400068d4
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x38]
call fcn.14000be00
lea rdx, [0x14002bd28]
lea rcx, [rsp + 0x38]
call fcn.14000bf30
test eax, eax
je 0x14000671f
lea rdx, [0x14002bd40]
lea rcx, [rsp + 0x38]
call fcn.14000bf30
test eax, eax
jne 0x140006753
cmp dword [rsp + 0x20], 3
jne 0x140006739
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x70]
call fcn.140009140
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x38]
call fcn.1400040f0
jmp 0x1400068d4
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x30]
call fcn.14000be00
lea rcx, [rsp + 0x30]
call fcn.14000beb0
mov edx, eax
sub edx, 1
lea rcx, [rsp + 0x30]
call fcn.14000bed0
movzx eax, ax
cmp eax, 0x22
jne 0x1400067a5
lea rcx, [rsp + 0x30]
call fcn.14000beb0
mov edx, eax
sub edx, 1
mov r8w, 0x5c
lea rcx, [rsp + 0x30]
call fcn.14000bef0
cmp dword [rsp + 0x20], 2
jne 0x1400067c9
lea rcx, [rsp + 0x30]
call fcn.14000afd0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400085c0
cmp dword [rsp + 0x20], 2
jle 0x1400068b5
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14000be00
lea rcx, [rsp + 0x48]
call fcn.14000beb0
mov edx, eax
sub edx, 1
lea rcx, [rsp + 0x48]
call fcn.14000bed0
movzx eax, ax
cmp eax, 0x22
jne 0x140006826
lea rcx, [rsp + 0x48]
call fcn.14000beb0
mov edx, eax
sub edx, 1
mov r8w, 0x5c
lea rcx, [rsp + 0x48]
call fcn.14000bef0
mov byte [rsp + 0x40], 0
cmp dword [rsp + 0x20], 3
jle 0x14000687e
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x18]
lea rcx, [rsp + 0x50]
call fcn.14000be00
lea rdx, [0x14002bd58]
lea rcx, [rsp + 0x50]
call fcn.14000bf30
test eax, eax
je 0x14000686f
lea rdx, [0x14002bd68]
lea rcx, [rsp + 0x50]
call fcn.14000bf30
test eax, eax
jne 0x140006874
mov byte [rsp + 0x40], 1
lea rcx, [rsp + 0x50]
call fcn.1400040f0
lea rcx, [rsp + 0x48]
call fcn.14000afd0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.14000afd0
movzx r9d, byte [rsp + 0x40]
mov r8, rbx
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400085c0
lea rcx, [rsp + 0x48]
call fcn.1400040f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x30]
call fcn.1400040f0
lea rcx, [rsp + 0x38]
call fcn.1400040f0
add rsp, 0x60
pop rbx
ret
Function at 0x140006ce0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0x80
je 0x140006d11
movabs rax, 1
jmp 0x140006e1d
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x84]
movzx eax, al
test eax, eax
jne 0x140006d32
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x88], 0
je 0x140006d41
movabs rax, 1
jmp 0x140006e1d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0x202
je 0x140006d66
cmp qword [rsp + 0x40], 0x205
je 0x140006dc3
jmp 0x140006e1b
mov rcx, qword [rsp + 0x60]
call fcn.140007490
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rsp + 0x60]
add rcx, 0x1b0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov edx, 8
call fcn.14000a540
jmp 0x140006e1b
mov rcx, qword [rsp + 0x60]
call fcn.140007490
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rsp + 0x60]
add rcx, 0x1b8
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x38]
xor edx, edx
call fcn.14000a540
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400085c0
Capabilities:
Create thread

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
add rcx, 0xb8
mov rdx, qword [rsp + 0x58]
call fcn.140003df0
mov rcx, qword [rsp + 0x50]
add rcx, 0xc0
mov rdx, qword [rsp + 0x60]
call fcn.140003df0
mov r11, qword [rsp + 0x50]
movzx eax, byte [rsp + 0x68]
mov byte [r11 + 0xc8], al
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140007f70]
xor edx, edx
xor ecx, ecx
call fcn.14001da6c
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400010d0
lea rcx, [rsp + 0x30]
call fcn.14000afb0
add rsp, 0x48
ret
Function at 0x1400090f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.http:__www.kuaizip.com_help.html
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x140009140
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140035cc8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.14000be00
lea rcx, [rsp + 0x38]
call fcn.14000beb0
mov edx, eax
sub edx, 1
lea rcx, [rsp + 0x38]
call fcn.14000bed0
movzx eax, ax
cmp eax, 0x22
jne 0x1400091ab
lea rcx, [rsp + 0x38]
call fcn.14000beb0
mov edx, eax
sub edx, 1
mov r8w, 0x5c
lea rcx, [rsp + 0x38]
call fcn.14000bef0
mov rax, qword [0x14002c038]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0x5a
jmp 0x1400091cc
mov eax, dword [rsp + 0x40]
sub eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x41
jl 0x140009229
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x140009227
lea rcx, [rsp + 0x38]
call fcn.14000afd0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400085c0
mov dword [rsp + 0x44], 1
lea rcx, [rsp + 0x38]
call fcn.1400040f0
mov eax, dword [rsp + 0x44]
jmp 0x1400092ac
jmp 0x1400091c1
lea rcx, [rsp + 0x20]
call fcn.140013970
mov edx, 0xe6
lea rcx, [rsp + 0x20]
call fcn.140002af0
lea rdx, [0x14002bbc4]
lea rcx, [rsp + 0x20]
call fcn.14000a5b0
lea rcx, [rsp + 0x38]
call fcn.14000afd0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000a5b0
lea rcx, [rsp + 0x20]
call fcn.14000afd0
mov r9, rax
mov r8d, 0x10f
mov edx, 0xcd
mov rcx, qword [rsp + 0x70]
call fcn.1400071c0
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x20]
call fcn.140002d80
lea rcx, [rsp + 0x38]
call fcn.1400040f0
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001d350
add rsp, 0x68
ret