joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180f4
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov ecx, 3
call fcn.00017278
test al, al
jne 0x1820c
mov ecx, 6
call fcn.00017278
test al, al
jne 0x1820c
call fcn.00016d44
test al, al
jne 0x18134
mov eax, 0xc0000001
jmp 0x1820e
and qword [rsp + 0x90], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
mov eax, 0x7e
lea r8, [rsp + 0x50]
mov word [rsp + 0x30], ax
mov eax, pe_nt_image_headers64
lea rcx, [rsp + 0x90]
mov word [rsp + 0x32], ax
lea rax, [0x000278a0]
mov edx, 0x20006
mov qword [rsp + 0x38], rax
mov eax, 0xe
mov dword [rsp + 0x50], 0x30
mov word [rsp + 0x40], ax
mov eax, 0x10
mov dword [rsp + 0x68], 0x240
mov word [rsp + 0x42], ax
lea rax, [0x00027950]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1820e
movzx eax, word [0x0186ff70]
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [0x0186ff78]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x1820e
xor eax, eax
add rsp, 0x80
pop rbx
ret

Function at 0x18220
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x80
mov ecx, 4
call fcn.00017278
test al, al
je 0x1823e
xor eax, eax
jmp 0x18327
call fcn.00016e48
test al, al
jne 0x18251
mov eax, 0xc0000001
jmp 0x18327
and qword [rsp + 0x90], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x70], 0
and qword [rsp + 0x78], 0
mov eax, 0x7e
lea r8, [rsp + 0x50]
mov word [rsp + 0x30], ax
mov eax, pe_nt_image_headers64
lea rcx, [rsp + 0x90]
mov word [rsp + 0x32], ax
lea rax, [0x000278a0]
mov edx, 0x20006
mov qword [rsp + 0x38], rax
mov eax, 0x1a
mov dword [rsp + 0x50], 0x30
mov word [rsp + 0x40], ax
mov eax, 0x1c
mov dword [rsp + 0x68], 0x240
mov word [rsp + 0x42], ax
lea rax, [0x00027960]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x18327
movzx eax, word [0x0186ffa0]
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [0x0186ffa8]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x90]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x80
pop rbx
ret
Function at 0x18338
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x8a0
mov rax, qword [0x0002b100]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov ecx, 8
call fcn.00017278
test al, al
je 0x18371
xor eax, eax
jmp 0x1852c
call fcn.00016f54
test al, al
jne 0x18384
mov eax, 0xc0000001
jmp 0x1852c
and qword [rsp + 0x30], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
mov eax, 0x7e
lea r8, [rsp + 0x58]
mov word [rsp + 0x48], ax
mov eax, pe_nt_image_headers64
lea rcx, [rsp + 0x30]
mov word [rsp + 0x4a], ax
lea rax, [0x000278a0]
mov edx, 0x20006
mov qword [rsp + 0x50], rax
mov eax, 0x1a
mov dword [rsp + 0x58], 0x30
mov word [rsp + 0x38], ax
mov eax, 0x1c
mov dword [rsp + 0x70], 0x240
mov word [rsp + 0x3a], ax
lea rax, [0x00027980]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1852c
mov rsi, qword [0x0186fff8]
lea rdx, [0x000252d0]
mov rcx, rsi
call fcn.000147b4
mov ebp, 1
test eax, eax
jne 0x184f4
lea rcx, [rsp + 0x94]
xor edx, edx
mov r8d, 0x7fc
mov dword [rsp + 0x90], 0x22
call fcn.00025100
movzx r8d, word [0x0186fff0]
lea rcx, [rsp + 0x90]
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_wcsncat]
xor eax, eax
or rdx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
mov rcx, rdx
lea rsi, [0x000279b0]
repne scasw ax, word [rdi]
mov eax, dword [0x000279a0]
mov rcx, rdx
mov dword [rdi - 2], eax
movzx eax, word [0x000279a4]
mov word [rdi + 2], ax
xor eax, eax
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
lea ecx, [rbp + 0x13]
sub rdi, 2
rep movsw word [rdi], word [rsi]
lea rdi, [rsp + 0x90]
mov rcx, rdx
repne scasw ax, word [rdi]
lea rsi, [rsp + 0x90]
not rcx
mov qword [0x0186fff8], rsi
sub rcx, rbp
add cx, bp
add cx, cx
mov word [0x0186fff2], cx
mov word [0x0186fff0], cx
jmp 0x184fb
mov cx, word [0x0186fff0]
movzx eax, cx
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov r9d, ebp
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.00024bb0
lea r11, [rsp + 0x8a0]
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18948
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x80
xor ebp, ebp
mov rax, rcx
mov rsi, r9
mov rcx, rbp
mov rbx, rdx
mov dword [r11 + 8], ebp
mov qword [r11 - 0x48], rcx
cmp word [rax], bp
jbe 0x18a38
cmp word [rax + 2], bp
jbe 0x18a38
cmp word [rdx], bp
jbe 0x18998
cmp word [rdx + 2], bp
jbe 0x18998
cmp r9, rbp
jne 0x189a2
mov ebx, 0xc0000001
jmp 0x18a48
mov edi, dword [rsp + 0xb0]
cmp edi, ebp
jbe 0x18998
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x60], 0x240
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, ebp
mov rcx, qword [rsp + 0x40]
jl 0x18a38
mov r9d, 7
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, ebp
mov ebx, 0xc0000001
cmp eax, ebp
cmovl ecx, ebx
mov ebx, ecx
mov rcx, qword [rsp + 0x40]
jmp 0x18a3d
mov ebx, 0xc0000001
cmp rcx, rbp
je 0x18a48
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18a6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x90
movdqu xmm0, xmmword [rcx]
movdqu xmm1, xmmword [rdx]
xor r12d, r12d
mov rsi, r9
mov rbp, r8
mov qword [rax + 0x20], r12
mov dword [rax + 8], r12d
mov dword [rax + 0x10], r12d
mov rdi, r12
movdqu xmmword [rax - 0x68], xmm0
movdqu xmmword [rax - 0x78], xmm1
cmp r9, r12
jne 0x18ab5
mov ebx, 0xc0000001
jmp 0x18c45
cmp word [rcx], r12w
jbe 0x18c12
cmp word [rcx + 2], r12w
jbe 0x18c12
cmp word [rdx], r12w
jbe 0x18aab
cmp word [rdx + 2], r12w
jbe 0x18aab
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0xd8]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xc8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov edx, 0xf003f
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x78], 0x240
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r12
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, r12d
jl 0x18c12
mov rcx, qword [rsp + 0xd8]
xor r9d, r9d
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, 0xc0000023
cmp eax, ebx
jne 0x18c12
cmp dword [rsi], r12d
jne 0x18b8d
mov eax, dword [rsp + 0xc0]
mov dword [rsi], eax
jmp 0x18c17
mov ecx, 0x6020000
call fcn.00024fc4
mov edx, dword [rsp + 0xc0]
mov r8d, 0x6b6162
neg al
sbb ecx, ecx
and ecx, 0x200
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
cmp rax, r12
je 0x18c12
mov rcx, qword [rsp + 0xd8]
lea rax, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xc0]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r12d
jl 0x18c12
mov r8d, dword [rdi + 8]
mov rcx, qword [rbp]
lea rdx, [rdi + 0xc]
call fcn.00024c10
mov r11d, dword [rdi + 8]
mov ebx, r12d
mov dword [rsi], r11d
jmp 0x18c17
mov ebx, 0xc0000001
mov rcx, qword [rsp + 0xd8]
cmp rcx, r12
je 0x18c32
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0xd8], r12
cmp rdi, r12
je 0x18c45
mov edx, 0x6b6162
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18e74
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov rdx, rcx
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_RtlCheckRegistryKey]
test eax, eax
js 0x18efb
mov r9d, 4
lea rax, [rsp + 0x60]
lea r8, [0x00027af0]
mov dword [rsp + 0x28], r9d
lea ecx, [r9 - 3]
mov rdx, rbx
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov r11d, 0xa4
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea eax, [r11 + 2]
mov word [rsp + 0x30], r11w
mov word [rsp + 0x32], ax
lea rax, [0x00027a40]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.00018c5c
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x207ac
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
call fcn.0001f8fc
call fcn.0001fa1c
call fcn.0001fb3c
call fcn.0001fc5c
call fcn.0001fd7c
call fcn.0002031c
call fcn.0001fe9c
mov r11d, 0x4c
lea rdi, [0x00027220]
lea eax, [r11 + 2]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov word [rsp + 0x52], ax
lea rax, [0x00026a90]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea eax, [r11 + 0x18]
mov r9, rdi
mov word [rsp + 0x40], ax
lea eax, [r11 + 0x1a]
mov word [rsp + 0x50], r11w
mov word [rsp + 0x42], ax
lea rax, [0x00026ae0]
mov qword [rsp + 0x48], rax
lea eax, [r11 - 0x38]
mov word [rsp + 0x30], ax
lea eax, [r11 - 0x36]
mov word [rsp + 0x32], ax
lea rax, [0x00026160]
mov qword [rsp + 0x38], rax
call fcn.00016a5c
xor ebx, ebx
cmp al, bl
je 0x208c2
mov eax, 0x3f0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov word [0x01870062], ax
lea rax, [0x01874980]
lea rdx, [rsp + 0x50]
mov qword [0x01870068], rax
lea rax, [0x000260a0]
lea rcx, [0x01870060]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.00016704
cmp al, bl
je 0x208c2
cmp word [0x01870060], bx
je 0x208c2
lea rdx, [0x01870060]
lea rcx, [0x0002b198]
call fcn.0001f4b4
jmp 0x208d7
mov word [0x01870062], bx
mov word [0x01870060], bx
mov qword [0x01870068], rbx
call fcn.0001ffbc
call fcn.000200dc
call fcn.000201fc
call fcn.00017eb0
call fcn.00017fc8
call fcn.000180f4
call fcn.00018220
call fcn.00018338
call fcn.00018f08
call fcn.000196d8
call fcn.00019ea8
call fcn.0001a678
call fcn.0001ae48
call fcn.0001dd64
call fcn.0001b614
call fcn.0001be38
call fcn.0001c600
call fcn.0001cdc4
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp fcn.0001d594
Function at 0x24300
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
cmp byte [0x0186def6], 0
je 0x24316
xor eax, eax
jmp 0x24409
and qword [rsp + 0x40], 0
lea rax, [0x0002b120]
lea rdx, [0x0002c298]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call sub.NETIO.SYS_WskRegister
test eax, eax
js 0x24409
lea r8, [0x0002c2b0]
lea rcx, [0x0002c298]
or edx, 0xffffffff
call sub.NETIO.SYS_WskCaptureProviderNPI
test eax, eax
js 0x24409
and qword [rsp + 0x30], 0
and qword [0x0002c2d0], 0
and qword [rsp + 0x60], 0
lea rax, [0x0002c2c0]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [0x0002c2c8], rax
mov qword [0x0002c2c0], rax
lea rax, [0x000241c4]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jne 0x24409
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov rcx, qword [rsp + 0x60]
and qword [rsp + 0x28], 0
mov r8, qword [r8]
lea rax, [0x018bb280]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
jns 0x243fa
mov byte [0x0186def7], 1
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x24407
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov byte [0x0186def6], 1
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x18be064
Capabilities:
Check os version
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.018be008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00015dc8
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call fcn.10014a000
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.1000019b0
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400293ac
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ca74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400294fc
cmp rax, 0xffffffffffffffff
je 0x1400294fc
xor edi, edi
test rbp, rbp
jle 0x1400294a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f3a0
mov rbx, rax
test rax, rax
jne 0x140029434
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002949d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a3a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d750
cmp eax, 0xffffffff
je 0x14002947d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029444
mov edx, r15d
mov ecx, r14d
call fcn.14001a3a8
jmp 0x14002949d
cmp byte [rsi + 0x38], dil
je 0x140029494
cmp dword [rsi + 0x34], 5
jne 0x140029494
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002949d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b13c
jmp 0x140029510
jns 0x140029510
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca74
cmp rax, 0xffffffffffffffff
jne 0x1400294c8
cmp byte [rsi + 0x30], dil
je 0x140029510
mov edi, dword [rsi + 0x2c]
jmp 0x140029510
mov ecx, r14d
call fcn.140018864
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029510
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029509
mov eax, dword [rsi + 0x2c]
jmp 0x14002950e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca74
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140f38000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140f3800a
jmp 0x140f3a00f
jmp fcn.1409f7108
Function at 0x140010dd0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140016ae0
sub rsp, rax
mov eax, dword [0x140034160]
mov r12, rcx
test eax, eax
je 0x140010ea0
xor ebx, ebx
lea rsi, [0x140032160]
test eax, eax
jg 0x140010e14
jmp 0x140010e40
add rbx, 1
cmp dword [0x140034160], ebx
jle 0x140010e40
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140010e08
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140010e57
cmp word [r12 + 2], 0x3a
je 0x140010e24
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140010ef0
movsxd rbx, dword [0x140034160]
cmp ebx, 0x3ff
jg 0x140010e24
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x140034160], 1
mov r8, rax
lea rax, [0x140032160]
mov qword [rax + rbx*8], r8
jmp 0x140010e24
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov rdx, r14
mov rcx, r13
call fcn.140008f60
test al, al
je 0x140010f08
movsxd rbx, dword [0x140034160]
mov rcx, r13
lea rsi, [0x140032160]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x140034160]
add eax, 1
mov dword [0x140034160], eax
jmp 0x140010df6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140010e6a
xor eax, eax
jmp 0x140010e29
mov rcx, r14
call fcn.140008f10
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140011610
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rbx, qword [0x140020bc0]
mov rdi, qword [0x140020be0]
lea rsi, [0x140020274]
movq xmm0, rsi
mov rcx, qword [rbx]
movq xmm6, rdi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140011666
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140011690
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140020bd0]
cmp byte [rax], 0
jne 0x1400116a0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14001165d
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011754
test al, 0x10
je 0x140011672
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140011672
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140011700
jmp 0x140011672

Function at 0x1400157e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001c6e0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c6e0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop