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

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.18000f870
test eax, eax
jne 0x180008afa
cmp ebx, 1
jne 0x180008afa
call fcn.1800033f0
xor eax, eax
lea r8, [0x1800042b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180008db0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x88]
sub rax, 0x10000
mov rcx, rax
call fcn.1800090c0
mov qword [rsp + 0x30], rax
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
lea rcx, str._Looking_for_free_region_in__p.._p_from__p:_n
call fcn.18000bf90
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rax
jbe 0x180008f32
mov rdx, qword [rsp + 0x30]
lea rcx, str.__Try__p_n
call fcn.18000bf90
mov rax, qword [0x180053050]
cmp qword [rsp + 0x30], rax
jb 0x180008e4c
mov rax, qword [0x180053058]
cmp qword [rsp + 0x30], rax
ja 0x180008e4c
mov rax, qword [rsp + 0x30]
sub rax, 0x8000000
mov qword [rsp + 0x30], rax
jmp 0x180008dfa
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180015b40
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180008e7d
jmp 0x180008f32
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx - 1]
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
lea rcx, str.__Try__p____p.._p__6lx_n
call fcn.18000bf90
cmp dword [rsp + 0x60], 0x10000
jne 0x180008f15
cmp qword [rsp + 0x58], 0x10000
jb 0x180008f15
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180008ef3
mov rax, qword [rsp + 0x38]
jmp 0x180008f34
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180008f03
xor eax, eax
jmp 0x180008f34
mov rax, qword [rsp + 0x30]
sub rax, 0x10000
mov qword [rsp + 0x30], rax
jmp 0x180008f2d
mov rax, qword [rsp + 0x48]
sub rax, 0x10000
mov rcx, rax
call fcn.1800090c0
mov qword [rsp + 0x30], rax
jmp 0x180008dfa
xor eax, eax
add rsp, 0x78
ret
Function at 0x180008f40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rcx, qword [rsp + 0x80]
call fcn.180009100
mov qword [rsp + 0x30], rax
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
lea rcx, [0x18003ccd0]
call fcn.18000bf90
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jae 0x1800090ad
mov rax, qword [0x180053050]
cmp qword [rsp + 0x30], rax
jb 0x180008fc2
mov rax, qword [0x180053058]
cmp qword [rsp + 0x30], rax
ja 0x180008fc2
mov rax, qword [rsp + 0x30]
add rax, 0x8000000
mov qword [rsp + 0x30], rax
jmp 0x180008f81
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180015b40
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180008ff3
jmp 0x1800090ad
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx - 1]
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
lea rcx, [0x18003cd00]
call fcn.18000bf90
cmp dword [rsp + 0x60], 0x10000
jne 0x18000908b
cmp qword [rsp + 0x58], 0x10000
jb 0x18000908b
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x180009069
mov rax, qword [rsp + 0x38]
jmp 0x1800090af
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180009079
xor eax, eax
jmp 0x1800090af
mov rax, qword [rsp + 0x30]
add rax, 0x10000
mov qword [rsp + 0x30], rax
jmp 0x1800090a8
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180009100
mov qword [rsp + 0x30], rax
jmp 0x180008f81
xor eax, eax
add rsp, 0x78
ret
Function at 0x18000a150
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000a197
xor al, al
jmp 0x18000a239
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18000a1c1
xor al, al
jmp 0x18000a239
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18000a231
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18000a231
mov al, 1
jmp 0x18000a239
jmp 0x18000a237
xor al, al
add rsp, 0x78
ret

