joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110026bc0
Capabilities:
Encrypt data using blowfish

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0xb0]
mov qword [rbp - 0x88], rdi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 8], r8
mov dword [rbp - 0x10], r9d
mov rax, qword [rbp - 8]
lea rdi, [rbp - 0x78]
mov rsi, rax
mov ecx, 7
rep movsq qword [rdi], qword [rsi]
cmp qword [rbp - 0x18], 1
jne 0x110026c10
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x20]
call qword [rax + 0x68]
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x110026ddb
nop
nop
mov qword [rbp - 0x40], 0xffffffffffffffff
mov rax, qword [rbp - 0x20]
lea rdx, [rax + 8]
lea rcx, [0x110034980]
mov r8d, 0x48
call fcn.110001f60
mov rax, qword [rbp - 0x20]
lea rdx, [rax + 0x50]
lea rcx, [0x1100349d0]
mov r8d, 0x1000
call fcn.110001f60
mov dword [rbp - 0x28], 0
mov dword [rbp - 0x24], 0xffffffff
nop
add dword [rbp - 0x24], 1
mov dword [rbp - 0x30], 0
mov dword [rbp - 0x2c], 0xffffffff
nop word [rax + rax]
add dword [rbp - 0x2c], 1
mov eax, dword [rbp - 0x28]
movzx edx, byte [rbp + rax - 0x78]
mov eax, dword [rbp - 0x30]
shl eax, 8
or edx, eax
mov dword [rbp - 0x30], edx
add dword [rbp - 0x28], 1
mov eax, dword [rbp - 0x28]
cmp eax, dword [rbp - 0x10]
jl 0x110026cac
mov dword [rbp - 0x28], 0
nop
cmp dword [rbp - 0x2c], 3
jl 0x110026c80
mov r8, qword [rbp - 0x20]
mov edx, dword [rbp - 0x24]
mov eax, edx
mov ecx, dword [r8 + rax*4 + 8]
mov eax, dword [rbp - 0x30]
xor eax, ecx
and edx, edx
mov dword [r8 + rdx*4 + 8], eax
cmp dword [rbp - 0x24], 0x11
jl 0x110026c68
mov dword [rbp - 0x38], 0
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x24], 0
nop
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp - 0x20]
call fcn.110026df0
mov rcx, qword [rbp - 0x20]
mov eax, dword [rbp - 0x24]
mov edx, dword [rbp - 0x38]
mov dword [rcx + rax*4 + 8], edx
mov rax, qword [rbp - 0x20]
movsxd rdx, dword [rbp - 0x24]
mov ecx, dword [rbp - 0x34]
mov dword [rax + rdx*4 + 0xc], ecx
add dword [rbp - 0x24], 2
cmp dword [rbp - 0x24], 0x11
jle 0x110026ce8
mov dword [rbp - 0x28], 0xffffffff
nop dword [rax + rax]
add dword [rbp - 0x28], 1
mov dword [rbp - 0x24], 0
nop dword [rax + rax]
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp - 0x20]
call fcn.110026df0
mov rdx, qword [rbp - 0x20]
mov eax, dword [rbp - 0x28]
shl rax, 0xa
mov ecx, dword [rbp - 0x24]
lea rax, [rdx + rax + 0x50]
mov edx, dword [rbp - 0x38]
mov dword [rax + rcx*4], edx
mov rdx, qword [rbp - 0x20]
mov eax, dword [rbp - 0x28]
shl rax, 0xa
movsxd rcx, dword [rbp - 0x24]
lea rax, [rdx + rax + 0x54]
mov edx, dword [rbp - 0x34]
mov dword [rax + rcx*4], edx
add dword [rbp - 0x24], 2
cmp dword [rbp - 0x24], 0xff
jle 0x110026d38
cmp dword [rbp - 0x28], 3
jl 0x110026d28
mov qword [rbp - 0x40], 1
cmp qword [rbp - 0x20], 0
je 0x110026ddb
cmp qword [rbp - 0x18], 0
je 0x110026ddb
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
call qword [rax + 0x88]
nop
jmp 0x110026ddb
mov rax, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x88]
mov rsi, qword [rbp - 0x80]
lea rsp, [rbp]
pop rbp
ret
Function at 0x110026df0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x30]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r13
mov r10d, dword [rdx]
mov ebx, dword [rdx + 4]
mov eax, 0xffffffff
add eax, 1
mov r8d, eax
mov r9d, r10d
xor r9d, dword [rcx + r8*4 + 8]
mov r10d, r9d
mov r8d, r10d
mov r9d, r8d
and r9d, 0xff
shr r8d, 8
mov esi, r8d
and esi, 0xff
shr r8d, 8
mov edi, r8d
and edi, 0xff
shr r8d, 8
and r8d, 0xff
lea r12, [rcx + 0x50]
and r8d, 0xff
and edi, 0xff
mov r13d, dword [r12 + r8*4]
mov r8d, dword [r12 + rdi*4 + 0x400]
add r8d, r13d
mov edi, r8d
and esi, 0xff
xor edi, dword [rcx + rsi*4 + 0x850]
mov r8d, edi
mov esi, r8d
and r9d, 0xff
add esi, dword [rcx + r9*4 + 0xc50]
mov r8d, esi
xor r8d, ebx
mov ebx, r8d
mov r11d, r10d
mov r10d, ebx
mov ebx, r11d
cmp eax, 0xf
jl 0x110026e18
xor r10d, dword [rcx + 0x48]
xor ebx, dword [rcx + 0x4c]
mov dword [rdx], ebx
mov dword [rdx + 4], r10d
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov r12, qword [rbp - 0x10]
mov r13, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret

Function at 0x110026ef0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x30]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r13
mov r10d, dword [rdx]
mov ebx, dword [rdx + 4]
mov eax, 0x12
sub eax, 1
mov r8d, eax
mov r9d, r10d
xor r9d, dword [rcx + r8*4 + 8]
mov r10d, r9d
mov r8d, r10d
mov r9d, r8d
and r9d, 0xff
shr r8d, 8
mov esi, r8d
and esi, 0xff
shr r8d, 8
mov edi, r8d
and edi, 0xff
shr r8d, 8
and r8d, 0xff
lea r12, [rcx + 0x50]
and r8d, 0xff
and edi, 0xff
mov r13d, dword [r12 + r8*4]
mov r8d, dword [r12 + rdi*4 + 0x400]
add r8d, r13d
mov edi, r8d
and esi, 0xff
xor edi, dword [rcx + rsi*4 + 0x850]
mov r8d, edi
mov esi, r8d
and r9d, 0xff
add esi, dword [rcx + r9*4 + 0xc50]
mov r8d, esi
xor r8d, ebx
mov ebx, r8d
mov r11d, r10d
mov r10d, ebx
mov ebx, r11d
cmp eax, 2
jg 0x110026f18
xor r10d, dword [rcx + 0xc]
xor ebx, dword [rcx + 8]
mov dword [rdx], ebx
mov dword [rdx + 4], r10d
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov r12, qword [rbp - 0x10]
mov r13, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret
Function at 0x11002ecf0
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x11002ed71
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.110007c30
cmp ebx, 1
jle 0x11002ed60
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.110007710
jmp 0x11002ed7c
mov rcx, rsi
mov rdx, r13
call fcn.110005470
nop
mov rcx, rbp
call fcn.11002ecd0
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret

