joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180042ff0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [0x180059270]
mov ebp, edx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 0x3c]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, rdi
je 0x1800430b5
xor ecx, ecx
mov qword [rax + 8], rax
mov qword [rax], rax
mov dword [rax + 0x1c], edi
mov dword [rax + 0x20], ebp
call fcn.18001ab60
mov qword [rbx + 0x24], rax
lea rax, [rbx + 0x18]
lea r8, [0x180042e44]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x2c], rdi
mov qword [rbx + 0x34], rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
cmp rax, rdi
je 0x180043099
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rax], rbx
inc dword [rsi + 0x28]
mov qword [rsi + 8], rbx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1800430ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800430ba
mov edi, 8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18004488d
Capabilities:
Execute syscall

Disassembly:
mov r10, rdx
mov rax, rcx
syscall
ret
Function at 0x18004bb80
Capabilities:
Load ntoskrnl

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x24], 0
cmp qword [0x180059748], 0
jne 0x18004bd7f
lea rcx, str.ZwQuerySystemInformation
call fcn.18004bae0
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov ecx, 0xb
call qword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18004bc6f
mov eax, dword [rsp + 0x20]
add eax, 0x1000
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x40]
mov r9d, 4
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18004bc35
xor eax, eax
jmp 0x18004bdcb
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xb
call qword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18004bc6d
mov edx, dword [rsp + 0x40]
mov r8d, 0x10000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18004bbf5
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
jmp 0x18004bc92
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x18004bd6a
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx + 0x28]
lea rdx, [0x1800570c0]
call sub.ntdll.dll_strstr
test rax, rax
je 0x18004bd05
mov r8d, 1
xor edx, edx
lea rcx, str.ntkrnlpa.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x180059748], rax
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + rcx + 0x10]
mov qword [0x180059740], rax
jmp 0x18004bd6a
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx + 0x28]
lea rdx, [0x1800570e0]
call sub.ntdll.dll_strstr
test rax, rax
je 0x18004bd65
mov r8d, 1
xor edx, edx
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x180059748], rax
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + rcx + 0x10]
mov qword [0x180059740], rax
jmp 0x18004bd6a
jmp 0x18004bc87
mov edx, dword [rsp + 0x40]
mov r8d, 0x10000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [0x180059748], 0
je 0x18004bdc6
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x180059748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004bdc6
mov rax, qword [0x180059748]
mov rcx, qword [0x180059740]
sub rcx, rax
mov rax, qword [rsp + 0x28]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret
Function at 0x18004c280
Capabilities:
Create thread
Terminate thread

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0xb8
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0xa4], 0
mov qword [rsp + 0x38], 0
mov byte [rsp + 0xa0], 0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x180059730], rax
lea rcx, [0x180057180]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x18004c2ea
xor eax, eax
jmp 0x18004c502
call fcn.18004bde0
test eax, eax
jne 0x18004c2fa
xor eax, eax
jmp 0x18004c502
cmp dword [rsp + 0xc0], 0
jne 0x18004c313
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0xac], eax
jmp 0x18004c321
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0xac]
mov dword [0x18005972c], eax
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.18004bef0
test eax, eax
je 0x18004c3ea
cmp dword [rsp + 0x40], 5
jne 0x18004c383
cmp dword [rsp + 0x30], 1
jb 0x18004c383
mov dword [reloc.OLEAUT32.dll_VariantClear], 0
movzx eax, byte [rsp + 0xa0]
cmp eax, 1
je 0x18004c381
mov eax, dword [reloc.OLEAUT32.dll_VariantClear]
add eax, 2
mov dword [reloc.OLEAUT32.dll_VariantClear], eax
jmp 0x18004c3d1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800435ac
test eax, eax
je 0x18004c3d1
cmp dword [rsp + 0x40], 6
jne 0x18004c3b0
cmp dword [rsp + 0x30], 0
jne 0x18004c3b0
mov dword [reloc.OLEAUT32.dll_VariantClear], 4
jmp 0x18004c3d1
cmp dword [rsp + 0x40], 6
jne 0x18004c3ca
cmp dword [rsp + 0x30], 1
jne 0x18004c3ca
mov dword [reloc.OLEAUT32.dll_VariantClear], 6
jmp 0x18004c3d1
xor eax, eax
jmp 0x18004c502
mov eax, dword [reloc.OLEAUT32.dll_VariantClear]
add eax, 1
mov dword [reloc.OLEAUT32.dll_VariantClear], eax
mov dword [0x180059724], 1
mov dword [rsp + 0x50], 0x50
mov dword [rsp + 0x54], 0
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0x200
mov rax, qword [0x180059730]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
lea rax, [0x180057190]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_RegisterClassExW]
movzx eax, ax
test eax, eax
jne 0x18004c480
xor eax, eax
jmp 0x18004c502
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18004c060]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18004c4fc
mov dword [rsp + 0xa8], 0
mov eax, dword [0x180059728]
test eax, eax
jne 0x18004c4ef
cmp dword [rsp + 0xa8], 0xa
jae 0x18004c4ef
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0xa8]
add eax, 1
mov dword [rsp + 0xa8], eax
jmp 0x18004c4bd
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x180059728]
add rsp, 0xb8
ret
Function at 0x140028a00
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140028a44
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140028a50
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140028a34
mov qword [rdi], rsi
call fcn.140075ef0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002ff90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [rcx + 0x20]
test r8d, 0x180
je 0x14002ffe3
bt eax, 0xb
mov rdi, qword [rdi + 0x18]
jb 0x14003005c
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140152280
mov rcx, rsi
mov edx, 8
mov r8, rdi
jmp 0x14003008e
and eax, 0x1802
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x18]
test rdx, rdx
je 0x14003009d
cmp eax, 0x1000
je 0x14003009d
movabs rcx, 0x100000001b3
mov qword [rsp + 0x40], r8
movabs r9, 0xcbf29ce484222325
xor r8d, r8d
movzx r10d, byte [rsp + r8 + 0x40]
xor r9, r10
imul r9, rcx
inc r8
cmp r8, 8
jne 0x14003001f
mov r11b, byte [rdx]
test r11b, r11b
je 0x14003009a
lea r10, [rdx + 1]
movzx r8d, r11b
xor r8, r9
imul r8, rcx
mov r11b, byte [r10]
inc r10
mov r9, r8
test r11b, r11b
jne 0x140030041
jmp 0x14003009d
mov rbx, qword [0x1401d6760]
cmp qword [0x1401d6758], 0
jne 0x140030073
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor rbx, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140152280
mov rcx, rsi
mov edx, 8
mov r8, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.14002a5dc
mov r8, r9
cmp eax, 2
je 0x1400300be
cmp eax, 0x1000
je 0x1400300b7
cmp eax, 0x800
jne 0x1400300ce
mov edx, 0xa
jmp 0x1400300c3
mov edx, 0xb
jmp 0x1400300c3
mov edx, 6
mov rcx, rsi
call fcn.14002a5dc
mov rdx, qword [rdi]
test rdx, rdx
je 0x140030115
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.14002854c
movzx r9d, byte [rdi + 0x17]
test r9b, r9b
jns 0x1400300f4
mov r9, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 7
mov r8, rdi
call fcn.14002ac14
cmp byte [rsp + 0x3f], 0
jns 0x140030115
mov rcx, qword [rsp + 0x28]
call fcn.140150da4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140152280
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140031570
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14003161b
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14003161b
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
jmp 0x14003161d
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140152280
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140032590
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400325b7
mov r14, r12
jmp 0x1400326bf
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140032619
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x140032605
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140153d10
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x1400326bf
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400326e5
lea rcx, [r13*8]
call fcn.140150d68
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x140032688
lea r14, [rdx + rcx]
xor r8d, r8d
nop word [rax + rax]
mov r9, rcx
add r9, r8
je 0x1400326df
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140032670
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
nop dword [rax + rax]
cmp r12, rbx
je 0x1400326ae
add r12, 0xfffffffffffffff8
jne 0x1400326a0
int3
test r15, r15
je 0x1400326bf
mov rcx, r15
call fcn.140150da4
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x1400326e2
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
int3
int3
Function at 0x1400334b0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], 0
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jae 0x1400334de
cmp qword [rsi], rbx
jne 0x1400334e8
jmp 0x14003350a
call fcn.140075ef0
cmp qword [rsi], rbx
je 0x14003350a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140033517
cmp r14, 2
jae 0x140033531
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140075ef0
mov rcx, qword [rsi]
call fcn.140053e50
mov qword [rsi], 0
cmp r14, 2
jb 0x140033502
mov qword [rsi], rbx
call fcn.140075ef0
jmp 0x140033502

Function at 0x140033550
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jae 0x140033577
cmp qword [rsi], rbx
jne 0x140033581
jmp 0x1400335a3
call fcn.140075ef0
cmp qword [rsi], rbx
je 0x1400335a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400335b0
cmp r14, 2
jae 0x1400335ca
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140075ef0
mov rcx, qword [rsi]
call fcn.140053e50
mov qword [rsi], 0
cmp r14, 2
jb 0x14003359b
mov qword [rsi], rbx
call fcn.140075ef0
jmp 0x14003359b

Function at 0x140036028
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rax, vtable.std::__Cr::ios_base.0
mov qword [rcx], rax
mov rdi, qword [rcx + 0x48]
test rdi, rdi
je 0x140036074
mov rax, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + rdi*8 - 8]
mov r8d, dword [rcx + rdi*4 - 4]
xor ecx, ecx
mov rdx, rsi
call qword [0x1401b8a50]
dec rdi
jne 0x140036052
mov rcx, qword [rsi + 0x30]
lea rax, [0x1401d7088]
cmp rcx, rax
je 0x14003609f
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14003609f
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1401b8a50]
mov rdx, qword [rsi + 0x38]
lea rdi, fcn.1400b5400
mov rcx, rdi
xor r8d, r8d
call fcn.1400b8f60
mov rdx, qword [rsi + 0x40]
mov rcx, rdi
xor r8d, r8d
call fcn.1400b8f60
mov rdx, qword [rsi + 0x58]
mov rcx, rdi
xor r8d, r8d
call fcn.1400b8f60
mov rdx, qword [rsi + 0x70]
mov rcx, rdi
xor r8d, r8d
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.1400b8f60

