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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413c0a40]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400255c3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400255fa
test eax, eax
js 0x1400255d4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400255ed
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x1413c0aa0]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140024290
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140023950
mov rcx, rax
call fcn.140023a90
mov ecx, 7
int 0x29
ud2
Function at 0x14002d230
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413c0a40]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002d29c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002d2ab
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002d2e3
cmp eax, 0x103
je 0x14002d2ed
test eax, eax
js 0x14002d2c8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002d2e3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x1413c0aa0]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140024290
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140023950
mov rcx, rax
call fcn.140023a90
mov ecx, 7
int 0x29
ud2
Function at 0x140038fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
add byte [rsi + 0xf], ah
jg 0x140039031
and al, 0x70
Function at 0x14003af00
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1413d3ad0]
mov rcx, qword [0x1413d3bb8]
test rcx, rcx
jne 0x14003af4c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003b01a
mov rcx, rax
mov qword [0x1413d3bb8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003b01a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003b460]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003b00c
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14003afe5
cmp qword [rax + 0x10], 0x11
jae 0x14003afce
mov r8, qword [rbp - 0x20]
jmp 0x14003afd6
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1413d3bb8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1413d3bb8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400510d0
ud2
Function at 0x14003b930
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140042e20
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400436a0
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, case.0x14002e304.214
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003bb1e
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003b9f7
cmp dword [rbp + 0xff0], 0
jne 0x14003bb33
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14003bb33
cmp ebx, 0x1000
ja 0x14003bb77
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003bb63
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14003bb26
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003baa0
cmp dword [rbp + 0xff0], 0
jne 0x14003bb2c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14003ba40
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003b9f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003bb33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1413c0d88]
mov rcx, r14
mov rdx, rbx
call fcn.1400514f0
jmp 0x14003bb8b
lea r8, [0x1413c0d88]
mov edx, 0x1000
mov rcx, rbx
call fcn.1400512c0
ud2
Function at 0x14003bbe0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003bc1f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140029d60]
mov qword [rbp - 0x28], rax
lea rax, [0x1413c0f00]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1413c0f38]
lea rcx, [rbp - 0x60]
call fcn.1400511a0
ud2

Function at 0x14003da70
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003db7f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003daa8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003db42
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003db61
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003dafe
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003db1b
jmp 0x14003db10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003db16
cmp eax, 0x6d
jne 0x14003db32
mov byte [rsi + 1], 0
jmp 0x14003db26
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003db28
mov r8d, 0x10
mov rcx, rbx
call fcn.140051010
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003dab5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140051010
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003dab5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400523e0
ud2

Function at 0x14004742c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047228
Function at 0x1800048e0
Capabilities:
Hash data with md5

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x130
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, r9
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x50]
call fcn.18000bba0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.18000bba0
nop
cmp qword [rsp + 0x70], 0x10
jb 0x180004943
mov rcx, qword [rsp + 0x58]
call fcn.180057684
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x58], 0
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0x10
cmovae rdx, qword [rsp + 0x88]
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x28], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180003680
mov byte [rsp + 0x118], 0
mov dword [rsp + 0xc4], esi
mov dword [rsp + 0xc0], esi
mov dword [rsp + 0xb0], 0x67452301
mov dword [rsp + 0xb4], 0xefcdab89
mov dword [rsp + 0xb8], 0x98badcfe
mov dword [rsp + 0xbc], 0x10325476
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.1800272b0
cmp qword [rsp + 0x40], 0x10
jb 0x180004a16
mov rcx, qword [rsp + 0x28]
call fcn.180057684
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.180027fd0
cmp qword [rbx + 0x20], 0x10
jb 0x180004a33
mov rcx, qword [rbx + 8]
jmp 0x180004a37
lea rcx, [rbx + 8]
call qword [sym.imp.USER32.dll_CharUpperA]
nop
cmp qword [rsp + 0xa0], 0x10
jb 0x180004a5b
mov rcx, qword [rsp + 0x88]
call fcn.180057684
mov rax, rbx
jmp 0x180004a5e
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
Function at 0x180005070
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x180109f10]
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.18005dcd0
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 0x1800050ca
xor eax, eax
jmp 0x180005167
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 0x18000515d
mov rcx, rsi
mov qword [rsp + 0x278], rdi
call fcn.1800309bc
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 0x18000514d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x1800e580c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18000514d
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + 8]
mov rcx, rdi
call fcn.180058234
mov rdi, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x260
pop rbx
ret

Function at 0x180005680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
mov rbx, r8
mov rdi, rdx
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov rbp, r9
mov byte [rsp + 0x40], 0
call fcn.18005dcd0
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x38], 0x200
call fcn.1800cc2a0
lea rcx, [rsp + 0x30]
call fcn.1800cc260
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea rcx, [rsp + 0x30]
test eax, eax
jne 0x18000572d
call fcn.1800cc240
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.1800cc280
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 + 0x240]
xor rcx, rsp
call fcn.1800576a0
add rsp, 0x258
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005830
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.1800cc2a0
lea rcx, [rsp + 0x30]
call fcn.1800cc260
mov rdx, rbx
mov rcx, rdi
mov r8, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea rcx, [rsp + 0x30]
test eax, eax
je 0x180005885
call fcn.1800cc280
xor al, al
jmp 0x1800058bf
call fcn.1800cc240
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.1800cc280
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 0x1800059d0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbp, rdx
mov rdi, rcx
lea rcx, [rsp + 0x60]
call fcn.1800cbd00
nop
cmp qword [rdi + 0x20], 0x10
jb 0x180005a07
lea rbx, [rdi + 8]
mov rdx, qword [rbx]
jmp 0x180005a0e
lea rbx, [rdi + 8]
mov rdx, rbx
mov r8d, dword [rdi + 0x18]
lea rcx, [rsp + 0x60]
call fcn.1800cbdc0
mov rsi, qword [rdi + 0x18]
cmp qword [rdi + 0x20], 0x10
jb 0x180005a2a
mov rbx, qword [rbx]
lea rcx, [rsp + 0x70]
call fcn.1800cc2a0
lea rcx, [rsp + 0x70]
call fcn.1800cc260
mov r8, rax
lea rdx, str.SoftwareKuaiZipInstall
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x180005a65
lea rcx, [rsp + 0x70]
call fcn.1800cc280
jmp 0x180005a98
lea rcx, [rsp + 0x70]
call fcn.1800cc240
mov rcx, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, [rsp + 0x70]
call fcn.1800cc280
nop
lea rcx, [rsp + 0x60]
call fcn.1800cbcf0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xf0], rbx
mov rax, qword [0x180109f10]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x34], 0
mov byte [rsp + 0x50], 0
xor edx, edx
lea r8d, [rdx + 0x63]
lea rcx, [rsp + 0x51]
call fcn.18005dcd0
mov dword [rsp + 0x34], 0x64
lea rcx, [rsp + 0x38]
call fcn.1800cc2a0
lea rcx, [rsp + 0x38]
call fcn.1800cc260
mov r8, rax
lea rdx, str.SoftwareKuaiZipInstall
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x180005b42
lea rcx, [rsp + 0x38]
call fcn.1800cc280
jmp 0x180005bb6
lea rcx, [rsp + 0x38]
call fcn.1800cc240
mov rcx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180005b82
lea rcx, [rsp + 0x38]
call fcn.1800cc280
jmp 0x180005bb6
lea rcx, [rsp + 0x38]
call fcn.1800cc280
lea rcx, [rsp + 0x30]
call fcn.1800cbd00
nop
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800cbdc0
nop
lea rcx, [rsp + 0x30]
call fcn.1800cbcf0
mov qword [rbx + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180003680
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800576a0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret

Function at 0x18000d490
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 0x18000d4c3
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 0x18000d507
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x18000d502
cmp rbx, r11
jae 0x18000d507
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x18000d4f0
cmp rbx, r11
jb 0x18000d50b
xor eax, eax
jmp 0x18000d517
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 0x18000ed40
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 [0x180109f10]
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.18005dcd0
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea rcx, [rsp + 0x50]
mov r8, rbx
call fcn.18005823c
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 0x18000eea1
lea rcx, [rsp + 0x152]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x150], si
call fcn.18005dcd0
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 0x18000ee96
lea r9d, [rdi + 4]
lea r8, [0x1800e5b60]
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x18000ee96
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 0x18000ee94
test eax, eax
jne 0x18000ee96
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18000ee94
cmp eax, 2
jne 0x18000ee96
lea edi, [rsi + 1]
jmp 0x18000ee96
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.1800576a0
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180010260
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, 3
call fcn.18008aa50
call fcn.18008abf0
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rax
mov rdi, rax
call fcn.18008ac40
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.18008a8a0
lea rdx, str.Accept:_
mov rcx, rax
call fcn.18008a8a0
mov edx, 0x2727
mov rcx, rdi
mov r8, rax
mov rsi, rax
call fcn.18008ac40
cmp qword [rbx + 0x20], 0x10
jb 0x1800102d2
mov r8, qword [rbx + 8]
jmp 0x1800102d6
lea r8, [rbx + 8]
mov edx, 0x2712
mov rcx, rdi
call fcn.18008ac40
lea r8, [0x180010080]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.18008ac40
mov r8, rbx
mov edx, 0x2711
mov rcx, rdi
call fcn.18008ac40
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x2b]
call fcn.18008ac40
mov r8, rbx
mov edx, 0x2749
mov rcx, rdi
call fcn.18008ac40
lea r8, [0x1800100d0]
mov edx, 0x4e58
mov rcx, rdi
call fcn.18008ac40
mov r8d, dword [rbx + 0x30]
test r8d, r8d
je 0x180010361
mov edx, reloc.WS2_32.dll_send
mov rcx, rdi
call fcn.18008ac40
mov r8d, dword [rbx + 0x34]
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rdi
call fcn.18008ac40
mov rcx, rdi
call fcn.18008aeb0
test eax, eax
je 0x1800103b9
mov ecx, eax
call fcn.18008b3e0
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 0x1800103a6
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.18008aee0
test eax, eax
jne 0x18001036d
mov rcx, rdi
call fcn.18008aec0
mov rcx, rsi
call fcn.18008a900
cmp qword [rbx + 0x38], 0
je 0x1800103f1
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