joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000feb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14, rcx
mov edi, 1
mov rbx, qword [0x1401a84f0]
mov edx, 0x81
lea r8d, [rdx + 0x6f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001006d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001006d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001006d
xor r15d, r15d
mov r13d, 0x403
mov r12d, 0x1234
nop dword [rax]
movzx esi, word [rbx]
cmp r15w, si
je 0x14001006d
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r13w, ax
jne 0x14000ffd1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400102b0
nop
movzx edx, si
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x143
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x140010062
call fcn.1400c4364
jmp 0x140010062
cmp r12w, ax
jne 0x140010062
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x40], 0xffffffffffffffff
lea rax, [rsp + 0x188]
mov qword [rsp + 0x180], rax
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x180]
call fcn.1400102b0
nop
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x188]
mov rcx, qword [rsp + 0x180]
cmp rcx, rax
je 0x14001003a
call fcn.1400c4364
movzx edx, si
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40b
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r15d
add rbx, rbp
test edi, edi
jne 0x14000ff50
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400c3970
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001a3d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001a444
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a466
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001a466
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x14001a466
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001a580
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov r9d, dword [rdi + 8]
or r9d, 0x2001f
mov rax, qword [rdi]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001a604
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r9d
mov r8, rsi
mov rdx, rax
call fcn.14001a1d0
jmp 0x14001a61a
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14001a723
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001a63f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14001a723
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001a6e6
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14001a580
mov ebx, eax
test eax, eax
jne 0x14001a723
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001a691
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001a6fb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001a715
mov r8, rsi
mov rdx, qword [rdi]
call fcn.14001a3d0
jmp 0x14001a721
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001a740
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
jmp 0x14001a748
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400c3970
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e000
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xorps xmm0, xmm0
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cvtsi2sd xmm0, rdx
test rdx, rdx
jns 0x14001e035
addsd xmm0, qword [0x14013a338]
divsd xmm0, qword [0x14013a300]
call fcn.1400e3b00
movsd xmm1, qword [0x14013a330]
xor eax, eax
mulsd xmm0, qword [0x14013a308]
comisd xmm0, xmm1
jb 0x14001e071
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14001e071
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si r11, xmm0
add r11, rax
test rdi, rdi
je 0x14001e190
test rsi, rsi
je 0x14001e190
cmp r11, rbp
ja 0x14001e190
xor r8d, r8d
lea rbp, [0x140000000]
mov edx, r8d
test rbx, rbx
je 0x14001e147
mov r10, rsi
cmp rdx, rbx
jae 0x14001e0bb
movzx eax, byte [rdx + rdi]
inc rdx
jmp 0x14001e0be
mov eax, r8d
cmp rdx, rbx
jae 0x14001e0cd
movzx r9d, byte [rdx + rdi]
inc rdx
jmp 0x14001e0d0
mov r9d, r8d
cmp rdx, rbx
jae 0x14001e0de
movzx ecx, byte [rdx + rdi]
inc rdx
jmp 0x14001e0e1
mov ecx, r8d
shl eax, 8
add r10, 4
add eax, r9d
shl eax, 8
add eax, ecx
mov ecx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbp + 0x1a4d50]
mov byte [r10 - 4], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbp + 0x1a4d50]
mov byte [r10 - 3], al
mov eax, ecx
and ecx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rbp + 0x1a4d50]
mov byte [r10 - 2], al
movzx eax, byte [rcx + rbp + 0x1a4d50]
mov byte [r10 - 1], al
cmp rdx, rbx
jb 0x14001e0b2
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
cmp dword [rbp + rbx*4 + 0x1362a0], r8d
jle 0x14001e184
lea rax, [rsi - 1]
add rax, r11
nop
mov byte [rax], 0x3d
inc r8d
lea rax, [rax - 1]
cmp r8d, dword [rbp + rbx*4 + 0x1362a0]
jl 0x14001e170
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov al, 1
jmp 0x14001e192
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e1e0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
je 0x14001e3d9
test dl, 3
jne 0x14001e3d9
mov rax, rdx
shr rax, 2
cmp byte [rcx + rdx - 1], 0x3d
lea rbx, [rax + rax*2]
jne 0x14001e21d
dec rbx
cmp byte [rcx + rdx - 2], 0x3d
jne 0x14001e227
dec rbx
cmp rbx, r9
ja 0x14001e3d9
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r15
mov r15d, dword [0x1401a9d80]
mov ecx, r15d
mov eax, 0x6bca1af3
imul ecx, r15d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xe
jne 0x14001e283
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov r15d, dword [0x1401a9d80]
cmp byte [0x1401a9d85], 0
lea r12, [0x1401a9d90]
jne 0x14001e2b9
xor ecx, ecx
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_pliuusnlkjmbiqruhbjcgjcmtpsnounctocbpchdtabstqijofbnchohcgrrmnltkifkutacpotfsjmqkmjfuanmsipebistekko
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rax + r12], cl
inc ecx
cmp ecx, 0x40
jl 0x14001e2a0
mov byte [0x1401a9d85], 1
xor edx, edx
xor eax, eax
test r14, r14
je 0x14001e38a
mov qword [rsp + 0x50], rbp
nop dword [rax + rax]
movzx ecx, byte [rdx + rdi]
movzx r9d, byte [rdx + rdi + 1]
movzx r10d, byte [rdx + rdi + 2]
movzx r11d, byte [rdx + rdi + 3]
add rdx, 4
cmp cl, 0x3d
je 0x14001e2f9
movzx ecx, cl
movzx r8d, byte [rcx + r12]
jmp 0x14001e2fc
xor r8d, r8d
cmp r9b, 0x3d
je 0x14001e30d
movzx ecx, r9b
movzx ebp, byte [rcx + r12]
jmp 0x14001e30f
xor ebp, ebp
cmp r10b, 0x3d
je 0x14001e320
movzx ecx, r10b
movzx r10d, byte [rcx + r12]
jmp 0x14001e323
xor r10d, r10d
cmp r11b, 0x3d
je 0x14001e334
movzx ecx, r11b
movzx r9d, byte [rcx + r12]
jmp 0x14001e337
xor r9d, r9d
shl r8d, 6
add r8d, ebp
shl r8d, 6
add r8d, r10d
shl r8d, 6
add r8d, r9d
cmp rax, rbx
jae 0x14001e37c
mov ecx, r8d
inc rax
shr ecx, 0x10
mov byte [rax + rsi - 1], cl
cmp rax, rbx
jae 0x14001e37c
mov ecx, r8d
inc rax
shr ecx, 8
mov byte [rax + rsi - 1], cl
cmp rax, rbx
jae 0x14001e37c
mov byte [rax + rsi], r8b
inc rax
cmp rdx, r14
jb 0x14001e2d0
mov rbp, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x58]
lea ecx, [r15 + 1]
imul ecx, r15d
mov qword [rax], rbx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 0x15
jne 0x14001e3c4
dec r15d
mov dword [0x1401a9d80], r15d
mov al, 1
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14001eb00
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x1401a9d80]
mov eax, 0x2e8ba2e9
lea r9d, [rcx + 1]
imul r9d, ecx
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
imul edx, edx, 0x16
sub eax, edx
cmp eax, 4
jne 0x14001ebe1
mov r8d, ecx
mov eax, 0x6bca1af3
imul r8d, ecx
imul r8d, ecx
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r8d, edx
cmp r8d, 2
je 0x14001ebde
and r9d, 0x8000000f
jge 0x14001eb71
dec r9d
or r9d, 0xfffffff0
inc r9d
cmp r9d, 9
jne 0x14001ebde
mov eax, 0x92492493
xor r8d, r8d
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
imul edx, edx, 7
sub eax, edx
cmp eax, 0xcc
je 0x14001ebd7
nop dword [rax + rax]
mov eax, ecx
inc r8d
or eax, 0xffffff28
add ecx, eax
mov eax, ecx
imul eax, ecx
cmp r8d, eax
jg 0x14001ebd7
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
imul edx, edx, 7
sub eax, edx
cmp eax, 0xcc
jne 0x14001eba0
mov dword [0x1401a9d80], r8d
xor al, al
ret
mov al, 1
ret

Function at 0x140024ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov dword [rbp - 0x19], 0x5f005f
mov dword [rbp - 0x15], 0x520043
mov dword [rbp - 0x11], 0x40005f
mov dword [rbp - 0xd], 0x410046
mov dword [rbp - 9], 0x4c0049
mov dword [rbp - 5], 0x440045
mov dword [rbp - 1], 0x44005f
mov dword [rbp + 3], 0x57004f
mov dword [rbp + 7], 0x4c004e
mov dword [rbp + 0xb], 0x41004f
mov dword [rbp + 0xf], 0x5f0044
mov dword [rbp + 0x13], 0x450052
mov dword [rbp + 0x17], 0x440041
mov dword [rbp + 0x1b], 0x5f0040
mov dword [rbp + 0x1f], 0x520043
mov dword [rbp + 0x23], 0x5f005f
mov word [rbp + 0x27], r15w
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x19]
test rax, 0xffffffffffff0000
jne 0x140024fdf
movzx edi, cx
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14002500a
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140002530
jmp 0x14002500a
lea rax, [rbp - 0x19]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140024ff0
mov r8d, ecx
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140002240
nop
mov dword [rbp - 0x39], 1
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400c3970
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140026170
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x100
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x20], 1
xor r8d, r8d
xor edx, edx
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140026298
lea r14d, [rax + 1]
mov ecx, r14d
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400c2fb8
mov rdi, rax
mov ecx, dword [0x1401a9d80]
mov r10d, ecx
imul r10d, ecx
imul r10d, ecx
mov eax, 0x4ec4ec4f
imul r10d
sar edx, 2
mov r9d, edx
shr r9d, 0x1f
add edx, r9d
imul edx, edx, 0xd
sub r10d, edx
cmp r10d, 0xa
jne 0x14002624b
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov r8d, r14d
mov rdx, rdi
lea rcx, str.ProgramW6432
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002628b
test rdi, rdi
je 0x14002627d
nop word [rax + rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x140026270
mov rbp, rbx
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
call fcn.140002240
test rdi, rdi
je 0x140026298
mov rcx, rdi
call fcn.1400c4098
mov rax, rsi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400c3970
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400262d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov qword [rax - 0x28], 0
mov dword [rax - 0x30], 0x80
mov dword [rax - 0x38], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140026344
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002633d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1400263dd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], 0
mov rax, qword [rdi]
mov ebx, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14002637c
xor edx, edx
mov rcx, rdi
call fcn.140002330
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400263da
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400263f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140026437
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x1400269b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rcx, qword [rcx]
xor r9d, r9d
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
xor dil, dil
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026ac7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [0x1401a9d80]
mov eax, 0xb21642c9
lea ecx, [r8 + 1]
mov dword [rsp + 0x40], 0
imul ecx, r8d
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 5
jne 0x140026a87
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 4
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x63
movsxd rcx, r8d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400c2fb8
mov rcx, rax
call fcn.1400c4098
mov rdx, qword [rsi]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov r8d, dword [rdx - 0x10]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140026abe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movzx eax, dil
add rsp, 0x50
pop rdi
ret
Function at 0x140028350
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, str.Wininet.dll
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140028442
mov r8d, dword [0x1401a9d80]
mov eax, 0x2e8ba2e9
lea ecx, [r8 + 1]
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 7
jne 0x14002843a
xor edx, edx
nop
mov ecx, edx
mov eax, edx
inc edx
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
add r8d, eax
cmp edx, 0x100
jl 0x1400283a0
mov dword [0x1401a9d80], r8d
xor eax, eax
add rsp, 0x30
pop rbx
ret
lea rdx, [0x140136df8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002843a
xor edx, edx
lea rcx, [0x140133728]
xor r9d, r9d
mov dword [rsp + 0x60], edx
mov edx, ebx
xor r8d, r8d
add rsp, 0x30
pop rbx
jmp rax
Function at 0x14003f160
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x6f0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
movsxd r12, edx
mov r15, rcx
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.14001c060
nop
mov dword [rsp + 0x30], 1
mov rdx, qword [rax]
xor eax, eax
test rdx, rdx
setne al
test eax, eax
jne 0x14003f1d0
mov ecx, 0x80004005
call fcn.140001930
int3
mov rax, qword [r15 + 0xc8]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x14003f1f6
add rax, 2
test cx, cx
jne 0x14003f1e0
xor eax, eax
jmp 0x14003f1fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14003f228
call fcn.140021380
test al, al
jne 0x14003f228
call fcn.140021e00
test al, al
jne 0x14003f228
lea rcx, [r12 + r12*4]
mov rax, qword [r15 + rcx*8 + 0xe8]
cmp dword [rax - 0x10], 0
je 0x14003f228
mov dil, 1
jmp 0x14003f22b
xor dil, dil
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x30], eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003f250
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14003f2a0
mov eax, dword [0x1401a9d80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 4
jne 0x14003f3a0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x14003f3a0
mov edx, r12d
mov rcx, r15
call fcn.14003f3e0
test al, al
jne 0x14003f323
mov ebx, dword [0x1401a9d80]
mov eax, ebx
imul eax, ebx
and eax, 0x8000000f
jge 0x14003f2c8
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 6
jne 0x14003f3a0
xor r14d, r14d
lea r10, [rsp + 0x50]
nop dword [rax]
movzx ebp, bl
sub bpl, r14b
mov esi, 0xe
lea r11d, [rsi - 0xd]
nop
xor ecx, ecx
mov r9d, 1
nop dword [rax + rax]
inc r9d
inc rcx
cmp rcx, 0xc
jl 0x14003f300
inc r11d
add r10, 0xc
dec rsi
jne 0x14003f2f0
inc r14d
cmp r14d, 0xa
jl 0x14003f2e0
jmp 0x14003f3a0
mov edx, r12d
mov rcx, r15
call fcn.14003fe60
test al, al
je 0x14003f3a0
call fcn.140021380
test al, al
jne 0x14003f37a
call fcn.140021e00
test al, al
jne 0x14003f37a
lea rcx, [rsp + 0x38]
call fcn.14001c060
nop
mov rdx, rax
lea rcx, [r15 + 0xc8]
call fcn.1400021b0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003f393
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14003f393
mov r8d, 1
lea rdx, [0x140136280]
lea rcx, [r15 + 0xc8]
call fcn.140002240
lea rax, [r12 + r12*4]
mov byte [r15 + rax*8 + 0xf0], 1
lea rax, [r12*4 + 0x1a]
add rax, r12
lea rax, [r15 + rax*8]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400c3970
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140041430
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [0x1401a9d80]
lea r8d, [rcx + 1]
mov r9d, eax
mov eax, 0x92492493
imul r8d, ecx
imul r8d
add edx, r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0xe
sub r8d, edx
cmp r8d, 8
jne 0x140041472
inc dword [0x1401aa4a8]
cmp r9b, 6
setb al
add rsp, 0x28
ret