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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rsi, rcx
mov r9, qword [rdx + 0x10]
mov r8, rdx
jb 0x1400b1bd3
mov r8, qword [rdx]
xor ecx, ecx
movabs rdi, 0xcbf29ce484222325
add r9, r9
je 0x1400b1c04
movabs r10, 0x100000001b3
nop
movzx eax, byte [rcx + r8]
inc rcx
xor rdi, rax
imul rdi, r10
cmp rcx, r9
jb 0x1400b1bf0
mov r8, rdx
mov r9, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140099ec0
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1400b1ca7
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x18]
and rcx, rdi
shl rcx, 4
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x1400b1c5b
cmp rax, rbx
jne 0x1400b1c51
mov rax, qword [rsi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x1400b1c66
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x1400b1c66
cmp rax, rbx
jne 0x1400b1c66
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x10]
dec qword [rsi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.140002d40
mov edx, 0x30
mov rcx, rbx
call fcn.1400f35f0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b3a20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400b3ae8
lea edi, [rax + 1]
mov ecx, edi
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.1400f3640
mov rbp, rax
mov qword [rsp + 0x28], rax
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400b3ad6
inc rsi
cmp word [rbp + rsi*2], 0
jne 0x1400b3a94
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.1400021f0
nop
test rbp, rbp
je 0x1400b3b06
mov edx, 2
mov rcx, rbp
call fcn.1400f35f0
jmp 0x1400b3b06
test rbp, rbp
je 0x1400b3ae8
mov edx, 2
mov rcx, rbp
call fcn.1400f35f0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400f2e00
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400b9890
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.1400f5c20
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140050b50
nop
lea rdx, str.err:0x
lea rcx, [rsp + 0x70]
call fcn.140006030
mov rbx, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov ecx, dword [rdx + rax + 0x18]
and ecx, 0xfffff9ff
bts ecx, 0xb
mov dword [rdx + rax + 0x18], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14006b2e0
nop
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov rcx, qword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400b997d
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x1400b997d
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x1400b99ae
test cl, 4
jne 0x1400b99a4
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400b99a4
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1400b99ae
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1400b99be
lea rcx, [rsp + 0x28]
call fcn.1400078c0
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001c430
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400b9a05
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b99ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b9a30
call fcn.1400f35f0
nop
lea rcx, [rsp + 0x60]
call fcn.140036c50
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400f2e00
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400f9bf0
nop
int3

Function at 0x1400bad30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400bad72
mov ecx, 0x19
int 0x29
test byte [rsp + 0x44], 0x44
je 0x1400badcd
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
mov ecx, r9d
neg rcx
and rcx, rbx
lea edx, [r9 - 1]
mov eax, edx
and edx, ebx
and eax, edi
add eax, edx
xor edx, edx
dec rax
add rax, r9
div r9
xor edx, edx
mov r8, rax
mov rax, rdi
div r9
add r8, rax
mov eax, r8d
test r8d, r8d
je 0x1400badcd
nop
lock or dword [rcx], 0
add rcx, r9
sub rax, 1
jne 0x1400badc0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f2e00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x1400badf0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rbx, [0x140000000]
add r8, rbx
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400bae71
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x1400bae71
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rcx, rax
mov r10d, dword [r9 + rbx + 0xc]
xor edx, edx
test r11d, r11d
je 0x1400bae71
nop dword [rax]
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x1400bae66
mov r9d, dword [rcx + 8]
lea eax, [r9 + r8]
cmp r10d, eax
jb 0x1400bae8c
inc edx
add rcx, 0x28
cmp edx, r11d
jb 0x1400bae50
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rcx + 0x24]
mov rdi, r8
add rdi, rbx
je 0x1400bae71
cmp dword [0x140180480], 0
jne 0x1400baec5
mov dword [0x140180480], 1
test eax, eax
js 0x1400baeb5
mov ecx, 0x19
int 0x29
mov rdx, r9
mov rcx, rdi
mov rbx, r9
call fcn.1400bad30
jmp 0x1400baec8
mov rbx, r9
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400bae77
mov ecx, 0x19
int 0x29
jmp 0x1400bae77

Function at 0x1400c7d10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x1400c7e05
nop dword [rax]
cmp rbx, qword [0x14017a320]
jb 0x1400c7d6e
cmp rbx, qword [0x14017a328]
ja 0x1400c7d6e
sub rbx, 0x8000000
jmp 0x1400c7dfc
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x1400c7e05
cmp dword [rsp + 0x40], 0x10000
jne 0x1400c7de0
cmp qword [rsp + 0x38], 0x10000
jb 0x1400c7de0
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x1400c7e07
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1400c7e05
sub rbx, 0x10000
jmp 0x1400c7dfc
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x1400c7d50
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f2e00
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400c7e20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x1400c7e51
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x1400c7f17
nop word [rax + rax]
cmp rbx, qword [0x14017a320]
jb 0x1400c7e7e
cmp rbx, qword [0x14017a328]
ja 0x1400c7e7e
add rbx, 0x8000000
jmp 0x1400c7f0e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x1400c7f17
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1400c7ef3
cmp rcx, 0x10000
jb 0x1400c7ef3
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x1400c7f19
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1400c7f17
add rbx, 0x10000
jmp 0x1400c7f0e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x1400c7f0e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1400c7e60
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f2e00
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400c7f40
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x1400c7f5e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1400c7f7a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1400c7f91
cmp byte [rcx + 1], 0x25
jne 0x1400c7fd5
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x1400c7f9d
cmp al, 0xe9
jne 0x1400c7fd5
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x1400c7fc0
cmp rcx, 0xffffffff80000000
jae 0x1400c7fb7
lea rdi, [rcx + 0x7ff80000]
jmp 0x1400c7fd5
mov rdi, 0xfffffffffff80000
jmp 0x1400c7fd5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1400c7fd5
mov ebx, 0x80000
mov rax, qword [0x140180490]
mov rcx, qword [0x140180488]
test rax, rax
jne 0x1400c7ff7
test rcx, rcx
je 0x1400c800e
mov rax, rcx
mov qword [0x140180490], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400c800e
cmp rdx, rbx
jb 0x1400c800e
cmp rdx, rdi
jbe 0x1400c80b9
mov qword [0x140180490], rcx
mov rax, rcx
test rcx, rcx
je 0x1400c8049
test rcx, rcx
je 0x1400c8039
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400c8039
cmp rcx, rbx
jb 0x1400c8039
cmp rcx, rdi
jbe 0x1400c80b9
mov rax, qword [rax + 8]
mov qword [0x140180490], rax
test rax, rax
jne 0x1400c8022
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.1400c8110
test rax, rax
je 0x1400c80fc
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x140180490], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x140180488]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x140180488], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x1400c80a1
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x1400c80fc
cmp rdx, rdi
ja 0x1400c80fc
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x140137a80]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400c8430
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1400c846c
xor al, al
jmp 0x1400c84bb
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1400c847d
xor al, al
jmp 0x1400c84bb
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1400c84a4
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1400c84a4
mov al, 1
jmp 0x1400c84bb
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x60
pop rbx
ret
Function at 0x1400c8a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1401804a0], eax
je 0x1400c8a53
mov eax, 0x10dd
jmp 0x1400c8b7c
mov eax, dword [0x1401804a4]
test eax, eax
jne 0x1400c8b7c
test rbp, rbp
jne 0x1400c8a6e
lea eax, [rbp + 0x57]
jmp 0x1400c8b7c
test rsi, rsi
je 0x1400c8a8a
cmp qword [rsi], 0
jne 0x1400c8a94
mov dword [0x1401804a4], 6
mov qword [0x1401804a8], rsi
mov eax, 6
jmp 0x1400c8b7c
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.1400f3600
mov rbx, rax
test rax, rax
jne 0x1400c8ab8
lea edi, [rax + 8]
jmp 0x1400c8b51
mov rcx, qword [rsi]
xor edx, edx
call fcn.1400c8970
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.1400c8970
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x1400c8b43
mov edx, ecx
cmp rcx, 0x1e
ja 0x1400c8b43
cmp qword [rdi + 0x50], rax
jne 0x1400c8b43
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400c8b14
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x1400c8b51
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x1401804b8]
mov qword [rbx], rax
xor eax, eax
mov qword [0x1401804b8], rbx
jmp 0x1400c8b72
cmp dword [0x140180498], 0
mov edi, 9
jne 0x1400c8b5c
mov dword [0x1401804a4], edi
test rbx, rbx
je 0x1400c8b69
mov edx, 0x30
mov rcx, rbx
call fcn.1400f35f0
mov qword [0x1401804a8], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x1400c8b90
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1401804a0], eax
je 0x1400c8bc7
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1401804b8]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x1400c8c64
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x1400c8c4c
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400c8c4c
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.1400f35f0
mov rbx, rdi
test rdi, rdi
jne 0x1400c8bf0
mov qword [0x1401804b8], rsi
call fcn.1400c84d0
mov rdi, qword [0x1401804b0]
test rdi, rdi
je 0x1400c8ca1
nop dword [rax]
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.1400f35f0
mov rdi, rbx
test rbx, rbx
jne 0x1400c8c80
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x1401804b0], rsi
mov dword [0x1401804a0], esi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x38
ret

Function at 0x1400c8ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1401804a0], 0
jne 0x1400c8da2
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1401804a0], ecx
jne 0x1400c8da2
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x140180488]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x1401804b8], rdi
mov qword [0x1401804b0], rdi
mov qword [0x1401804a8], rdi
test rbx, rbx
je 0x1400c8d7e
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1400c8d77
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400c8d50
jmp 0x1400c8d7e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x1401804a4], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f2e00
add rsp, 0x38
ret
Function at 0x1400c9360
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1401804a4]
mov rdi, rcx
test eax, eax
jne 0x1400c9400
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x1400c9389
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.1400f3600
mov rbx, rax
test rax, rax
jne 0x1400c93a5
lea edi, [rax + 8]
jmp 0x1400c93c6
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400c93e4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.1400f35f0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1401804a4], edi
mov qword [0x1401804a8], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1401804b0]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1401804b0], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401007bc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14010064f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010064f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010064f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010064f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010064f
cmp dword [rcx + 0x84], 0xe
jbe 0x14010064f
cmp dword [rcx + 0xf8], 0
je 0x14010064f
mov ecx, ebx
call fcn.1401006f0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401004e0
cmp dword [rbp + 0x20], 0
je 0x14010069c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401006a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401005e8
Function at 0x1401159b0
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1401156d6
call fcn.1400f9d20
mov dword [rax], 0x16
call fcn.1400f9bd0
jmp 0x140115821
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140115821
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140115821
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140115705
lock or dword [rcx + 0x14], 0x10
jmp 0x140115821
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140115719
call fcn.140115d74
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140115729
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14011572c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140108924
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140117c9c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14011580f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401157bd
mov rcx, rbx
call fcn.140108924
cmp eax, 0xffffffff
je 0x1401157a8
mov rcx, rbx
call fcn.140108924
cmp eax, 0xfffffffe
je 0x1401157a8
mov rcx, rbx
call fcn.140108924
movsxd rdi, eax
lea r14, [0x140181e30]
mov rcx, rbx
sar rdi, 6
call fcn.140108924
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401157af
lea rdx, [0x14017a900]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401157bd
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401157e1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401157e1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401157e1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401157ff
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14011580a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140115826
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1401156a0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140008630]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140008640]
mov dword [rax], 1
mov rax, qword [0x140008650]
mov dword [rax], 1
mov rax, qword [0x1400085d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140008620]
mov dword [0x14000b020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400086f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400086d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140008580]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a