Function at 0x18000a590
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180054400]
mov qword [rsp + 0x28], rax
jmp 0x18000a5b0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000a5df
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000a5dd
call sub.KERNEL32.dll_GetLastError
jmp 0x18000a5e1
jmp 0x18000a5a2
xor eax, eax
add rsp, 0x38
ret
Function at 0x18000b2a0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180054418], eax
je 0x18000b2bb
mov eax, 0x10dd
jmp 0x18000b3e0
mov rax, qword [0x180054430]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000b365
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18000b330
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18000b330
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800098a0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180013324
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18000b2c7
mov qword [0x180054430], 0
call fcn.18000a300
mov rax, qword [0x180054428]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18000b3c9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180013324
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18000b381
mov qword [0x180054428], 0
mov dword [0x180054418], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18000bdb0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18005441c], 0
je 0x18000bdcd
mov eax, dword [0x18005441c]
jmp 0x18000be95
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18000bde0
xor eax, eax
jmp 0x18000be95
mov ecx, 0x10
call fcn.1800132e8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000be4f
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18000be33
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180013324
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18005441c], eax
mov qword [0x180054420], 0
int3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18000be6a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
int3
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180054428]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180054428], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000c7b0
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 [0x1800530b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r8d, 0xf8
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call fcn.180015b40
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000c813
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000c997
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.180015b40
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call sub.KERNEL32.dll_VirtualQueryEx
test rax, rax
jne 0x18000c851
xor eax, eax
jmp 0x18000c997
mov qword [rsp + 0x20], 0
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x18000c8a7
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x30]
add rcx, 0x40
mov r9d, eax
mov r8, rcx
mov rdx, qword [rsp + 0x30]
lea rcx, [0x18003d1e0]
call fcn.18000bf90
xor eax, eax
jmp 0x18000c997
movzx eax, word [rsp + 0x70]
cmp eax, 0x5a4d
jne 0x18000c8ce
mov eax, dword [rsp + 0xac]
cmp rax, qword [rsp + 0x50]
ja 0x18000c8ce
mov eax, dword [rsp + 0xac]
cmp rax, 0x40
jae 0x18000c8df
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000c997
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 sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x18000c966
call sub.KERNEL32.dll_GetLastError
movsxd rcx, dword [rsp + 0xac]
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx + rcx + 0xf8]
movsxd rdx, dword [rsp + 0xac]
mov r8, qword [rsp + 0x30]
add r8, rdx
mov rdx, r8
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8, rcx
lea rcx, str.ReadProcessMemory_inh__p.._p:_p__failed:__lu_n
call fcn.18000bf90
xor eax, eax
jmp 0x18000c997
mov rax, qword [rsp + 0xe0]
cmp dword [rax], 0x4550
je 0x18000c984
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18000c997
movsxd rax, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180013440
add rsp, 0xc8
ret
Function at 0x18000f290
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 0x18000f2c2
lea rax, [0x180012137]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xc8], 0
jne 0x18000f2ec
lea rax, [rsp + 0x58]
mov qword [rsp + 0xc8], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180015b40
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 0x18000f36b
xor eax, eax
jmp 0x18000f449
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.18000ffe0
test eax, eax
jne 0x18000f3f5
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rax + 0x10]
call fcn.18000f910
test eax, eax
jne 0x18000f3f5
mov edx, 0xffffffff
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call sub.KERNEL32.dll_TerminateProcess
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x18000f449
mov eax, dword [rsp + 0xa8]
and eax, 4
test eax, eax
jne 0x18000f414
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
lea rax, [rsp + 0x58]
cmp qword [rsp + 0xc8], rax
jne 0x18000f444
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
add rsp, 0x78
ret
Function at 0x18000f450
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 0x18000f482
lea rax, [0x18001213d]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xc8], 0
jne 0x18000f4ac
lea rax, [rsp + 0x58]
mov qword [rsp + 0xc8], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180015b40
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 0x18000f52b
xor eax, eax
jmp 0x18000f609
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.18000ffe0
test eax, eax
jne 0x18000f5b5
mov r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rax + 0x10]
call fcn.18000ffb0
test eax, eax
jne 0x18000f5b5
mov edx, 0xffffffff
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call sub.KERNEL32.dll_TerminateProcess
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x18000f609
mov eax, dword [rsp + 0xa8]
and eax, 4
test eax, eax
jne 0x18000f5d4
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
lea rax, [rsp + 0x58]
cmp qword [rsp + 0xc8], rax
jne 0x18000f604
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
add rsp, 0x78
ret
Function at 0x180011a60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x180011a8d
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180011aad
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011c26
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x180011ae4
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011c26
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180011b02
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011c26
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x180011b2e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x180011c0a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.18001fc10
test eax, eax
jne 0x180011c05
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x180011b93
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x180011b95
jmp 0x180011c0a
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x180011bdb
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x180011bdd
jmp 0x180011c0a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180011bf7
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180011c26
jmp 0x180011b24
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180011c26
add rsp, 0x78
ret
Function at 0x180011c30
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.180015b40
jmp 0x180011c78
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180011c97
jmp 0x180011d3b
cmp dword [rsp + 0x68], 0x1000
jne 0x180011cbc
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180011cbc
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180011cbe
jmp 0x180011c63
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180011cf4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180011cf4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180011cf9
jmp 0x180011c63
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 0x180011c63
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x180011d3d
xor eax, eax
add rsp, 0x88
ret

Function at 0x180011f90
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180015b40
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180011fda
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800120a2
cmp dword [rsp + 0x60], 0x1000
jne 0x180011fff
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x180011fff
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180012010
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800120a2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180012037
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800120a2
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18001206b
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800120a2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180012086
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800120a2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1800120a2
add rsp, 0x78
ret
Function at 0x140011109
Capabilities:
Execute command

Disassembly:
jmp 0x140011ac0
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x140025016]
call fcn.1400113d4
lea rcx, [0x14001c4d8]
call fcn.1400111c2
lea rcx, str.__________________n
call fcn.1400111c2
lea rcx, str.__1.C
call fcn.1400111c2
lea rcx, str.__2.C
call fcn.1400111c2
lea rcx, str.__3.C
call fcn.1400111c2
lea rcx, str.__4.
call fcn.1400111c2
lea rcx, str.__0.
call fcn.1400111c2
lea rcx, str.__________________n
call fcn.1400111c2
lea rcx, [0x14001c5b8]
call fcn.1400111c2
lea rdx, [rbp + 4]
lea rcx, [0x14001c5c4]
call fcn.140011249
lea rcx, [0x14001c5c8]
call fcn.1400111c2
cmp dword [rbp + 4], 0
je 0x140011c2b
cmp dword [rbp + 4], 1
jne 0x140011bb6
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.14001141f
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
jmp 0x140011c22
cmp dword [rbp + 4], 2
jne 0x140011bdc
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [0x14001c5d0]
call fcn.1400111c2
call fcn.140011384
jmp 0x140011c22
cmp dword [rbp + 4], 3
jne 0x140011bf6
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.140011203
jmp 0x140011c22
cmp dword [rbp + 4], 4
jne 0x140011c10
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.1400111cc
jmp 0x140011c22
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.140011109
xor eax, eax
jmp 0x140011c2b
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bd80]
call fcn.140011366
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400111cc
Capabilities:
Execute command

Disassembly:
jmp 0x140012460
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x140025016]
call fcn.1400113d4
lea rcx, str.__
call fcn.1400111c2
lea rcx, str.___________n
call fcn.1400111c2
lea rcx, [0x14001c878]
call fcn.1400111c2
lea rcx, [0x14001c888]
call fcn.1400111c2
lea rcx, [0x14001c898]
call fcn.1400111c2
lea rcx, [0x14001c8a8]
call fcn.1400111c2
lea rcx, str.___________n
call fcn.1400111c2
lea rcx, [0x14001c5b8]
call fcn.1400111c2
lea rdx, [rbp + 4]
lea rcx, [0x14001c5c4]
call fcn.140011249
lea rcx, [0x14001c5c8]
call fcn.1400111c2
cmp dword [rbp + 4], 1
jne 0x140012566
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [0x14001c8b8]
call fcn.1400111c2
lea rcx, [0x14001c8c8]
call fcn.1400111c2
lea rcx, [0x14001c900]
call fcn.1400111c2
lea rcx, [0x14001c970]
call fcn.1400111c2
call fcn.1400111cc
jmp 0x1400125f6
cmp dword [rbp + 4], 2
jne 0x1400125bc
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._____________
call fcn.1400111c2
lea rcx, [0x14001c9f0]
call fcn.1400111c2
lea rcx, [0x14001ca20]
call fcn.1400111c2
lea rcx, [0x14001ca50]
call fcn.1400111c2
lea rcx, str.
call fcn.1400111c2
call fcn.1400111cc
jmp 0x1400125f6
cmp dword [rbp + 4], 3
jne 0x1400125e2
lea rcx, [0x14001caa8]
call fcn.1400111c2
lea rcx, [0x14001c5cc]
call qword [sym.imp.ucrtbased.dll_system]
call fcn.140011109
jmp 0x1400125f6
cmp dword [rbp + 4], 0
jne 0x1400125f6
lea rcx, [0x14001cae0]
call fcn.1400111c2
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001c090]
call fcn.140011366
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret