joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x1800235d1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x1800234b0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180022e60
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.1800224f0
mov dword [rbx + 0x80], 0
jmp 0x1800235bd
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.1800213b0
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180029a50
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
xor eax, eax
mov dword [rbp - 0x10], 0x43535c2d
mov word [rbp - 8], 0x100
mov r8, rcx
test edx, edx
jne 0x180029a92
mov dword [rbp - 0xc], 0x4d585f5d
nop word [rax + rax]
lea ecx, [rax + 0xe]
xor byte [rbp + rax - 0x10], cl
inc rax
cmp rax, 8
jb 0x180029a80
jmp 0x180029ab0
mov dword [rbp - 0xc], 0x4c585f5d
nop dword [rax]
lea ecx, [rax + 0xe]
xor byte [rbp + rax - 0x10], cl
inc rax
cmp rax, 8
jb 0x180029aa0
movsxd rdx, dword [r8 + 0xc0]
lea rcx, [rbp - 0x10]
mov rax, qword [r8 + 0xc8]
mov byte [rbp - 7], 0
mov r8d, dword [rax + rdx*4 - 4]
xor edx, edx
call fcn.1800099a0
add rsp, 0x30
pop rbp
ret
Function at 0x18002b0e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18002b120
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801f6118]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18002b15e
cmp rsi, r14
jb 0x18002b156
cmp rsi, r15
jae 0x18002b156
cmp qword [rsi + 8], 0
jne 0x18002b327
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18002b141
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18002b1f2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18002b1e9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002b1e9
cmp dword [rsp + 0x70], 0x10000
je 0x18002b26b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18002b1e9
sub rbx, rbp
cmp rbx, r14
jae 0x18002b1b0
test rsi, rsi
jne 0x18002b2d0
cmp rdi, r15
ja 0x18002b30f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18002b30f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002b30f
cmp dword [rsp + 0x70], 0x10000
je 0x18002b2a1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18002b222
jmp 0x18002b30f
test rbx, rbx
je 0x18002b1e9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18002b2d0
cmp rbx, r14
jae 0x18002b190
jmp 0x18002b1f2
test rdi, rdi
je 0x18002b30f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18002b2d0
cmp rdi, r15
jbe 0x18002b200
jmp 0x18002b30f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18002b2e0
mov rax, qword [0x1801f6118]
mov qword [rsi], rax
mov qword [0x1801f6118], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18002bcf0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov edi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18002bea8
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18002be39
lea edi, [r15 + 1]
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18002bdf3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18002bdf3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18002bdf3
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18002bdb2
mov rcx, qword [0x1801f6128]
mov r8d, 0x200
mov dword [rbx + 8], pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18002be1c
jmp 0x18002bde3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18002bde3
mov rcx, qword [0x1801f6128]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18002be1c
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
lea eax, [rcx + 1]
mov dword [rbx + 0xc], eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18002bd60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18002be39
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18002be39
mov rcx, qword [0x1801f6128]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18002bea8
cmp qword [rbx], r15
je 0x18002bea3
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18002bea3
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002be9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18002bb60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18002be60
mov eax, r15d
jmp 0x18002bead
mov eax, 9
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x18002bed0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x38]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1801f6230]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18002bf3c
mov eax, 0xa
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18002bf58
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18002bfa0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x1801f623c]
xor ebx, ebx
test edx, edx
je 0x18002bfcf
mov rcx, qword [0x1801f6230]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
je 0x18002bfd7
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x18002bfc0
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18002bfcf
mov edx, 0xffffffff
mov qword [rsp + 0x50], rdi
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.18002bcf0
mov edi, eax
test eax, eax
jne 0x18002c0b2
mov eax, dword [0x1801f623c]
cmp ebx, eax
jae 0x18002c03d
nop word [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1801f6230]
test byte [rdx + rcx + 0x20], 2
jne 0x18002c037
mov ecx, ebx
call fcn.18002bed0
mov edi, eax
test eax, eax
jne 0x18002c03d
mov eax, dword [0x1801f623c]
inc ebx
cmp ebx, eax
jb 0x18002c010
cmp qword [rsp + 0x20], 0
je 0x18002c0b0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002c09c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002c088
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18002c060
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801f6128]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x18004db20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18004db48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18004db48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400120b0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x48], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
mov rax, qword [rsp + 8]
ret
Function at 0x140012850
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jae 0x14001287c
mov dword [rsp + 0x24], 0x38
jmp 0x140012884
mov dword [rsp + 0x24], 0x40
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], pe_nt_image_headers64
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jae 0x1400128db
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x1400128ad
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jb 0x140012903
mov rcx, qword [rsp + 0x40]
call fcn.1400123f0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov eax, 1
imul rax, rax, 0x3f
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
movzx edx, byte [rdx + 0x48]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 8
mov ecx, 1
imul rcx, rcx, 0x3e
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x10
mov ecx, 1
imul rcx, rcx, 0x3d
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x18
mov ecx, 1
imul rcx, rcx, 0x3c
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x20
mov ecx, 1
imul rcx, rcx, 0x3b
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x28
mov ecx, 1
imul rcx, rcx, 0x3a
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x30
mov ecx, 1
imul rcx, rcx, 0x39
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x38
mov ecx, 1
imul rcx, rcx, 0x38
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rcx, qword [rsp + 0x40]
call fcn.1400123f0
add rsp, 0x30
pop rdi
ret
Function at 0x140014044
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140014072
xor eax, eax
jmp 0x140014158
cmp qword [rcx + 0x68], 0
je 0x140014083
call fcn.1400070b0
jmp 0x140014158
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001409a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001409c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400140ce
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140016e90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140014152
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140014105
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001412e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001fd84
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140014152
cmp rsi, rbx
ja 0x14001410c
test rsi, rsi
je 0x140014152
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001fd84
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14001595c
Capabilities:
Parse pe header

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

Function at 0x14002457c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002436c
Function at 0x14002c468
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002c49a
call fcn.140020acc
mov dword [rax], 0x16
call fcn.14001e970
jmp 0x14002c5b9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002c5b9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002c5b9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002c4c9
lock or dword [rcx + 0x14], 0x10
jmp 0x14002c5b9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002c4dd
call fcn.14002dacc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002a1a8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002d248
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002c5a7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002c572
mov rcx, rsi
call fcn.14002a1a8
cmp eax, edi
je 0x14002c55d
mov rcx, rsi
call fcn.14002a1a8
cmp eax, 0xfffffffe
je 0x14002c55d
mov rcx, rsi
call fcn.14002a1a8
movsxd rbx, eax
lea r14, [0x140327e50]
mov rcx, rsi
sar rbx, 6
call fcn.14002a1a8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002c564
lea rdx, [0x14004c3c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002c572
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002c596
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002c596
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002c596
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002c5bc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002c8e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400153b0
sub rsp, rax
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002a1a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002c933
mov rax, rbp
jmp 0x14002ca3b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x327e50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002da20
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x327e50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002ca37
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002ca37
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002da20
test rax, rax
js 0x14002ca37
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002ca37
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002ca29
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002ca29
cmp byte [rcx], 0xd
jne 0x14002ca0f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002ca1e
cmp byte [rcx + 1], 0xa
jne 0x14002ca1e
inc rcx
jmp 0x14002ca1e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002c9f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002ca3b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140014b90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002cd9c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140327e50]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002cdfa
cmp word [rdx], r12w
jne 0x14002cdfa
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002ce00
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002cf5b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002cf36
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002ce39
mov rcx, r9
jmp 0x14002ce5c
cmp r9, rdx
jae 0x14002ce73
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002ce1d
jmp 0x14002cf5b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002cf30
cmp dword [rsp + 0x80], edi
je 0x14002cf30
mov rdx, r14
lea r11, [0x140327e50]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002cf09
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002cedc
mov word [rbx], r12w
jmp 0x14002cf57
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002cee5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002cf57
cmp word [rsp + 0x70], r12w
jne 0x14002cf16
cmp rbx, rsi
je 0x14002ced6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002da28
cmp word [rsp + 0x70], r12w
je 0x14002cf5b
mov word [rbx], r13w
jmp 0x14002cf57
lea r11, [0x140327e50]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002cf53
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002cf5b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret