joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca20
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42cca6
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
mov rcx, qword [rax + 0x1268]
lea rsi, [rax + 0x1278]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42cc9a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x005bc6b2], 0
jne 0x42ca7a
xor edx, edx
xor ebx, ebx
jmp 0x42cac0
xor edx, edx
jmp 0x42caa5
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call fcn.0041bde0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42ca7e
add rax, 0x1268
call fcn.0042c9a0
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x42cc34
mov rsi, qword [rax + rdx*8 + 0x1278]
cmp rsi, 0x1000
jb 0x42cabb
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.004117a0
test rax, rax
jne 0x42cb0c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42cabb
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x42cb4c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42cabb
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x42cc8d
lea r10, [0x0058ea98]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x11440]
lea r8, [r8 + r10]
lea r8, [r8 + 0x11440]
test r11b, r9b
jne 0x42cbcf
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x6a]
test r8b, 1
je 0x42cc05
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x70]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42cabb
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42cc85
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42cabb
cmp rbx, 0x200
ja 0x42cc74
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00422620
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call fcn.0042c9a0
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.0045dc40
mov rax, r8
call fcn.0045dbc0
mov rax, r8
mov ecx, 0x40
call fcn.0045dbe0
mov edx, 0x200
nop
call fcn.0045dc20
nop
mov qword [rsp + 8], rax
call fcn.00462400
mov rax, qword [rsp + 8]
jmp fcn.0042ca20
Function at 0x4418e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x441a47
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x4418f2
cmp edx, ecx
jne 0x441a35
nop word [rax + rax]
test rsi, rsi
jne 0x441a35
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x441954
nop
call fcn.0045f420
xorps xmm15, xmm15
mov r14, qword [0x005bc8c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00441800
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x441a30
mov rdx, qword [0x00569838]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x441a25
mov rcx, qword [0x00569830]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x0056a330]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x0056a330], rax
nop
mov edx, 1
lea rsi, [0x0056a338]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x441a13
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x004b9c48]
mov ebx, 0x28
nop
call fcn.00432d40
mov rax, rsi
mov rcx, rdx
call fcn.0045dbc0
call fcn.004313c0
lea rax, [0x004b8f81]
mov ebx, 0x23
call fcn.00432d40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004418e0
Function at 0x44cb20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44cc97
movzx edx, byte [rax]
test edx, edx
jne 0x44cb54
nop dword [rax]
test r8b, r8b
jne 0x44cb54
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x44cb67
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44cc57
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x44cc45
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x44cc37
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44cbbd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x44cc00
mov eax, 1
cmp rax, rbx
ja 0x44cbeb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0045dc80
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x44cc2f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x44cbf3
mov rcx, r11
mov eax, r12d
jmp 0x44cbc2
mov rcx, rbx
call fcn.0045dbc0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045dbc0
mov eax, r8d
mov rcx, rbx
call fcn.0045dc80
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44cc8d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x44cc50
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44cb6d
mov eax, edx
mov rcx, rbx
call fcn.0045dbc0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045dbc0
nop
int3
Function at 0x4540c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45416f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x004541c0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045b800
xorps xmm15, xmm15
mov r14, qword [0x005bc8c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045b940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.004540c0
Function at 0x45d720
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403103
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00408b80
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4030e0
cmp byte [0x005bc6ab], 0
je 0x45d735
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45a980
jmp 0x4030e0

Function at 0x45d740
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005bc980]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005bc6ab], 0
je 0x45d775
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005bcc40]
aesenc xmm0, xmmword [0x005bcc50]
aesenc xmm0, xmmword [0x005bcc60]
movq rax, xmm0
ret
jmp 0x408da0

Function at 0x45d780
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005bc980]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005bc6ab], 0
je 0x45d7b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005bcc40]
aesenc xmm0, xmmword [0x005bcc50]
aesenc xmm0, xmmword [0x005bcc60]
movq rax, xmm0
ret
jmp 0x408e00

