joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002d5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002d5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002d5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002d5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002d5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002d5c
xor al, al
add rsp, 0x28
ret
Function at 0x140001058
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x1aa2a38
mov rdi, rcx
jne 0x1400010bc
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x1400010bc
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400010bc
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 0x2900]
test rax, rax
jne 0x1400010a6
mov ebx, 0xc0000001
jmp 0x1400010b2
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x1400010c1
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400010cc
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x1aa2a38
mov rdi, rcx
jne 0x14000112e
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x14000112e
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000112e
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x140001118
mov ebx, 0xc0000001
jmp 0x14000111f
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140001133
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001140
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x1aa2a38
mov rsi, rcx
je 0x140001164
mov eax, 0xc0000001
jmp 0x14000121c
xor edi, edi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000121a
test rbx, rbx
je 0x14000119c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x14000118c
test rbx, rbx
je 0x14000121a
mov r8d, dword [rbx]
test r8d, r8d
je 0x14000120f
mov edx, edi
shl rdx, 5
test byte [rdx + rbx + 0x10], 1
je 0x140001208
cmp qword [rdx + rbx + 0x18], 0x200000
jne 0x140001208
mov ecx, dword [0x1400020e0]
mov r9b, byte [0x1400020e4]
cmp dword [rdx + rbx + 0x20], ecx
jne 0x140001208
cmp byte [rdx + rbx + 0x24], r9b
je 0x14000122c
inc edi
cmp edi, r8d
jb 0x1400011d6
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + rbx + 8]
mov qword [rcx], rax
jmp 0x14000121a
Function at 0x14000123c
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x1aa2a38
mov rbx, rcx
jne 0x140001338
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001338
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001338
mov rdi, qword [0x140004060]
test rdi, rdi
je 0x140001338
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.140001b44
mov r10, rax
test rax, rax
jne 0x1400012e2
cmp byte [rbx + 0x21], al
je 0x1400012db
mov ecx, dword [rbx + 4]
call fcn.14000154c
test rax, rax
je 0x1400012db
mov rdx, qword [rbx + 8]
mov rcx, rax
call fcn.140001b44
mov r10, rax
test rax, rax
jne 0x1400012e2
mov eax, 0xc0000141
jmp 0x14000133d
mov ecx, 0x1000
mov eax, r10d
and eax, 0xfff
sub ecx, eax
cmp ecx, esi
cmovl esi, ecx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
mov rcx, qword [rbx + 0x10]
movsxd r8, esi
je 0x14000131b
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, r10
call fcn.140001cf4
jmp 0x140001334
lea rax, [rsp + 0x48]
mov r9d, 1
mov rdx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x14000133d
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400013ec
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x140004068], 0
mov r13, rcx
jne 0x14000141a
call fcn.1400017a4
cmp qword [0x140004090], 0
jne 0x14000144f
call fcn.140001350
mov rcx, rax
lea r8, [0x1400020a0]
lea rdx, [0x1400020d0]
call fcn.1400019dc
movsxd rcx, dword [rax + 8]
mov rax, qword [rcx + rax + 0xc]
mov qword [0x140004090], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140004088]
xor r15d, r15d
mov rcx, qword [0x140004080]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x140001480
cmp qword [rsi], rbx
je 0x14000152e
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x14000150f
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140004090]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x1400014f5
cmp qword [rdi + rax + 8], r12
jne 0x1400014f5
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
shl rax, 0xc
mov qword [0x140004060], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400014f5
cmp r14, qword [rsp + 0x58]
je 0x140001503
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x14000149b
jmp 0x14000150f
mov rcx, qword [0x140004060]
test rcx, rcx
jne 0x140001525
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x14000146e
jmp 0x14000152e
mov rax, qword [r13 + 8]
mov qword [rax], rcx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000154c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x140004068], 0
mov r13d, ecx
jne 0x14000157a
call fcn.1400017a4
cmp qword [0x140004090], 0
jne 0x1400015af
call fcn.140001350
mov rcx, rax
lea r8, [0x1400020a0]
lea rdx, [0x1400020d0]
call fcn.1400019dc
movsxd rcx, dword [rax + 8]
mov rax, qword [rcx + rax + 0xc]
mov qword [0x140004090], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140004088]
xor r15d, r15d
mov rcx, qword [0x140004080]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x1400015e0
cmp qword [rsi], rbx
je 0x140001682
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x14000166e
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140004090]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x140001654
cmp qword [rdi + rax + 8], r12
jne 0x140001654
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
mov rcx, r13
shl rax, 0xc
mov qword [0x140004060], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001654
cmp r14, qword [rsp + 0x58]
je 0x140001662
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x1400015fb
jmp 0x14000166e
mov rax, qword [0x140004060]
test rax, rax
jne 0x140001682
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x1400015ce
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x60c860
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x60c86d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x60c87d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x60c865
lea eax, [rcx + 1]
jmp 0x60c88b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x60c89e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x60c884
sub eax, 3
jb 0x60c8be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x60c90d
sar eax, 1
movsxd rbp, eax
jb 0x60c8f4
jmp 0x60c8cc
add ebx, ebx
jne 0x60c8ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x60c8f4
inc ecx
add ebx, ebx
jne 0x60c8da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x60c8f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x60c8ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x60c8dc
add ecx, 2
jmp 0x60c8f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0060c822
jmp 0x60c86d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb9200
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x60c959
cmp rsi, rcx
jae 0x60c961
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x60c940
cmp al, 0x8f
ja 0x60c940
cmp byte [rsi - 2], 0xf
je 0x60c946
sub al, 0xe8
cmp al, 1
ja 0x60c92a
cmp rsi, rcx
jae 0x60c961
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x60c930
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x60c961
lodsb al, byte [rsi]
jmp 0x60c940
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x208000]
mov eax, dword [rdi]
or eax, eax
je 0x60c9be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x20c000]
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 0x60c96e
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 0x60c9b8
mov qword [rbx], rax
add rbx, 8
jmp 0x60c98e
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 0x60c9f8
cmp al, 0xef
ja 0x60c9ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x60c9ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x60c9d9
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 0x60ca4c
sub rsp, 0xffffffffffffff80
jmp 0x463440
Function at 0x1800022fc
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor r15d, r15d
xor edx, edx
mov rsi, r9
mov r13d, r8d
mov r12, rcx
mov rdi, r15
mov ebx, 8
call fcn.180003b7c
cmp rax, r15
mov rbp, rax
je 0x1800023e8
cmp rsi, r15
je 0x180002359
xor edx, edx
mov rcx, rsi
call fcn.180003b7c
cmp rax, r15
mov rdi, rax
je 0x1800023d6
mov rcx, r12
call fcn.18000354c
cmp rax, r15
mov rsi, rax
je 0x180002391
mov r9d, 1
mov r8d, r13d
mov rdx, r14
mov rcx, rax
call fcn.1800036dc
mov rcx, qword [0x18000f510]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, r15d
jne 0x1800023bf
lea rdx, [0x180011130]
mov r9, rdi
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp eax, 0x20
cmovg ebx, r15d
cmp rdi, r15
je 0x1800023d6
mov rcx, qword [0x18000f510]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18000f510]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180002568
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov esi, r8d
mov eax, 0x1000
xor ebx, ebx
shr esi, 1
mov r12d, r8d
mov r13, rdx
cmp esi, eax
lea r8d, [rbx + 1]
mov edx, 0xc0000000
cmova esi, eax
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r14, rcx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x18000262c
and qword [rsp + 0x20], rbx
mov ebp, esi
lea r9, [rsp + 0x80]
add rbp, r13
mov r8d, esi
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180002610
and qword [rsp + 0x20], rbx
sub r12d, esi
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180002618
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x1800026a8
and qword [rsp + 0x30], 0
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1800026a0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180002695
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1800026a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800027ec
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xa0
and dword [rax - 0x78], 0
mov rbp, rdx
xor edx, edx
mov rsi, rcx
lea rcx, [rax - 0x74]
lea r8d, [rdx + 0x6c]
call sub.ntdll.dll_memset
xor ebx, ebx
xor ecx, ecx
lea edx, [rbx + 2]
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 0x750
call fcn.1800038f0
test rax, rax
mov rdi, rax
je 0x180002929
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rbp, rbp
je 0x1800028ae
test rax, rax
je 0x180002862
lea rdx, [0x180011510]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rsi
add ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x18000f510]
add eax, ebx
xor edx, edx
lea r8d, [rax + rax + 0x56]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180002917
mov qword [rsp + 0x28], rbp
lea rdx, [0x180011650]
jmp 0x180002903
test rax, rax
je 0x1800028c3
lea rdx, [0x1800114c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
lea ecx, [rbx + rax*2 + 0x24]
lea r8d, [rcx + rcx]
mov rcx, qword [0x18000f510]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180002917
mov qword [rsp + 0x28], rsi
lea rdx, [0x1800116b0]
mov r9, rdi
mov r8, rsi
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x18000f510]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [0x180011628]
test rbx, rbx
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
lea rax, [0x180011638]
mov qword [rsp + 0x50], rbx
cmovne rsi, rax
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x180002955
test rbx, rbx
je 0x18000297b
mov rcx, qword [0x18000f510]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180002ee0
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
mov dword [r11 + 0x18], r8d
push rdi
push r12
push r13
sub rsp, 0x50
xor r13d, r13d
lea rax, [r11 - 0x20]
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
mov qword [r11 - 0x48], rax
mov dword [r11 + 0x18], r13d
mov dword [r11 - 0x24], r13d
mov dword [r11 - 0x28], r13d
mov r12, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r13d
mov ebx, eax
jne 0x18000307b
mov rcx, qword [0x18000f510]
xor edx, edx
mov r8d, 0x104
lea ebx, [r13 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
mov rdi, rax
je 0x180003070
mov rbp, qword [rsp + 0x90]
mov esi, 0x104
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0xea
mov ebx, eax
jne 0x180003006
cmp dword [rsp + 0x40], 0x104
jbe 0x180002fc5
add dword [rsp + 0x80], 1
mov ebx, r13d
jmp 0x180003039
cmp dword [rsp + 0x44], esi
jbe 0x18000305e
mov rcx, qword [0x18000f510]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x44]
mov rcx, qword [0x18000f510]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
mov r12, rax
jne 0x180002fc0
mov ebx, 8
jmp 0x18000305e
cmp eax, r13d
jne 0x180003054
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x80]
mov r8, r12
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.18000299c
cmp eax, r13d
mov ebx, eax
jne 0x180003054
mov rcx, qword [0x18000f548]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x18000305e
jmp 0x180002f6b
cmp ebx, 0x103
cmove ebx, r13d
mov rcx, qword [0x18000f510]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1800034cc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov rdi, rcx
je 0x180003538
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov esi, eax
je 0x180003538
mov rcx, qword [0x18000f510]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180003538
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180003538
mov rcx, qword [0x18000f510]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800035e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x180003695
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov ebx, eax
jne 0x180003640
mov ebx, pe_nt_image_headers64
jmp 0x18000369d
mov rcx, qword [0x18000f510]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180003695
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180003695
cmp ebx, dword [rsp + 0x78]
je 0x180003686
mov ebx, 0x1e
jmp 0x18000369d
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x18000369d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x1800036ac
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1800036c7
test ebx, ebx
je 0x1800036c7
mov rcx, qword [0x18000f510]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1800036dc
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
mov esi, r8d
mov rbp, rdx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rax - 0x28], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180003732
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000376b
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x18000375a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x180003762
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180003784
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov edi, eax
je 0x18000381c
mov rcx, qword [0x18000f510]
lea r8d, [rax + 0x1d]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18000381c
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180003808
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9, rbx
xor edx, edx
lea r8d, [rsi + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180003808
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
lea rdx, [0x180011230]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x18000381c
mov rcx, qword [0x18000f510]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret