joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003e30
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800043c0
mov qword [rsp + 0x28], 0
cmp qword [0x18002ec98], 0
jne 0x180003e78
cmp qword [0x18002ec90], 0
je 0x180003e78
mov rax, qword [0x18002ec90]
mov qword [0x18002ec98], rax
cmp qword [0x18002ec98], 0
je 0x180003f1e
mov rax, qword [0x18002ec98]
cmp qword [rax + 0x10], 0
je 0x180003f1e
mov rax, qword [0x18002ec98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003f1e
mov rax, qword [0x18002ec98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003f1e
mov rax, qword [0x18002ec98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180003ee4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180003eeb
xor eax, eax
jmp 0x180004099
mov rax, qword [0x18002ec98]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180021510
mov rax, qword [rsp + 0x28]
jmp 0x180004099
mov rax, qword [0x18002ec90]
mov qword [0x18002ec98], rax
jmp 0x180003f40
mov rax, qword [0x18002ec98]
mov rax, qword [rax + 8]
mov qword [0x18002ec98], rax
cmp qword [0x18002ec98], 0
je 0x180003f8d
cmp qword [0x18002ec98], 0
je 0x180003f8b
mov rax, qword [0x18002ec98]
cmp qword [rax + 0x10], 0
je 0x180003f8b
mov rax, qword [0x18002ec98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003f8b
mov rax, qword [0x18002ec98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003f8b
jmp 0x180003ebc
jmp 0x180003f2e
mov rcx, qword [rsp + 0x60]
call fcn.180006320
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800040a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004097
mov rax, qword [rsp + 0x48]
mov qword [0x18002ec98], rax
mov rax, qword [0x18002ec98]
mov dword [rax], 0x52727464
mov rax, qword [0x18002ec98]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002ec98]
mov rcx, qword [0x18002ec90]
mov qword [rax + 8], rcx
mov rax, qword [0x18002ec98]
mov qword [0x18002ec90], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002ec98]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004048
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004082
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000403e
mov rax, qword [0x18002ec98]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180003ebc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180006850
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180021510
jmp 0x180006898
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x1800068b8
jmp 0x180006955
cmp dword [rsp + 0x68], 0x1000
jne 0x1800068dd
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1800068dd
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1800068df
jmp 0x180006883
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180006915
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180006915
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18000691a
jmp 0x180006883
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180006883
mov rax, qword [rsp + 0x20]
jmp 0x180006957
xor eax, eax
add rsp, 0x88
ret

Function at 0x180007610
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x18002e040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000765f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000776d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.180021510
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x18000769e
xor eax, eax
jmp 0x18000776d
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1800076d0
xor eax, eax
jmp 0x18000776d
movzx eax, word [rsp + 0x70]
cmp eax, 0x5a4d
jne 0x1800076f7
mov eax, dword [rsp + 0xac]
cmp rax, qword [rsp + 0x50]
ja 0x1800076f7
mov eax, dword [rsp + 0xac]
cmp rax, 0x40
jae 0x180007706
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000776d
movsxd rax, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov r8, qword [rsp + 0xe0]
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x180007749
xor eax, eax
jmp 0x18000776d
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0x4550
je 0x180007768
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000776d
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000b990
add rsp, 0xc8
ret
Function at 0x1800093b0
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0xd8], 0
jne 0x1800093e2
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xc8], 0
jne 0x18000940c
lea rax, [rsp + 0x58]
mov qword [rsp + 0xc8], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180021510
mov eax, dword [rsp + 0xa8]
or eax, 4
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0xd8]
test eax, eax
jne 0x18000948b
xor eax, eax
jmp 0x18000956f
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call fcn.180009fa0
test eax, eax
jne 0x180009518
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rax + 0x10]
call fcn.1800099e0
test eax, eax
jne 0x180009518
mov edx, 0xffffffff
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000956f
mov eax, dword [rsp + 0xa8]
and eax, 4
test eax, eax
jne 0x180009538
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rax, [rsp + 0x58]
cmp qword [rsp + 0xc8], rax
jne 0x18000956a
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x78
ret
Function at 0x180009580
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0xd8], 0
jne 0x1800095b2
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xc8], 0
jne 0x1800095dc
lea rax, [rsp + 0x58]
mov qword [rsp + 0xc8], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180021510
mov eax, dword [rsp + 0xa8]
or eax, 4
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [rsp + 0xd8]
test eax, eax
jne 0x18000965b
xor eax, eax
jmp 0x18000973f
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov r8d, 1
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call fcn.180009fa0
test eax, eax
jne 0x1800096e8
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rax + 0x10]
call fcn.180009f70
test eax, eax
jne 0x1800096e8
mov edx, 0xffffffff
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000973f
mov eax, dword [rsp + 0xa8]
and eax, 4
test eax, eax
jne 0x180009708
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rax, [rsp + 0x58]
cmp qword [rsp + 0xc8], rax
jne 0x18000973a
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x78
ret
Function at 0x180009750
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0x26ac
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
cmp qword [0x18002ecd8], 0
jne 0x1800097ae
mov dword [rsp + 0x20], 0x26b1
jmp 0x180009906
mov rax, qword [0x18002ecd8]
mov r8d, dword [rax + 4]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800097e5
mov dword [rsp + 0x20], 0x26ad
jmp 0x180009906
mov rax, qword [0x18002ecd8]
mov eax, dword [rax + 8]
mov qword [rsp + 0x50], rax
mov eax, 8
mov rcx, qword [rsp + 0x50]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18000bdcc
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [0x18002ecd8]
mov eax, dword [rax]
sub rax, 0x10
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 0
jmp 0x180009848
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [0x18002ecd8]
mov eax, dword [rax + 8]
cmp dword [rsp + 0x28], eax
jae 0x1800098d4
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x38]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [0x18002ecd8]
lea rcx, [rdx + rcx + 0xc]
lea r8, [rsp + 0x48]
mov edx, eax
call fcn.180007c00
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jge 0x1800098a2
mov dword [rsp + 0x20], 0x26ae
jmp 0x180009906
mov eax, dword [rsp + 0x24]
mov rcx, qword [0x18002ecd8]
lea rax, [rcx + rax + 0xc]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rcx*8], rax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x48]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x24], eax
jmp 0x18000983e
mov rax, qword [0x18002ecd8]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.180009fa0
test eax, eax
jne 0x1800098fe
mov dword [rsp + 0x20], 0x26af
jmp 0x180009906
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x30], 0
je 0x18000992b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18000bd48
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180009a10
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x328
mov rax, qword [0x18002e040]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x60], 0
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
lea rcx, [0x180022808]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x338], 1
jb 0x180009a82
cmp dword [rsp + 0x338], 0x1000
jbe 0x180009a97
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180009c8d
mov r9, qword [rsp + 0x340]
mov r8d, dword [rsp + 0x338]
mov edx, dword [rsp + 0x330]
lea rcx, [rsp + 0x60]
call fcn.180006f80
test eax, eax
jne 0x180009ac6
jmp 0x180009c8d
cmp dword [rsp + 0x54], 0
je 0x180009ad9
mov eax, dword [rsp + 0x54]
cmp rax, 0x104
jb 0x180009ae3
jmp 0x180009c8d
lea r8, [0x180022810]
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.180006510
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180009b11
jmp 0x180009c8d
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0xc]
mov r9, rax
lea r8, [0x180022828]
mov edx, 0x104
lea rcx, [rsp + 0x200]
call fcn.180007c70
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180009b55
jmp 0x180009c8d
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.180021510
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.180021510
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xf0]
call qword [rsp + 0x348]
test eax, eax
je 0x180009c8d
mov rax, qword [rsp + 0x60]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x60]
lea rdx, [0x1800228b0]
mov rcx, qword [rsp + 0x68]
call fcn.180008fd0
test eax, eax
jne 0x180009c31
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009c8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x58], 0x1f4
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
je 0x180009c85
jmp 0x180009c8d
mov dword [rsp + 0x5c], 1
lea rcx, [rsp + 0x60]
call fcn.1800075d0
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.18000b990
add rsp, 0x328
ret
Function at 0x180009cc0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x528
mov rax, qword [0x18002e040]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x60], 0
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
lea rcx, str.WINDIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x538], 1
jb 0x180009d32
cmp dword [rsp + 0x538], 0x1000
jbe 0x180009d47
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x180009f48
mov r9, qword [rsp + 0x540]
mov r8d, dword [rsp + 0x538]
mov edx, dword [rsp + 0x530]
lea rcx, [rsp + 0x60]
call fcn.180006f80
test eax, eax
jne 0x180009d76
jmp 0x180009f48
cmp dword [rsp + 0x54], 0
je 0x180009d89
mov eax, dword [rsp + 0x54]
cmp rax, 0x104
jb 0x180009d93
jmp 0x180009f48
lea r8, str._syswow64_rundll32.exe
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.180007b80
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180009dc1
jmp 0x180009f48
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0xc]
mov r9, rax
lea r8, str.rundll32.exe___hs__1
mov edx, 0x104
lea rcx, [rsp + 0x300]
call fcn.180007d00
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180009e05
jmp 0x180009f48
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.180021510
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.180021510
mov dword [rsp + 0x80], 0x68
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0xf0]
call qword [rsp + 0x548]
test eax, eax
je 0x180009f48
mov rax, qword [rsp + 0x60]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x60]
lea rdx, [0x1800228b0]
mov rcx, qword [rsp + 0x68]
call fcn.180008fd0
test eax, eax
jne 0x180009ee1
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180009f48
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x58], 0x1f4
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
je 0x180009f40
jmp 0x180009f48
mov dword [rsp + 0x5c], 1
lea rcx, [rsp + 0x60]
call fcn.1800075d0
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.18000b990
add rsp, 0x528
ret
Function at 0x1800198d4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180019904
xor eax, eax
jmp 0x1800199c7
mov rbp, rbx
cmp word [rax], si
je 0x180019929
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180019910
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001990c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800197f4
movsxd r14, eax
test eax, eax
jne 0x180019967
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800198fd
mov rcx, r14
call fcn.180015b40
mov rdi, rax
test rax, rax
jne 0x180019980
xor ecx, ecx
call fcn.180015b04
jmp 0x18001995c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800197f4
test eax, eax
jne 0x1800199b1
mov rcx, rdi
call fcn.180015b04
jmp 0x1800199bb
xor ecx, ecx
call fcn.180015b04
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180020b60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180020b88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180020b88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001b88
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
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 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0xcc2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00cc21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xcc2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcc206f
add dl, dl
jne 0xcc2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcc20f6
xor eax, eax
add dl, dl
jne 0xcc20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcc21ad
add dl, dl
jne 0xcc20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xcc20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xcc207e
mov eax, 1
add dl, dl
jne 0xcc2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcc2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcc20fb
sub eax, ebx
mov ebx, 1
jne 0xcc214c
mov ecx, 1
add dl, dl
jne 0xcc212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcc213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcc2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcc207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcc2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcc2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcc215d
cmp eax, 0x7d00
jae 0xcc219b
cmp eax, 0x500
jb 0xcc2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcc207e
cmp eax, 0x7f
ja 0xcc219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcc207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xcc21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xcc207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20