joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ec30
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000a82c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000ecba
cmp byte [rbp - 0x21], r15b
je 0x14000ecb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ecf0
call fcn.14000c040
test eax, eax
jne 0x14000ecdc
cmp byte [rbp - 0x21], r15b
je 0x14000ecd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ecf0
cmp byte [rbp - 0x21], r15b
je 0x14000eced
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140009e0c
test eax, eax
jne 0x14000ed90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a82c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ed2f
cmp byte [rbp - 0x21], r15b
je 0x14000ed64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000ed64
call fcn.14000c040
test eax, eax
jne 0x14000ed50
cmp byte [rbp - 0x21], r15b
je 0x14000ed49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000ed64
cmp byte [rbp - 0x21], r15b
je 0x14000ed61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140009e0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000ed90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000ed93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000eda1
mov rcx, rdi
call fcn.140009dbc
cmp byte [rbp + 0x3f], r15b
je 0x14000edb0
mov rcx, qword [rbp + 0x27]
call fcn.140009dbc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401d96b0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x138
mov eax, 0x2a7
mov word [rsp + 0x40], ax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
mov edx, 0xc0000000
lea rcx, str.IncubateSynonymNebulas
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
movabs rax, 0xba7d85660936a24c
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 5
xor r9d, r9d
mov r8d, 2
mov edx, 0xc0000000
lea rcx, str.Divisional_scatterers
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x70], rax
movzx eax, word [rsp + 0x40]
add eax, 0x73b
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xcff
je 0x1401d976e
jmp 0x1401d97fb
movzx eax, word [rsp + 0x40]
sar eax, 7
mov word [rsp + 0x40], ax
lea rdx, [rsp + 0x90]
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x54], 0xaab25ecb
mov edx, 0xfd
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [rsp + 0x5c], eax
movzx eax, word [rsp + 0x40]
sub eax, 0x802
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
add eax, 0x8f4
mov word [rsp + 0x40], ax
lea r9, [rsp + 0x40]
mov r8d, 0xad
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
mov dword [rsp + 0x60], eax
mov r8b, 0x46
mov dl, 0x99
mov cl, 0x5c
call fcn.1401d98a0
nop
movzx eax, word [rsp + 0x40]
cmp eax, 0xca8
jge 0x1401d9823
movabs rax, 0x5efb47e9a2c2b1f
mov rcx, qword [rsp + 0x48]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x1401d9883
movzx eax, word [rsp + 0x40]
xor eax, 0xb1d
cmp eax, 0xa56
jl 0x1401d9844
mov edx, 0x1c
mov rcx, qword [rsp + 0x48]
call fcn.1401d9ff0
nop
mov ecx, 0xd8
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x48]
shl rax, 0x10
mov qword [rsp + 0x48], rax
movzx eax, word [rsp + 0x40]
or eax, 0xe72
mov word [rsp + 0x40], ax
mov ecx, 0xaa
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x88], rax
mov eax, 0x3e
add rsp, 0x138
ret
Function at 0x1401dafd0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401db01a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401db01a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401db01a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401db01a
cmp dword [rcx + 0x84], 0xe
jbe 0x1401db01a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401db01c
xor al, al
add rsp, 0x28
ret

Function at 0x1401de46c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401de4db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401de4db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401de4db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401de4db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401de4db
cmp dword [rcx + 0x84], 0xe
jbe 0x1401de4db
cmp dword [rcx + 0xf8], 0
je 0x1401de4db
mov ecx, ebx
call fcn.1401de58c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401de368
nop
cmp dword [rbp + 0x20], 0
je 0x1401de529
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401de534
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1401de46c

Function at 0x1401de670
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401de46c
Function at 0x1401e1724
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401e1754
xor eax, eax
jmp 0x1401e1817
mov rbp, rbx
cmp word [rax], si
je 0x1401e1779
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401e1760
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401e175c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401e1644
movsxd r14, eax
test eax, eax
jne 0x1401e17b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401e174d
mov rcx, r14
call fcn.1401e21b8
mov rdi, rax
test rax, rax
jne 0x1401e17d0
xor ecx, ecx
call fcn.1401dfc7c
jmp 0x1401e17ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401e1644
test eax, eax
jne 0x1401e1801
mov rcx, rdi
call fcn.1401dfc7c
jmp 0x1401e180b
xor ecx, ecx
call fcn.1401dfc7c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1401e6f80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401e6fa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401e6fa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000cccc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, r9
mov rdi, r8
mov rcx, rdx
mov rax, qword [rdx]
lea rdx, [0x1401311e0]
call qword [rax]
mov ebp, eax
test eax, eax
jne 0x14000ce86
cmp qword [rdi], 0
je 0x14000ce86
and qword [rsp + 0x40], 0
mov r9d, dword [0x1401a3d80]
lea r8d, [r9 + 1]
lea ecx, [r9 + 2]
imul ecx, r8d
imul ecx, r9d
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, 7
cmove r9d, r8d
mov dword [0x1401a3d80], r9d
mov rcx, qword [rdi]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + VariantChangeTypeEx]
mov r11d, eax
test eax, eax
jne 0x14000cdec
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000cdec
mov rax, qword [rcx]
mov r8, rbx
lea rdx, str._D_3
call qword [rax]
test eax, eax
jne 0x14000cdd2
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000cdd2
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x60]
call qword [rax + 0x360]
test eax, eax
jne 0x14000cdb5
cmp qword [rbx], 0
je 0x14000cdb5
lea ebx, [rbp + 1]
jmp 0x14000ce6f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000ce6d
mov r8d, eax
lea rdx, str.querying_pWindow2_code__d
jmp 0x14000ce68
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000ce6d
mov r8d, eax
lea rdx, str.querying_document2_code__d
jmp 0x14000ce68
mov r8d, dword [0x1401a3d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0x11
jne 0x14000ce54
xor r9d, r9d
lea ebx, [rcx - 0x10]
mov edx, r9d
mov r10d, 8
mov ecx, edx
and ecx, ebx
sub ecx, ebx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
mov edx, ecx
xor edx, eax
sub r10, rbx
jne 0x14000ce26
add r8d, edx
add r9d, ebx
cmp r9d, 0x100
jl 0x14000ce1d
mov dword [0x1401a3d80], r8d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000ce6d
mov r8d, r11d
lea rdx, str.querying_document_code__d
call fcn.14000fe60
xor bl, bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000ce7f
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov al, bl
jmp 0x14000cf1a
mov r8d, dword [0x1401a3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 3
jne 0x14000ceff
xor ecx, ecx
lea r10d, [rcx + 0x5c]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov esi, eax
lea ebx, [rcx + 1]
test esi, esi
jle 0x14000cef8
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
xor r9d, r9d
mov rdi, rsi
test eax, eax
jle 0x14000cef0
mov edx, r9d
mov r11d, eax
add r10d, edx
sub edx, ebx
sub r11, rbx
jne 0x14000cee6
add r9d, ecx
sub rdi, rbx
jne 0x14000cedc
add ecx, ebx
cmp ecx, r10d
jl 0x14000cec6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000cf18
mov r8d, ebp
lea rdx, str.querying_pWebBrowser2_code__d
call fcn.14000fe60
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000e8d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rcx
mov r12, qword [rbp + 0x1f0]
mov edi, 1
mov rbx, qword [0x1401a24f0]
mov edx, 0x81
lea r8d, [rdx + 0x6f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
test rax, rax
je 0x14000ea5c
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000ea5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000ea5c
movzx esi, word [rbx]
cmp r13w, si
je 0x14000ea5c
movzx eax, word [rbx + 2]
mov r15d, dword [rbx + 4]
add rbx, 8
mov ecx, 0x403
cmp cx, ax
jne 0x14000e9e1
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000efa0
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, r13d
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14000ea51
call fcn.1400bbc10
jmp 0x14000ea51
mov ecx, 0x1234
cmp cx, ax
jne 0x14000ea51
mov dword [rsp + 0x38], 1
or qword [rsp + 0x40], 0xffffffffffffffff
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.14000efa0
nop
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x80]
cmp rcx, rax
je 0x14000ea29
call fcn.1400bbc10
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, r13d
add rbx, r15
test edi, edi
jne 0x14000e972
mov dl, 1
mov rcx, r14
call fcn.140010038
mov dword [r12], r13d
mov eax, 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140019850
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
test rbx, rbx
je 0x1400198cb
cmp qword [rbx], 0
mov rsi, qword [rcx]
je 0x1400198b9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400198c4
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400198c4
mov rdx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x1400198d4
cmp dword [rbx + 8], 0
je 0x1400198c4
mov rcx, rsi
jmp 0x1400198ce
mov eax, 1
jmp 0x1400198d4
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140019b14
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.1400199a4
jmp 0x140019b88
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140019b14
test eax, eax
mov ebx, eax
jne 0x140019bf2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], pe_nt_image_headers64
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140019b79
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140019be1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rdx, rsi
mov rcx, rdi
call fcn.140019850
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140019c08
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
and dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400bb0d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ac30
Capabilities:
Get disk size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
call fcn.140019c34
test al, al
jne 0x14001ac72
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea rax, [rbp + 0x10]
mov qword [rbp + 0x20], rax
lea rdx, str.Firefo
lea rcx, [rbp + 0x18]
call fcn.1400020f8
nop
lea r8, str.xProfiles
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140018bf8
nop
lea rdx, [rbp - 0x18]
mov rcx, rax
call fcn.14001a688
nop
mov rdx, qword [rbp + 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001acc4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [0x1401a3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x14001ad10
mov ecx, 1
cmp r8d, ecx
jle 0x14001ad0a
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x14001acfb
mov dword [0x1401a3d80], ecx
mov rbx, qword [rbp - 0x10]
sub rbx, qword [rbp - 0x18]
sar rbx, 3
lea rcx, [rbp - 0x18]
call fcn.140019200
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14001fc40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rcx
and dword [rsp + 0x20], 0
mov edx, dword [0x1401a3d80]
lea r8d, [rdx + 2]
lea eax, [rdx + 1]
imul r8d, eax
imul r8d, edx
and r8d, 0x80000007
jge 0x14001fc83
dec r8d
or r8d, 0xfffffff8
inc r8d
cmp r8d, 1
jne 0x14001fc9a
lea ecx, [r8 + 3]
call fcn.1400bb888
mov ecx, dword [0x1401a3d80]
mov dword [rax], ecx
lea rdx, [0x1401346e8]
lea rcx, [rsp + 0x48]
call fcn.1400020f8
nop
mov r9d, dword [0x1401a3d80]
lea ecx, [r9 + 2]
lea eax, [r9 + 1]
imul ecx, eax
imul ecx, r9d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 1
jne 0x14001fd1c
xor edx, edx
mov r8d, edx
mov r10d, 8
mov ecx, r8d
and ecx, 1
dec ecx
not ecx
and ecx, r9d
mov eax, r8d
sar eax, 1
mov r8d, ecx
xor r8d, eax
dec r10
jne 0x14001fceb
add r9d, r8d
inc edx
cmp edx, 0x100
jl 0x14001fce2
mov dword [0x1401a3d80], r9d
lea rcx, [rsp + 0x50]
call fcn.140040150
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14000e4ec
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001fd52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140002cf8
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001fd80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14002319c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
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 [0x14019be90]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor r12d, r12d
mov dword [rbp - 0x39], r12d
mov r8d, dword [0x1401a3d80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub ecx, edx
cmp ecx, 5
jne 0x140023227
lea ecx, [r12 + 1]
cmp r8d, ecx
jle 0x140023221
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x140023212
mov dword [0x1401a3d80], ecx
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], r12w
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.1400020f8
nop
mov dword [rbp - 0x39], 1
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14002407c
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
and 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 0x1400240ed
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400240e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14002417a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and 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 0x140024122
xor edx, edx
mov rcx, rdi
call fcn.14000239c
lea r8d, [rbx + rbx]
and 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
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140024178
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14002418c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2f0
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r14, rdx
mov edx, 0x80000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r9d, dword [0x1401a3d80]
mov rbp, rax
lea r8d, [r9 + 1]
mov eax, 0xb21642c9
imul r8d, r9d
imul r8d
add edx, r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x17
sub r8d, edx
cmp r8d, 0x16
jne 0x140024270
xor edi, edi
lea rsi, [rsp + 0x40]
xor r10d, r10d
lea ecx, [rdi + 1]
mov eax, r9d
lea ebx, [r10 + 1]
cdq
idiv ecx
mov eax, r9d
mov ecx, r9d
sub ecx, edi
mov r8d, edx
cdq
idiv ebx
imul r8d, ecx
lea rcx, [0x140131288]
add r8d, eax
sub r8d, r10d
mov edx, r8d
call fcn.1400bb9dc
add rsi, 4
mov r10d, ebx
cmp ebx, 0xe
jge 0x140024260
mov r9d, dword [0x1401a3d80]
jmp 0x140024217
inc edi
cmp edi, 0xc
jge 0x140024270
mov r9d, dword [0x1401a3d80]
jmp 0x140024214
cmp rbp, 0xffffffffffffffff
jne 0x14002427a
xor eax, eax
jmp 0x14002429e
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov qword [r14], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400bb0d0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret