joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402a6390
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r12d, 4
mov r10, rcx
lea rbp, [rcx + 0x304d8]
mov edi, r12d
lea rsi, [rsp + 0x10]
nop dword [rax]
movzx edx, byte [rbp]
xor ebx, ebx
mov r11d, edi
mov r9d, edx
mov eax, edx
lea r8d, [rbx + 1]
and eax, 1
shr r9d, 1
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub r11d, eax
test r9d, r9d
je 0x1402a6451
mov r14d, edx
mov r15d, eax
mov eax, r8d
mov edx, r11d
add r8d, r8d
sub rax, r14
and edx, 1
shr r11d, 1
add rax, r15
or r8d, edx
movzx ecx, word [r10 + rax*2 + 0x34146]
mov eax, edx
neg eax
shr rcx, 4
sar rax, 4
and eax, 0x7f
xor rcx, rax
add ebx, dword [r10 + rcx*4 + 0x324d4]
dec r9d
jne 0x1402a6411
inc edi
mov dword [rsi], ebx
inc rbp
add rsi, r12
cmp edi, 0x80
jb 0x1402a63e0
lea rsi, [rsp]
lea rbx, [r10 + 0x32f84]
lea rdi, [r10 + 0x33f48]
sub rsi, r10
lea r14, [r10 + 0x3338c]
sub rsi, 0x33384
nop word [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x33bc8], r11d
jbe 0x1402a64ee
nop dword [rax]
mov eax, r11d
xor r9d, r9d
or eax, 0x40
cmp eax, 1
je 0x1402a64de
nop
mov edx, eax
mov ecx, eax
shr eax, 1
and edx, 1
shr rcx, 1
movzx r8d, word [rdi + rcx*2]
neg edx
sar rdx, 4
shr r8, 4
and edx, 0x7f
xor r8, rdx
add r9d, dword [r10 + r8*4 + 0x324d4]
cmp eax, 1
jne 0x1402a64b0
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x33bc8]
jb 0x1402a64a0
mov edx, 0xe
cmp dword [r10 + 0x33bc8], edx
jbe 0x1402a651d
nop dword [rax]
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x33bc8]
jb 0x1402a6500
mov eax, dword [rbx]
lea r8, [r10 + 0x304d8]
lea rdx, [r14 + 8]
mov dword [r14 - 8], eax
mov eax, dword [rbx + 4]
mov r9d, 0x7c
mov dword [r14 - 4], eax
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov eax, dword [rbx + 0xc]
mov dword [r14 + 4], eax
nop dword [rax + rax]
movzx eax, byte [r8]
lea rdx, [rdx + 4]
lea r8, [r8 + 1]
mov ecx, dword [rbx + rax*4]
add ecx, dword [rdx + rsi - 4]
mov dword [rdx - 4], ecx
dec r9
jne 0x1402a6550
sub rdi, 0xffffffffffffff80
add rbx, 0x100
add r14, 0x200
sub rsi, 0x200
dec r12
jne 0x1402a6490
mov dword [r10 + 0x3d340], r12d
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1402a76b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov dword [rcx + 0x3c], 0x20
mov qword [rcx + 0x68], 1
mov qword [rcx + 0x60], 4
lea r8, [rcx + 0x84]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x28], rax
nop dword [rax + rax]
mov edx, eax
mov ecx, eax
inc eax
shr ecx, 1
and edx, 1
lea r8, [r8 + 4]
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x1402a76e0
ret
Function at 0x1402ae4c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x48], rdi
jne 0x1402ae54e
lea rax, [rsp + 0x30]
mov r9, rcx
lea r8, [0x1402aedd0]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
test rax, rax
je 0x1402ae54e
lea rcx, [rbx + 0x80]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0xb0], edi
jne 0x1402ae536
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
inc dword [rbx + 0xb0]
lea rcx, [rbx + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x58]
cmp qword [rbx + 0x48], rdi
setne al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1402aede0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, qword [rdi + 0x40]
lea r14, [rdi + 0x28]
mov qword [rsp + 0x68], rdx
mov rbp, rax
mov qword [rsp + 0x60], rax
xor r15d, r15d
cmp qword [rdi + 0x20], 8
jb 0x1402aee42
mov rcx, qword [rdi + 8]
jmp 0x1402aee46
lea rcx, [rdi + 8]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1402aee96
mov rcx, qword [rdi + 0x40]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1402aef07
xor eax, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1402aeedd
lea rdx, [rsp + 0x60]
lea ecx, [rax + 2]
or r9d, 0xffffffff
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
je 0x1402aeefe
mov rdx, rbx
mov rcx, rdi
call fcn.1402b03a0
test al, al
jne 0x1402aee35
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402aee35
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [rdi + 0xb0]
jne 0x1402aef29
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1402af7c0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, vtable.HitmanProPipeClient.0
mov qword [rcx], rax
mov qword [rcx + 0x58], 7
xor edi, edi
mov qword [rcx + 0x50], rdi
mov word [rcx + 0x40], di
mov qword [rcx + 0x78], 7
mov qword [rcx + 0x70], rdi
mov word [rcx + 0x60], di
mov qword [rcx + 0x98], 7
mov qword [rcx + 0x90], rdi
mov word [rcx + 0x80], di
add rcx, 0xb8
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdi
mov word [rcx], di
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
mov dword [rbx + 0xa0], edi
mov qword [rbx + 0xa8], rdi
mov qword [rbx + 0x38], rdi
mov dword [rbx + 0xb0], 0xffffffff
lea r8d, [rdi + 0x12]
lea rdx, str..pipehitmanpro
call fcn.1400ce180
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x30], rax
mov byte [rbx + 0xe8], dil
xor eax, eax
mov qword [rbx + 0xe9], rax
mov qword [rbx + 0xf1], rax
mov qword [rbx + 0xf9], rax
mov dword [rbx + 0x101], eax
mov qword [rbx + 0xe0], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x1402afdd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xd8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1402af950
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0xd8]
lea rax, vtable.HitmanProPipeClient.0
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x28]
xor r9d, r9d
mov r8d, 0x1f4
call qword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
cmp eax, 0x102
jne 0x1402af997
mov rcx, qword [rbx + 0xd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0xd0], 8
jb 0x1402af9ce
mov rcx, qword [rbx + 0xb8]
call fcn.1402150f0
xor edi, edi
mov qword [rbx + 0xd0], 7
mov qword [rbx + 0xc8], rdi
mov word [rbx + 0xb8], di
cmp qword [rbx + 0x98], 8
jb 0x1402af9ff
mov rcx, qword [rbx + 0x80]
call fcn.1402150f0
mov qword [rbx + 0x98], 7
mov qword [rbx + 0x90], rdi
mov word [rbx + 0x80], di
cmp qword [rbx + 0x78], 8
jb 0x1402afa28
mov rcx, qword [rbx + 0x60]
call fcn.1402150f0
mov qword [rbx + 0x78], 7
mov qword [rbx + 0x70], rdi
mov word [rbx + 0x60], di
cmp qword [rbx + 0x58], 8
jb 0x1402afa48
mov rcx, qword [rbx + 0x40]
call fcn.1402150f0
mov qword [rbx + 0x58], 7
mov qword [rbx + 0x50], rdi
mov word [rbx + 0x40], di
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1402afb40
Capabilities:
Create process on windows
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x10f0
call fcn.1402c8f60
sub rsp, rax
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x10e0], rax
cmp qword [rcx + 0xa8], 0
mov rdi, rdx
mov rbx, rcx
je 0x1402afb92
lea rdx, str.Already_running.
add rcx, 0x40
mov r8d, 0x10
call fcn.1400ce180
xor al, al
jmp 0x1402afcce
call fcn.1402afab0
cmp qword [rax + 0x10], 0
jne 0x1402afbbb
lea rcx, [rbx + 0x40]
lea rdx, str.No_path_to_HitmanPro_found.
mov r8d, 0x1b
call fcn.1400ce180
xor al, al
jmp 0x1402afcce
mov rcx, rbx
call fcn.1402afab0
cmp qword [rax + 0x18], 8
jb 0x1402afbcd
mov rax, qword [rax]
lea rdx, str.__ls___ls
lea rcx, [rsp + 0xe0]
mov r9, rdi
mov r8, rax
call fcn.1402b0120
xor eax, eax
xor edi, edi
lea rcx, [rsp + 0x78]
lea r8d, [rdi + 0x60]
xor edx, edx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.1402bfa30
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1402afc6e
lea rcx, [rbx + 0x40]
lea r8d, [rdi + 0x15]
lea rdx, str.CreateProcess_failed.
call fcn.1400ce180
xor al, al
jmp 0x1402afcce
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rbx + 0xe0]
mov dword [rbx + 0xa0], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0xa8], rax
test rcx, rcx
je 0x1402afca3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rax, [rsp + 0x68]
lea r8, [0x1402afcf0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xe0], rax
mov al, 1
mov rcx, qword [rsp + 0x10e0]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x1110]
add rsp, 0x10f0
pop rdi
ret
Function at 0x1402afdf0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.1402c8f60
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10b8], rbx
mov qword [rsp + 0x10c0], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
lea r14, vtable.HitmanProPipeData.0
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.1402b0010
mov rdi, rax
test rax, rax
jne 0x1402afe94
nop dword [rax + rax]
mov edx, 0x14d
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1402affd1
call fcn.1402b0010
mov rdi, rax
test rax, rax
je 0x1402afe70
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8d, 0x1000
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402affc3
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1402afe51
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x60], r14
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], eax
cmp dword [rbp - 0x80], 0x50504d48
jne 0x1402aff89
movzx eax, word [rbp - 0x78]
cmp ax, 1
jne 0x1402aff6a
movups xmm0, xmmword [rbp - 0x6c]
movups xmmword [rbx + 0xe9], xmm0
movsd xmm1, qword [rbp - 0x5c]
movsd qword [rbx + 0xf9], xmm1
mov eax, dword [rbp - 0x54]
mov dword [rbx + 0x101], eax
mov byte [rbx + 0xe8], 1
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1402aff89
mov r8, rbx
mov edx, dword [rbp - 0x74]
mov ecx, dword [rbp - 0x70]
call rax
movzx eax, word [rbp - 0x78]
cmp ax, 2
jne 0x1402aff89
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1402aff89
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov ecx, dword [rbp - 0x74]
call rax
nop
cmp byte [rsp + 0x68], 0
je 0x1402aff99
lea rcx, [rbp - 0x80]
call fcn.1402b7350
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8d, 0x1000
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1402afee3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x1402afe51
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1402b0010
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea rcx, str..pipehitmanpro
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1402b00be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x1402b00f5
lea rcx, str..pipehitmanpro
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1402b00f5
mov qword [rsp + 0x30], rdi
lea rcx, str..pipehitmanpro
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402b0061
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x40], 2
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
cmp rbx, 0xffffffffffffffff
jne 0x1402b00be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1402b010e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1402b00dd