Function at 0x11002ef60
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0
nop
xor ebx, ebx
nop dword [rax]
add ebx, 1
mov eax, ebx
lea rdx, [0x11015b910]
lea rcx, [rdx + rax*8 - 8]
xor edx, edx
call fcn.110005470
mov eax, ebx
lea rdx, [0x11015b950]
mov dword [rdx + rax*4 - 4], 0xffffffff
cmp ebx, 7
jl 0x11002ef80
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
lea r8, [rbp - 0xc]
mov ecx, esi
mov r9d, 0xb
mov edx, 0x100b
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x11002f034
nop
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0xc]
xor r9d, r9d
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.110006030
mov rcx, qword [rbp - 0x18]
mov edx, 1
call fcn.110028320
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x11002f034
lea rcx, [0x11002ee00]
mov r8d, ebx
mov edx, esi
mov r9d, 4
call sub.kernel32.dll_EnumCalendarInfoA
lea rcx, [0x11002eeb0]
mov r8d, ebx
mov edx, esi
mov r9d, 3
call sub.kernel32.dll_EnumCalendarInfoA
nop dword [rax]
nop
mov rcx, rbp
call fcn.11002ef40
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret
Function at 0x11002f710
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0xc0]
mov qword [0x11015b990], 0
mov dword [rbp - 0x94], 0x94
lea rcx, [rbp - 0x94]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rbp - 0x84]
mov dword [0x11015b7d0], eax
mov eax, dword [rbp - 0x90]
mov dword [0x11015b7e0], eax
mov eax, dword [rbp - 0x8c]
mov dword [0x11015b7f0], eax
mov eax, dword [rbp - 0x88]
mov dword [0x11015b800], eax
lea rdx, [0x11015b811]
lea rcx, [rbp - 0x80]
mov r8d, pe_nt_image_headers64
call fcn.110001f60
lea rcx, [rbp - 0x80]
call fcn.110002f90
mov byte [0x11015b810], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x11015b9a0], rax
test rax, rax
je 0x11002f7c4
mov rcx, qword [0x11015b9a0]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x11015b990], rax
cmp dword [0x11015b7e0], 6
jae 0x11002f7d8
mov dword [0x110035c30], 0
nop
cmp dword [0x11015b7e0], 6
jb 0x11002f7f4
cmp dword [0x11015b7f0], 1
jb 0x11002f7f4
mov dword [0x110035c40], 2
nop
lea rsp, [rbp]
pop rbp
ret
Function at 0x1406db058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406db1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406db089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406db06f
add dl, dl
jne 0x1406db096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406db0f6
xor eax, eax
add dl, dl
jne 0x1406db0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406db1ad
add dl, dl
jne 0x1406db0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406db0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406db07e
mov eax, 1
add dl, dl
jne 0x1406db106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406db0fb
sub eax, ebx
mov ebx, 1
jne 0x1406db14c
mov ecx, 1
add dl, dl
jne 0x1406db12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406db13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406db123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406db07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406db168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406db175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406db15d
cmp eax, 0x7d00
jae 0x1406db19b
cmp eax, 0x500
jb 0x1406db196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406db07e
cmp eax, 0x7f
ja 0x1406db19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406db07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406db1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406db07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800352fc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18003519c
call fcn.18002f3d4
mov dword [rax], 0x16
call fcn.18002cdd4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180035184
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180035184
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800351ce
lock or dword [rax + 0x14], 0x10
jmp 0x180035184
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800351eb
mov rcx, qword [rbp + 0x10]
call fcn.180038f74
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180032694
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.180033798
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180035242
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180035184
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800352ae
mov rcx, qword [rbp + 0x10]
call fcn.180032694
cmp eax, 0xffffffff
je 0x180035295
mov rcx, qword [rbp + 0x10]
call fcn.180032694
cmp eax, 0xfffffffe
je 0x180035295
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180032694
movsxd rdi, eax
lea rsi, [0x180068820]
mov rcx, rbx
sar rdi, 6
call fcn.180032694
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18003529c
lea rax, [0x1800662d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800352ae
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800352e4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800352e0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800352e0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180035187
jmp 0x180035154
Function at 0x18003c820
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call fcn.180008c90
nop
mov r9d, 0x20
lea r8, [rsp + 0x50]
mov edx, 0x59
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180011b40
lea rdx, [0x180051d78]
lea rcx, [rsp + 0x30]
call fcn.180011b40
mov r9d, 0x20
lea r8, [rsp + 0x50]
mov edx, 0x5a
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180011b40
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
call fcn.180008c60
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call fcn.1800064a0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180020c30
add rsp, 0x88
ret
Function at 0x18003d380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x20], 0
lea rdx, [0x180051d28]
mov rcx, qword [rsp + 0x50]
call fcn.18002dce8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003d3fa
mov rcx, qword [rsp + 0x58]
call fcn.18002cff0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jbe 0x18003d3e1
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.18002e614
mov rcx, qword [rsp + 0x28]
call fcn.18002dea8
mov rcx, qword [rsp + 0x28]
call fcn.18002df70
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x18003d410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.180008c90
nop
lea rdx, [0x180051d2c]
mov rcx, qword [rsp + 0x98]
call fcn.18002dce8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003d51d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.18002e250
mov rcx, qword [rsp + 0x28]
call fcn.18002d574
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.18002e250
cmp dword [rsp + 0x20], 0
jle 0x18003d513
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, rax
call fcn.180021950
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.18002f0ac
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.180008c40
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180021800
mov rcx, qword [rsp + 0x28]
call fcn.18002df70
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.180008c60
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x58]
call fcn.1800064a0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180020c30
add rsp, 0x88
ret

Function at 0x18003d5b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x20], 0
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x100
jae 0x18003d5f1
jmp 0x18003d5f6
call fcn.180020d5c
mov rax, qword [rsp + 0x28]
mov byte [rsp + rax + 0x30], 0
xor r9d, r9d
mov r8d, 0x1c
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
call fcn.180006530
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180020c30
add rsp, 0x148
ret
Function at 0x18003db30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x50]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
test rax, rax
je 0x18003db6d
mov byte [rsp + 0x30], 1
jmp 0x18003db72
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x7ff7475ff900
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Delete file
Download url
Execute shellcode via indirect call
Get common file path
Get file attributes
Receive data

Disassembly:
sub rsp, 0x198
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x180], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, str.https:__downloads.cncnet.org_RA1installer.exe
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r8, str.RA1installer.exe
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7ff7475ff97f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], 0x20e856
lea rax, section..text
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x7ff7475ffa2d
mov rdx, qword [rsp + 0x30]
lea rcx, section..text
call fcn.7ff7475ff860
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, section..text
call rax
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.7ff7475ffa60
add rsp, 0x198
ret

Function at 0x7ff74760033c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff747600386
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff747600386
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff747600386
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff747600386
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff747600386
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff747600388
xor al, al
add rsp, 0x28
ret
Function at 0x140009020
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 0x140009048
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 0x14000906e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140009070
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400090c9
test ecx, ecx
jle 0x1400090a9
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 0x1400090c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400090c9
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 0x1400090f0
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 0x140009112
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140009128
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 0x140009144
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009146
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009182
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 0x14000921e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400091bd
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 0x1400091fe
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 0x14000921e
cmp rbx, rax
ja 0x1400091d0
test rbx, rbx
je 0x14000921e
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