Function at 0x45f480
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45f4b4
mov rcx, 0x28
jmp 0x45f4bf
shl rcx, 3
add rcx, 0x1480
mov qword [0x005bc8c8], rcx
pop rbp
ret
Function at 0x475b20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x475bea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403080
xorps xmm15, xmm15
mov r14, qword [0x005bc8c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x475bcf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0049db00]
xor ebx, ebx
mov rcx, rdx
call fcn.004459a0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.004764c0
inc rbx
cmp rcx, rbx
jae 0x475bbe
mov edi, 1
lea rsi, [0x0049db00]
call fcn.00445a80
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004d5418]
lea rsi, [0x004d4ce8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b940
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00475b20
Function at 0x1400039b0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
lea rcx, str.C:Windows_system32_rdpksr.dat
mov rdi, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003a0c
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x88], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [rsp + 0x88]
mov ecx, 0x40
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
jne 0x140003a61
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x78], rbx
mov ebx, ebp
mov dword [rdi], r15d
test ebp, ebp
jle 0x140003a9e
nop
mov rdx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov dword [rsp + 0x70], r15d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140003a9e
add dword [rdi], eax
sub ebx, eax
test ebx, ebx
jg 0x140003a70
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
cmp dword [rdi], ebp
je 0x140003acb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
mov al, 1
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret

Function at 0x140003d80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edi, r8d
mov dword [rsp + 0x28], 0x80
mov rsi, rdx
mov dword [rsp + 0x68], 0
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
test rax, rax
je 0x140003dfa
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x140003e0c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140006270
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140011b90
lea rax, str.Diagnostics.txt
mov r9, rdi
lea r8, [0x14002b2e0]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140004200
xor ebx, ebx
lea rcx, str.C:Windows_system32_rdpksr.dat
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140006411
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x48]
mov dword [rsp + 0x40], ebx
mov edx, 0x153
call fcn.140003af0
test al, al
je 0x140006411
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
call fcn.140003d80
test al, al
je 0x140006411
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400040a0
test al, al
je 0x140006411
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
lea rcx, [rsp + 0x160]
mov r8d, 0x104
call fcn.140011b90
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x104
call fcn.140011b90
mov r9, rdi
lea r8, str._sx86.dll
mov edx, 0x104
lea rcx, [rsp + 0x160]
call fcn.140004200
mov r9, rdi
lea r8, str._sx64.dll
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140004200
lea r8, [rsp + 0x160]
mov edx, 0x1a7
call fcn.140006440
test al, al
je 0x140006411
lea r8, [rsp + 0x270]
mov edx, 0x1ac
call fcn.140006440
test al, al
setne al
jmp 0x140006413
xor al, al
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14000e940
mov rbx, qword [rsp + 0x3a8]
add rsp, 0x390
pop rdi
ret
Function at 0x140002eb0
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rbx, r9
mov rdi, r8
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
test r9, r9
jne 0x140002f1c
lea r9d, [rbx + 0x10]
lea r8, [0x1400c55a8]
lea rdx, str.Callback_pointer_is_null
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400030ad
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140002f70
lea rax, str.Failed_to_create_file
mov qword [rsp + 0x50], rax
lea rdx, [0x14010a320]
lea rcx, [rsp + 0x50]
call fcn.1400541a0
mov ecx, 0x2488
call fcn.14002652c
test rax, rax
je 0x140002f97
mov r8, qword [rsp + 0xe0]
mov rdx, rbx
mov rcx, rax
call fcn.140002e10
mov rbx, rax
jmp 0x140002f9a
mov rbx, r12
mov qword [rsp + 0xd8], rbx
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x28], rsi
lea rcx, [rbx + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.14005fa9c
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.UniKey_Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x48], rax
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140003003
lea rax, str.InternetOpen_returned_NULL
mov qword [rsp + 0x58], rax
lea rdx, [0x14010a320]
lea rcx, [rsp + 0x58]
call fcn.1400541a0
lea rdx, [0x140002e80]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp rax, 0xffffffffffffffff
jne 0x140003036
lea rax, str.Failed_to_setup_callback
mov qword [rsp + 0x60], rax
lea rdx, [0x14010a320]
lea rcx, [rsp + 0x60]
call fcn.1400541a0
lea rcx, [rbx + 0x2278]
lea r8, str.InternetOpenUrl
mov edx, 0x100
call fcn.14005fa9c
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400030a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400030a0
lea rax, str.Failed_to_connect
mov qword [rsp + 0x68], rax
lea rdx, [0x14010a320]
lea rcx, [rsp + 0x68]
call fcn.1400541a0
nop
jmp 0x1400030aa
mov rax, rbx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400030e0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x18]
mov rbx, rdx
test rcx, rcx
je 0x1400030fa
xor edx, edx
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000310b
xor edx, edx
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000311a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140003129
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x140003139
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x238], 1
jne 0x140003176
mov rcx, qword [rbx + 0x2480]
test rcx, rcx
jne 0x140003152
xor eax, eax
jmp 0x14000315f
imul rax, qword [rbx + 0x2478], 0x64
xor edx, edx
div rcx
mov r9, qword [rbx + 8]
lea rcx, str.Success
mov r8d, eax
mov edx, 1
call qword [rbx]
jmp 0x140003180
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x2488
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140026568