Function at 0x140037d40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140037d77
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x140037d51
ret
Function at 0x140037df0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x140037e28
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x140037e01
ret
Function at 0x140044b7d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call fcn.14004fcbe
mov ebp, eax
test rdi, rdi
je 0x140044bb2
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140044bc7
movzx eax, word [rax]
jmp 0x140044bd7
xor r15d, r15d
mov eax, 6
test bpl, bpl
jne 0x140044c61
xor edi, edi
jmp 0x140044bef
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1401b8a50]
xor r15d, r15d
cmp ax, 0xffff
sete cl
cmove rdi, r15
mov eax, 6
cmp bpl, cl
je 0x140044c61
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140044c01
movzx ebp, word [rax]
jmp 0x140044c10
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1401b8a50]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x1401b8a50]
test al, al
je 0x140044c59
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x1401b8a50]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140044c75
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x140044c82
xor r15d, r15d
mov eax, 4
or dword [rsi], eax
mov eax, r15d
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1401b8a50]
mov r12d, dword [rsp + 0x80]
movsx r15d, bpl
mov rcx, r14
call fcn.14004fcbe
mov ebp, eax
test rdi, rdi
je 0x140044cac
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140044cb0
movzx eax, word [rax]
jmp 0x140044cc0
mov al, 1
jmp 0x140044cc9
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1401b8a50]
cmp ax, 0xffff
sete al
jne 0x140044ccb
xor edi, edi
add r15d, 0xffffffd0
cmp bpl, al
je 0x140044d71
cmp r12d, 2
jl 0x140044d71
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140044cf4
movzx ebp, word [rax]
jmp 0x140044d03
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1401b8a50]
mov ebp, eax
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov dx, 4
mov r8d, ebp
call qword [0x1401b8a50]
test al, al
je 0x140044c63
mov rax, qword [rbx]
mov rax, qword [rax + 0x68]
mov rcx, rbx
mov edx, ebp
xor r8d, r8d
call qword [0x1401b8a50]
mov ebp, eax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
cmp rax, qword [rcx + 0x20]
je 0x140044d50
add rax, 2
mov qword [rcx + 0x18], rax
jmp 0x140044d5d
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x1401b8a50]
lea eax, [r15 + r15*4]
movsx ecx, bpl
lea r15d, [rcx + rax*2]
dec r12d
jmp 0x140044c8e
mov rcx, r14
call fcn.14004fcbe
mov ebx, eax
test rdi, rdi
je 0x140044d8f
mov rax, qword [rdi + 0x18]
cmp rax, qword [rdi + 0x20]
je 0x140044da1
movzx eax, word [rax]
jmp 0x140044db1
mov eax, 2
test bl, bl
jne 0x140044c61
jmp 0x140044c63
mov rax, qword [rdi]
mov rax, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1401b8a50]
cmp ax, 0xffff
sete al
xor bl, al
mov eax, 2
je 0x140044c61
jmp 0x140044c63
Function at 0x140054050
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140152220
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401543c0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14005413b
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x1400540eb
mov edi, 0x3f4
cmp eax, 1
jne 0x14005413b
lea rdx, [rsp + 0x840]
jmp 0x140054131
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401543c0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14005413b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005104a
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140152280
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140054160
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140171c94
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400546d0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xc0]
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x50], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.140150d68
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x1401c8588]
jne 0x14005473d
mov rcx, r15
call fcn.1400844a0
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140054b20]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140054785
test r14, r14
je 0x1400547a7
mov qword [r14], rdi
jmp 0x140054847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jg 0x1400547b5
cmp ebp, 8
je 0x14005486d
cmp ebp, 0xe
jne 0x1400547cd
jmp 0x14005486d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140054847
cmp ebp, 0x5af
je 0x14005486d
cmp ebp, 0x27b
je 0x14005486d
mov eax, dword [0x1401d7f7c]
mov ecx, dword [0x1401d52c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140054875
lea rcx, [rsp + 0x38]
mov edx, ebp
call fcn.140067960
cmp byte [rsp + 0x4f], 0
jns 0x140054826
cmp qword [rsp + 0x40], 0
js 0x14005489f
mov rcx, qword [rsp + 0x38]
je 0x140054821
test rcx, rcx
je 0x1400548a2
call fcn.140150da4
test rsi, rsi
je 0x140054847
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1401c8588]
jne 0x14005483f
call fcn.1400845e0
mov rcx, rsi
call fcn.140150da4
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140152280
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140084b90
lea rcx, [0x1401d7f7c]
call fcn.140150ec0
cmp dword [0x1401d7f7c], 0xffffffff
jne 0x1400547f2
lea rcx, [0x1401d7f7c]
call fcn.140150f58
jmp 0x1400547f2
int3
int3

Function at 0x1400564a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400564fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400564e1
call fcn.140075ef0
mov rcx, qword [rsi]
call fcn.140053e50
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400564f3
mov qword [rsi], rdi
call fcn.140075ef0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140056515
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int3