joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017738
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
lea rax, [r11 + 0x18]
xor edx, edx
mov qword [r11 - 0x18], rax
xor r9d, r9d
xor r8d, r8d
mov rbp, rcx
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140017778
cmp eax, 0x80000005
jne 0x1400177ca
mov edx, dword [rsp + 0x50]
mov r8d, 0x746f7250
mov ecx, dword [0x140022120]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400177ca
mov r9d, dword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
test eax, eax
js 0x1400177bf
mov rax, qword [rdi]
mov qword [rsi], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400177e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rbp, r9
lea rcx, [rax - 0x20]
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, dword [rsp + 0x80]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x38]
mov r9, rdi
mov r8d, 2
mov rcx, rbx
lea eax, [rsi + 0x10]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14001786f
mov ecx, dword [rsp + 0x88]
cmp dword [rdi + 4], ecx
jne 0x14001786a
cmp dword [rdi + 8], esi
jne 0x14001786a
test rbp, rbp
je 0x14001786f
lfence
mov r8d, esi
lea rdx, [rdi + 0xc]
mov rcx, rbp
call fcn.140015a80
jmp 0x14001786f
mov ebx, 0xc000003e
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140017888
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
mov rbx, r8
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x30], 0
lea rax, [rbp - 0x48]
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], 0x30
mov edx, 0x20019
mov dword [rbp - 0x20], 0x240
lea rcx, [rbp - 0x50]
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140017964
lea rdx, [0x140018e40]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x50]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x48]
mov r9, rbx
mov dword [rsp + 0x20], 0xc8
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14001795a
mov r9d, 3
cmp dword [rbx + 4], r9d
jne 0x14001795a
mov ecx, 0xb8
cmp dword [rbx + 8], ecx
jne 0x14001795a
lfence
mov dword [rsp + 0x28], ecx
lea rax, [rbx + 0xc]
mov rcx, rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14001797c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
test r8, r8
je 0x140017996
mov rax, qword [r8]
jmp 0x1400179a3
movabs rax, 0xfffff78000000014
mov rax, qword [rax]
mov r8b, r9b
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400172c0
lea rdx, [0x140018f60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r9d, 3
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140025790
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400220f0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rcx, qword [rcx + 0x58]
lea rax, [r11 - 0x48]
mov ebx, edx
lea r8, [0x14002eb80]
xor edi, edi
mov r9d, 0x2001f
mov qword [r11 - 0x50], rdi
xor edx, edx
mov qword [r11 - 0x58], rax
call fcn.14000e1fc
test eax, eax
jns 0x1400257dc
lfence
jmp 0x14002582a
lea rax, [rsp + 0x48]
mov dword [rsp + 0x38], 0x200000
lea r8, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov edx, 0xa
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
mov ebx, eax
test eax, eax
jns 0x14002580b
lfence
jmp 0x14002581d
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400157c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140028434
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor edi, edi
mov r12, r9
mov r13, r8
mov r15, rcx
cmp qword [rsp + 0xb0], rdi
je 0x140028596
mov rax, qword [rsp + 0xb0]
mov r11d, 0xff
mov r10d, r11d
cmp word [rax], di
je 0x140028489
add rax, 2
sub r10, 1
jne 0x14002847a
sub r11, r10
mov rax, r10
neg rax
sbb rbx, rbx
and rbx, r11
test r10, r10
je 0x140028596
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x10]
call fcn.14002c5e0
test al, al
je 0x140028596
mov rax, qword [rsp + 0x40]
lea rsi, [rbx*2 + 0x42]
mov edx, esi
mov ecx, 1
mov r8d, 0x66746e56
movzx r14d, word [rax + 0x14]
add r14, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140028596
mov rax, qword [rsp + 0x88]
lea r8, [rbx + rbx]
mov rdx, qword [rsp + 0xb0]
mov qword [rdi], rax
mov rcx, qword [r14]
mov eax, dword [rsp + 0xa0]
mov qword [rdi + 8], rcx
mov rcx, qword [r14 + 8]
mov qword [rdi + 0x10], rcx
mov rcx, qword [r14 + 0x10]
mov qword [rdi + 0x18], rcx
mov rcx, qword [r14 + 0x18]
mov dword [rdi + 0x38], eax
mov eax, dword [rsp + 0xa8]
mov dword [rdi + 0x3c], eax
mov al, byte [rsp + 0xb8]
mov qword [rdi + 0x20], rcx
lea rcx, [rdi + 0x42]
mov byte [rdi + 0x41], al
mov qword [rdi + 0x28], r13
mov qword [rdi + 0x30], r12
mov byte [rdi + 0x40], bl
call fcn.140015a80
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov byte [rsp + 0x28], 1
mov rcx, r15
and qword [rsp + 0x20], r8
lea edx, [r8 + 0x30]
call fcn.14002c488
xor edx, edx
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
jmp 0x140028598
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140028864
Capabilities:
Resolve function by parsing pe exports

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, 0x40
mov esi, dword [rsp + 0x88]
mov rbx, rcx
mov ecx, 1
mov rbp, r9
mov r14b, r8b
mov r15, rdx
lea r12d, [rcx + 0x2f]
cmp dword [rsp + 0x80], r12d
jne 0x1400288ab
cmp esi, ecx
jne 0x1400288c5
mov r8d, 0x66746e56
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor r8d, r8d
mov rdi, rax
test rax, rax
jne 0x1400288cc
xor eax, eax
jmp 0x14002896f
cmp dword [rsp + 0x80], r12d
mov eax, r8d
mov dword [rdi + 4], esi
cmove eax, r12d
xor edx, edx
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov dword [rdi + 8], eax
mov ecx, dword [rbx + 0x3c]
cmp eax, ecx
jae 0x1400288f3
movzx ecx, word [rbx + 0x3a]
div ecx
mov qword [rsp + 0x38], rdi
mov r9b, r14b
mov byte [rdi + 0xc], al
mov edx, 0x90
xor eax, eax
mov dword [rsp + 0x30], r12d
mov word [rdi + 0xd], ax
mov byte [rdi + 0xf], al
mov byte [rdi + 0x1c], r8b
lea ecx, [rax + 0x10]
mov byte [rsp + 0x28], r8b
mov dword [rdi + 0x10], ecx
lea eax, [rcx + 0x10]
mov dword [rdi + 0x14], eax
mov dword [rdi + 0x18], eax
xor eax, eax
mov word [rdi + 0x1d], ax
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + 0x10]
mov qword [rsp + 0x20], rbp
mov qword [rax + rdi + 0x10], r8
movzx r8d, word [rsp + 0x90]
mov dword [rax + rdi + 0x18], ecx
mov rcx, r15
mov dword [rax + rdi + 0x1c], 2
call fcn.14002c488
xor edx, edx
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14002d164
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, qword [rbp + 0x58]
mov rdi, rcx
and qword [rbp + 0x38], 0
lea rcx, [rbp - 0x10]
mov r14b, r9b
mov r15, r8
mov ebx, pe_nt_image_headers64
and qword [r12], 0
test rdx, rdx
je 0x14002d1aa
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
jmp 0x14002d1c0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov al, r14b
neg al
sbb ebx, ebx
and ebx, 0xffffff80
add ebx, 0x180
mov r9d, dword [rbp + 0x50]
lea r8, [rbp - 0x10]
mov al, r14b
mov rcx, rdi
neg al
lea rax, [rbp + 0x38]
sbb esi, esi
mov qword [rsp + 0x30], rax
and esi, 0xfffffaf8
mov byte [rsp + 0x28], 0
add esi, 0x638
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
lfence
test eax, eax
js 0x14002d298
mov rcx, qword [rbp + 0x38]
xor edx, edx
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call fcn.140015d40
mov rax, qword [rbp + 0x38]
mov rbx, qword [rax + 0x40]
lea rcx, [rbx + 8]
call fcn.14000ec98
mov byte [rbx + 0x40], r14b
mov rax, qword [rbp + 0x38]
and dword [rbx + 0x44], 0
and dword [rbx + 0x48], 0
mov qword [rbx], rax
mov dword [rbx + 0x50], 4
mov dword [rbx + 0x4c], 1
mov rax, qword [rbp + 0x38]
bts dword [rax + 0x30], 0xd
mov rax, qword [rbp + 0x38]
test r14b, r14b
je 0x14002d280
mov rbx, qword [rax + 0x40]
lea rcx, [rbx + 0xf0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeGuardedMutex]
lea rax, [rbx + 0xe0]
mov qword [rbx + 0x58], r15
mov qword [rax + 8], rax
mov qword [rax], rax
jmp 0x14002d28e
mov rcx, qword [rax + 0x40]
mov qword [rcx + 0x58], r15
mov word [rcx + 0x70], 1
mov rax, qword [rbp + 0x38]
mov qword [r12], rax
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002e9dc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
and dword [rax + 0x18], 0
mov edi, r9d
mov rsi, r8
mov r14d, edx
mov r15d, ecx
test r8, r8
jne 0x14002ea18
test r9d, r9d
je 0x14002ea18
mov eax, 0xc000000d
jmp 0x14002eacb
lea ebp, [r9 + 0x10]
mov ecx, 1
mov edx, ebp
mov r8d, 0x4b787541
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithQuotaTag]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14002eac4
lea r9, [rsp + 0x50]
mov dword [rax + 0xc], edi
mov r8d, ebp
mov dword [rax], r15d
mov rdx, rax
mov dword [rax + 4], 1
mov ecx, 0x4c
mov dword [rax + 8], r14d
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
nop dword [rax + rax]
mov edi, eax
mov eax, 0x80000000
lea ecx, [rdi + rax]
test eax, ecx
jne 0x14002ea84
cmp edi, 0xc0000023
jne 0x14002eab1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002ea93
mov eax, dword [rbx + 0xc]
mov dword [rcx], eax
test edi, edi
js 0x14002eab1
test rsi, rsi
je 0x14002eab1
mov r8d, dword [rsp + 0x50]
lea rdx, [rbx + 0x10]
add r8d, 0xfffffff0
mov rcx, rsi
call fcn.140015a80
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
jmp 0x14002eac9
mov edi, 0xc000009a
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14002eae8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x140022228], ebx
mov dword [rsp + 0x30], ebx
jne 0x14002eb48
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
nop dword [rax + rax]
cmp dword [rsp + 0x30], 5
jae 0x14002eb23
mov ebx, 0xc00000bb
jmp 0x14002eb48
lea rcx, [0x140020528]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
nop dword [rax + rax]
mov ecx, 1
mov qword [0x140022220], rax
xchg dword [0x140022228], ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x65bb20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x65bb2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x65bb3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x65bb25
lea eax, [rcx + 1]
jmp 0x65bb4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x65bb5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x65bb44
sub eax, 3
jb 0x65bb7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x65bbcd
sar eax, 1
movsxd rbp, eax
jb 0x65bbb4
jmp 0x65bb8c
add ebx, ebx
jne 0x65bb8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x65bbb4
inc ecx
add ebx, ebx
jne 0x65bb9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x65bbb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x65bbad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x65bb9c
add ecx, 2
jmp 0x65bbb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0065bae2
jmp 0x65bb2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x110c00
mov dl, 0x1e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x65bc19
cmp rsi, rcx
jae 0x65bc21
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x65bc00
cmp al, 0x8f
ja 0x65bc00
cmp byte [rsi - 2], 0xf
je 0x65bc06
sub al, 0xe8
cmp al, 1
ja 0x65bbea
cmp rsi, rcx
jae 0x65bc21
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x65bbf0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x65bc21
lodsb al, byte [rsi]
jmp 0x65bc00
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x257000]
mov eax, dword [rdi]
or eax, eax
je 0x65bc7e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x25b000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x65bc2e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x65bc78
mov qword [rbx], rax
add rbx, 8
jmp 0x65bc4e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x65bcc2
cmp al, 0xef
ja 0x65bcaa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x65bc8a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x65bc99
mov eax, dword [rdi]
add rdi, 4
jmp 0x65bc99
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x65bd16
sub rsp, 0xffffffffffffff80
jmp 0x452aa0
Function at 0x140fb9588
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140fb95b1
pop rbp
sub rbp, 0x29
sub rbp, 0xfb9588
jmp 0x140fb9611
sub rsp, 0x20
jmp 0x140fb9621
mov rax, 0xfb9588
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0x578c3a26
xor byte [rax], dl
inc rax
dec rcx
jne 0x140fb9640
jmp 0x140fb9657
outsb dx, byte [rsi]
scasd eax, dword [rdi]
iretd
Function at 0x14000f110
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, rcx
mov rsi, rdx
xor ecx, ecx
mov rax, rdx
mov qword [rdx + 0x10], rcx
cmp qword [rdx + 0x18], 8
jb 0x14000f139
mov rax, qword [rdx]
mov word [rax], cx
xor r8d, r8d
mov rcx, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14000f195
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000f182
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f170
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140006a20
xor al, al
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbx
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rdi
cmovo rax, rbx
mov rcx, rax
call fcn.14001359c
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000f200
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000f1e2
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140006a20
xor al, al
jmp 0x14000f222
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000f200
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400051f0
mov rcx, rdi
call fcn.1400132d0
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140009640
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
lea rsi, [0x14001f3cc]
lea rdi, [0x140030120]
mov rcx, qword [0x1400270a8]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140009697
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400096b8
mov rcx, qword [0x1400270a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030108], 0
jne 0x1400096d0
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 [0x1400270a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000968a
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 0x140009784
test al, 0x10
je 0x1400096a0
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 0x1400096a0
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140009730
jmp 0x1400096a0
Function at 0x1400110f0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140016c10
sub rsp, rax
mov eax, dword [0x140034120]
mov r12, rcx
test eax, eax
je 0x1400111c0
xor ebx, ebx
lea rsi, [0x140032120]
test eax, eax
jg 0x140011134
jmp 0x140011160
add rbx, 1
cmp dword [0x140034120], ebx
jle 0x140011160
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140011128
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 0x140011177
cmp word [r12 + 2], 0x3a
je 0x140011144
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140011210
movsxd rbx, dword [0x140034120]
cmp ebx, 0x3ff
jg 0x140011144
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x140034120], 1
mov r8, rax
lea rax, [0x140032120]
mov qword [rax + rbx*8], r8
jmp 0x140011144
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.140008ed0
test al, al
je 0x140011228
movsxd rbx, dword [0x140034120]
mov rcx, r13
lea rsi, [0x140032120]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x140034120]
add eax, 1
mov dword [0x140034120], eax
jmp 0x140011116
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001118a
xor eax, eax
jmp 0x140011149
mov rcx, r14
call fcn.140009610
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140015910
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.14001c810
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.14001c810
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400165c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034208]
test eax, eax
je 0x14001665a
lea rax, [0x1400341e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034210]
mov qword [rbp - 8], rax
jmp 0x14001663e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140016632
cmp qword [rbp - 0x10], 0
je 0x140016632
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400165f8
lea rax, [0x1400341e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001665b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140016760
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140016788
mov eax, 0
jmp 0x1400167d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400167b1
mov eax, 0
jmp 0x1400167d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400167d1
mov eax, 0
jmp 0x1400167d6
mov eax, 1
add rsp, 0x20
pop rbp
ret