Function at 0x14000ade0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x140114720]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.14001c480
lea rcx, [0x140120ac0]
call fcn.14000a9b0
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x74]
cmp eax, 4
ja 0x14000ae69
cmp dword [rsp + 0x80], 2
jne 0x14000ae5f
cmp eax, 4
je 0x14000ae69
mov dword [rsp + 0x58], 0
jmp 0x14000ae71
mov dword [rsp + 0x58], 1
mov rcx, qword [0x140120740]
mov edx, 0x82
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x38], rbx
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [0x140120740]
mov edx, 0x81
mov qword [rsp + 0x50], rax
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], 0x401
mov qword [rsp + 0x48], rax
mov eax, dword [0x14012084c]
mov dword [rsp + 0x30], eax
call fcn.14001dd30
mov ecx, dword [0x140120844]
call fcn.14001bf90
mov ecx, dword [0x140120850]
call fcn.14001db50
mov ecx, dword [0x140120848]
call fcn.14001dbd0
lea rcx, [0x140120840]
call fcn.14000a090
lea rcx, [0x140120ac0]
call fcn.14000ad60
lea rcx, [0x140120750]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
lea r8, [0x14001c310]
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
call fcn.140078944
mov qword [0x140120748], rax
mov eax, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400264d0
add rsp, 0x1a0
pop rbx
ret
Function at 0x14000bfe0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140114720]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
mov rdi, r8
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 6
jb 0x14000c04b
mov ecx, 0x28
call fcn.14002652c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000c06f
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14000b510
jmp 0x14000c071
mov ecx, 0x98
call fcn.14002652c
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000c06f
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.14000b4a0
jmp 0x14000c071
xor eax, eax
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400264d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000cd00
Capabilities:
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140114720]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r8d, 0x104
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
mov r8d, 0x80070057
test eax, eax
cmovne r8d, ecx
test r8d, r8d
js 0x14000cd9c
lea r8, str.MicrosoftWindowsStart_MenuProgramsUnikeyNT.lnk
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140078ab8
neg eax
sbb eax, eax
and eax, 0x80070057
jl 0x14000cd9f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x14000cd95
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000c760
jmp 0x14000cd9f
mov eax, 1
jmp 0x14000cd9f
mov eax, r8d
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400264d0
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret

Function at 0x140010700
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140114720]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14001077a
lea rdx, [rsp + 0x20]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x14001077a
mov edx, 0x2f
mov rcx, rbx
call fcn.140054bc0
test rax, rax
je 0x14001077a
add rax, 2
cmp word [rax], 0
je 0x14001077a
mov r9, rax
lea r8, [rsp + 0x20]
lea rdx, str._s_s
mov rcx, rdi
call fcn.140007dc0
mov al, 1
jmp 0x14001077c
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400264d0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret