joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042210
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov ebx, 0xf
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x48], r13b
mov qword [rsp + 0x38], r13
cmp qword [r9 + 0x70], r13
je 0x1400422c0
lea rdx, [r9 + 0x60]
cmp qword [rdx + 0x18], rbx
jbe 0x140042282
mov rdx, qword [rdx]
lea r8, [0x14004dc04]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x1400422c0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov r8d, 0x1e
lea rdx, str.Error_opening_file_for_writing
mov rcx, rsi
call fcn.140026770
jmp 0x1400423be
mov eax, 0xffffffff
mov dword [rsp + 0x40], eax
nop dword [rax]
test eax, eax
je 0x140042392
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, qword [r12]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r15d, eax
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140042304
add dword [r14 + 0xe4], ecx
mov r9, qword [rsp + 0x38]
test r9, r9
je 0x140042323
mov r8, rcx
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140042384
mov rdi, rcx
mov rcx, qword [rsp + 0x58]
mov rax, rbx
sub rax, rcx
cmp rdi, rax
ja 0x140042368
lea rax, [rcx + rdi]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rbx, 0xf
cmova rax, qword [rsp + 0x48]
lea rbx, [rax + rcx]
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14004237f
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140027120
mov rbx, qword [rsp + 0x60]
test r15d, r15d
je 0x140042392
mov eax, dword [rsp + 0x40]
jmp 0x1400422d0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400423ad
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400480a0
add rsp, 0x488
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140047794
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 0x1400477ce
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400477d3
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 0x14004781c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004d9e0]
cmp byte [rcx + rax], 0
je 0x14004781c
dec r8
sub rdx, 1
jne 0x140047802
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140048e4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140048e96
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140048e96
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140048e96
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140048e96
cmp dword [rcx + 0x84], 0xe
jbe 0x140048e96
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140048e98
xor al, al
add rsp, 0x28
ret
Function at 0x180001670
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebp, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
or edx, 0xffffffff
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsi + 0x78], 0
sete bl
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x1800016ff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, ebp
ja 0x1800016ff
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
or edx, 0xffffffff
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsi + 0x78], 0
sete bl
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x1800016c4
mov eax, dword [rsi + 0x30]
test eax, eax
jle 0x180001716
mov edx, dword [rsi + 0x30]
xor r8d, r8d
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov dword [rsi + 8], 0
or edx, 0xffffffff
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18000173b
or edx, 0xffffffff
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x10], 0xffffffffffffffff
or edx, 0xffffffff
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsi + 0x78], 0
sete bl
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x1800017d7
lea rdx, [rsp + 0x28]
lea rcx, [rsi + 0x28]
call fcn.180001a50
nop
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
nop
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1800017b4
lock add dword [rbx + 0x10], 0xffffffff
jne 0x1800017b4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock add dword [rbx + 0x14], 0xffffffff
jne 0x1800017b4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
or edx, 0xffffffff
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp qword [rsi + 0x78], 0
sete bl
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x180001770
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x180004ed0
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.18005cae0
lea r11, [rsp + 0x40]
lea edx, [rbx + 0x25]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x180004f2a
xor eax, eax
jmp 0x180004fc7
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x270], rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x180004fbd
mov rcx, rsi
mov qword [rsp + 0x278], rdi
call fcn.18002f66c
lea rcx, [rsp + 0x40]
mov r8d, esi
xor edx, edx
mov r9, rax
mov dword [rsp + 0x30], ebx
mov rdi, rax
mov qword [rsp + 0x38], rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180004fad
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1800e381c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x180004fad
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + 8]
mov rcx, rdi
call fcn.180057044
mov rdi, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x260
pop rbx
ret

Function at 0x1800054e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rdx
xor edx, edx
mov rbx, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
lea r8d, [rdx + 0x63]
lea rcx, [rsp + 0x41]
mov rbp, r9
mov byte [rsp + 0x40], 0
call fcn.18005cae0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x38], 0x64
call fcn.1800ca710
lea rcx, [rsp + 0x30]
call fcn.1800ca6d0
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea rcx, [rsp + 0x30]
test eax, eax
jne 0x18000558b
call fcn.1800ca6b0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea rax, [rsp + 0x38]
mov rdx, rbp
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rcx, [rsp + 0x30]
call fcn.1800ca6f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x18], 0
mov byte [rsi + 8], 0
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.180003680
mov rax, rsi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0xc8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005690
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rcx, [rsp + 0x30]
mov esi, r9d
mov rbp, r8
mov rbx, rdx
call fcn.1800ca710
lea rcx, [rsp + 0x30]
call fcn.1800ca6d0
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea rcx, [rsp + 0x30]
test eax, eax
je 0x1800056e5
call fcn.1800ca6f0
xor al, al
jmp 0x18000571f
call fcn.1800ca6b0
mov r9d, esi
xor r8d, r8d
mov rcx, rax
mov eax, dword [rsp + 0x78]
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, [rsp + 0x30]
test eax, eax
sete bl
call fcn.1800ca6f0
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18000c3a0
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 0x18000c3d3
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 0x18000c417
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x18000c412
cmp rbx, r11
jae 0x18000c417
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x18000c400
cmp rbx, r11
jb 0x18000c41b
xor eax, eax
jmp 0x18000c427
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 0x18000db90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x960
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x950], rax
mov rbx, rcx
xor esi, esi
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0xff
or edi, 0xffffffff
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x50], sil
call fcn.18005cae0
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea rcx, [rsp + 0x50]
mov r8, rbx
call fcn.18005704c
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18000dcf1
lea rcx, [rsp + 0x152]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x150], si
call fcn.18005cae0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x44]
lea rdx, str.PnpInstanceID
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x150]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000dce6
lea r9d, [rdi + 4]
lea r8, [0x1800e3b50]
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x18000dce6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.MediaSubType
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x18000dce4
test eax, eax
jne 0x18000dce6
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18000dce4
cmp eax, 2
jne 0x18000dce6
lea edi, [rsi + 1]
jmp 0x18000dce6
mov edi, esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.1800564b0
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000f0b0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
call fcn.180089870
call fcn.180089a10
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rax
mov rdi, rax
call fcn.180089a60
lea rdx, str.User_Agent:Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_42.0.2311.90_Safari_537.36
xor ecx, ecx
call fcn.1800896c0
lea rdx, str.Accept:_
mov rcx, rax
call fcn.1800896c0
mov edx, 0x2727
mov rcx, rdi
mov r8, rax
mov rsi, rax
call fcn.180089a60
cmp qword [rbx + 0x20], 0x10
jb 0x18000f122
mov r8, qword [rbx + 8]
jmp 0x18000f126
lea r8, [rbx + 8]
mov edx, 0x2712
mov rcx, rdi
call fcn.180089a60
lea r8, [0x18000eed0]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.180089a60
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.180089a60
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x2b]
call fcn.180089a60
mov r8, rbx
mov edx, 0x2749
mov rcx, rdi
call fcn.180089a60
lea r8, [0x18000ef20]
mov edx, 0x4e58
mov rcx, rdi
call fcn.180089a60
mov r8d, dword [rbx + 0x30]
test r8d, r8d
je 0x18000f1b1
mov edx, reloc.WS2_32.dll_send
mov rcx, rdi
call fcn.180089a60
mov r8d, dword [rbx + 0x34]
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rdi
call fcn.180089a60
mov rcx, rdi
call fcn.180089cd0
test eax, eax
je 0x18000f209
mov ecx, eax
call fcn.18008a200
or rcx, 0xffffffffffffffff
mov rdx, rax
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x48]
call fcn.180003680
cmp qword [rbx + 0x38], 0
je 0x18000f1f6
mov rcx, qword [rbx + 0x38]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + VariantCopy]
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, [rbx + 0x40]
mov edx, 0x200002
mov rcx, rdi
call fcn.180089d00
test eax, eax
jne 0x18000f1bd
mov rcx, rdi
call fcn.180089ce0
mov rcx, rsi
call fcn.180089720
cmp qword [rbx + 0x38], 0
je 0x18000f241
mov rcx, qword [rbx + 0x38]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18000fa20
Capabilities:
Create thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rsi, r8
mov r12, rdx
mov rbp, rcx
cmp qword [0x18010aaa8], 0
jne 0x18000fbd4
mov ecx, 0x80
call fcn.1800564d0
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000faaa
lea rax, vtable.AsyncReportService.0
mov qword [rbx], rax
mov dword [rbx + 8], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
lea rcx, [rbx + 0x18]
mov qword [rcx], 0
mov qword [rcx + 8], 0
call fcn.180001dc0
nop
lea rcx, [rbx + 0x28]
call fcn.180001170
nop
jmp 0x18000faac
xor ebx, ebx
mov rdx, rbx
lea rcx, [0x18010aaa8]
call fcn.18000ffe0
mov rax, qword [0x18010ab48]
test rax, rax
jne 0x18000faee
mov ecx, 0x1b8
call fcn.1800564d0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000fae5
mov rcx, rax
call fcn.1800102c0
jmp 0x18000fae7
xor eax, eax
mov qword [0x18010ab48], rax
lea rcx, [rax + 0x50]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
call fcn.180003d60
cmp qword [r12 + 0x18], 0
je 0x18000fb4f
mov rax, qword [0x18010ab48]
test rax, rax
jne 0x18000fb3c
mov ecx, 0x1b8
call fcn.1800564d0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000fb33
mov rcx, rax
call fcn.1800102c0
jmp 0x18000fb35
xor eax, eax
mov qword [0x18010ab48], rax
lea rcx, [rax + 0x78]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r12
call fcn.180003d60
cmp qword [rsi + 0x18], 0
je 0x18000fb9c
mov rax, qword [0x18010ab48]
test rax, rax
jne 0x18000fb89
mov ecx, 0x1b8
call fcn.1800564d0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000fb80
mov rcx, rax
call fcn.1800102c0
jmp 0x18000fb82
xor eax, eax
mov qword [0x18010ab48], rax
lea rcx, [rax + 0x28]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
call fcn.180003d60
mov rbx, qword [0x18010aaa8]
mov dword [rbx + 8], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x180001800]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
ret
Function at 0x180010b40
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, rcx
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
lea r8d, [rbx + 0x17]
lea rdx, str.SoftwareKuaiZipReport
lea rcx, [rsp + 0x38]
call fcn.180003680
nop
mov dword [rsp + 0x20], ebx
mov r9b, 1
lea r8, [rsp + 0x38]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x90]
call fcn.1800c9530
nop
cmp qword [rsp + 0x58], 0x10
jb 0x180010bcf
mov rcx, qword [rsp + 0x40]
call fcn.180056490
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x90]
call fcn.1800c9010
test al, al
jne 0x180010c07
lea rcx, [rsp + 0x90]
call fcn.1800c9500
mov al, 1
jmp 0x180010cf0
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x80], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x68], 0
mov r8d, 9
lea rdx, str.timestamp
lea rcx, [rsp + 0x60]
call fcn.180003680
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.1800c9200
test al, al
sete bl
cmp qword [rsp + 0x80], 0x10
jb 0x180010c69
mov rcx, qword [rsp + 0x68]
call fcn.180056490
test bl, bl
je 0x180010c7e
lea rcx, [rsp + 0x90]
call fcn.1800c9500
mov al, 1
jmp 0x180010cf0
xor ecx, ecx
call fcn.1800574a0
mov ecx, eax
call fcn.18001f000
mov ebx, eax
mov ecx, dword [rsp + 0x30]
call fcn.18001f000
cmp ebx, eax
je 0x180010cac
lea rcx, [rsp + 0x90]
call fcn.1800c9500
mov al, 1
jmp 0x180010cf0
cmp qword [rdi + 0x1b0], 0x10
jb 0x180010cbf
mov rcx, qword [rdi + 0x198]
jmp 0x180010cc6
lea rcx, [rdi + 0x198]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180010ce1
lea rcx, [rsp + 0x90]
call fcn.1800c9500
mov al, 1
jmp 0x180010cf0
lea rcx, [rsp + 0x90]
call fcn.1800c9500
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800564b0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret
Function at 0x180010e60
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.18005cae0
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, str.Kuaizip
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x180010ef2
lea rdx, [rsp + 0x20]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x180010ef2
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, str.report_config.txt
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x190]
call fcn.180003680
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800564b0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x18001ce00
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r13
mov rsi, r9
mov r13, r8
mov ebx, edx
mov rdi, rcx
test edx, edx
je 0x18001cfa9
lea ecx, [rdx*8]
mov eax, 0x2aaaaaab
imul ecx
lea ecx, [rbx*8]
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
cmp ecx, 2
je 0x18001ce4e
cmp ecx, 4
jne 0x18001ce51
add edx, 2
jmp 0x18001ce51
add edx, 3
inc edx
cmp dword [r9], edx
jge 0x18001ce6a
mov dword [r9], edx
mov eax, 0xfffffff0
mov rbx, qword [rsp + 0x38]
pop r13
pop rdi
pop rsi
ret
xor r11d, r11d
mov qword [rsp + 0x20], rbp
mov eax, 0x55555556
mov qword [rsp + 0x30], r14
mov r10, r8
mov ebp, r11d
imul ebx
mov eax, edx
lea r14, [0x1800e4950]
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
test ecx, ecx
jle 0x18001cf2e
dec ecx
mov eax, 0xaaaaaaab
mov qword [rsp + 0x28], r12
mul ecx
shr edx, 1
inc edx
mov r12d, edx
lea ebp, [rdx + rdx*2]
nop word [rax + rax]
movzx edx, byte [rdi]
movzx r8d, byte [rdi + 1]
movzx r9d, byte [rdi + 2]
mov eax, edx
add edx, edx
add r10, 4
sar rax, 2
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r10 - 4], al
mov eax, r8d
sar eax, 4
lea ecx, [rax + rdx*8]
and ecx, 0x3f
movzx eax, byte [rcx + r14]
mov byte [r10 - 3], al
mov eax, r9d
sar eax, 6
lea ecx, [rax + r8*4]
and ecx, 0x3f
movzx eax, byte [rcx + r14]
mov byte [r10 - 2], al
mov eax, r9d
and eax, 0x3f
sub r12, 1
movzx eax, byte [rax + r14]
mov byte [r10 - 1], al
jne 0x18001cec0
mov r12, qword [rsp + 0x28]
cmp ebp, ebx
jge 0x18001cf93
movzx edx, byte [rdi]
inc ebp
cmp ebp, ebx
jge 0x18001cf40
movzx r11d, byte [rdi + 1]
mov eax, edx
add edx, edx
sar rax, 2
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r10], al
mov eax, r11d
sar eax, 4
lea ecx, [rax + rdx*8]
and ecx, 0x3f
cmp ebp, ebx
movzx eax, byte [rcx + r14]
mov byte [r10 + 1], al
jge 0x18001cf82
and r11d, 0xf
shl r11d, 2
movsxd rax, r11d
movzx eax, byte [rax + r14]
mov byte [r10 + 2], al
jmp 0x18001cf87
mov byte [r10 + 2], 0x3d
add r10, 3
inc r10
mov byte [r10 - 1], 0x3d
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x20]
mov eax, r10d
sub eax, r13d
mov dword [rsi], eax
mov byte [r10], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
pop r13
pop rdi
pop rsi
ret