Function at 0x1402b03a0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rbp, rcx
mov ecx, 0x80
call fcn.1402b6dbc
mov rbx, rax
mov qword [rsp + 0x38], rax
xor edi, edi
test rax, rax
je 0x1402b0409
xor edx, edx
mov r8d, 0x80
mov rcx, rax
call fcn.1402bfa30
mov rcx, rbx
call fcn.1402b01d0
mov rbx, rax
jmp 0x1402b040c
mov rbx, rdi
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x1402b0480]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1402b044a
mov r8, qword [rbx]
lea edx, [rax + 1]
mov rcx, rbx
call qword [r8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
setne al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1402b0690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rdx
mov rbp, rcx
mov r15d, 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, r15d
xor dil, dil
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r8d, dword [r14 + 0x18]
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rbp + 0x10]
mov rsi, rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x1402b074a
cmp eax, 0x3e5
jne 0x1402b0775
mov rax, qword [rbp + 0x18]
lea rdx, [rsp + 0x58]
lea ecx, [rbx + 2]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1402b0775
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1402b0775
mov ecx, dword [r14 + 0x18]
movzx edi, dil
cmp dword [rsp + 0x50], ecx
cmove edi, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1402b6d40
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1402bb0a4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1402baf0c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400bf270]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400bf280]
mov dword [rax], 1
mov rax, qword [0x1400bf290]
mov dword [rax], 1
mov rax, qword [0x1400bf220]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1400bf260]
mov dword [0x1400e500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400bf350]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400bf330]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400be640]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e

Function at 0x14000b360
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x14000b3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400e50a4]
mov rbx, rcx
test esi, esi
jle 0x14000b500
mov rax, qword [0x1400e50a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b41b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b4a3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b400
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000b522
mov rax, qword [0x1400e50a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e50a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b507
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b49c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b4b0
add dword [0x1400e50a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e50a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b49c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x14000b428
mov rax, qword [0x1400e50a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000bab0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1400e5100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e50e0]
test rbx, rbx
je 0x14000bb15
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000bb0c
test eax, eax
jne 0x14000bb0c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000baf0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000bd50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bd68
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bd70
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret