joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003900
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x40], ebp
jb 0x140003922
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400039b6
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003995
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003990
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a5f
mov rcx, r8
call fcn.140010e98
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400039fb
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400039f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400039f2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003a5f
mov rcx, r8
call fcn.140010e98
xor al, al
jmp 0x140003997
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x14004dc40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003a48
cmp rax, 8
jb 0x1400039f7
lea rdx, [rax*2 + 2]
jmp 0x1400039ce
cmp rax, 8
jb 0x140003995
lea rdx, [rax*2 + 2]
jmp 0x140003968
call fcn.14001accc
int3
Function at 0x140004a90
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x140004c12
test byte [r8 + 0x5e], 0x40
jne 0x140004abd
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004c12
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004af6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004b0d
add rdx, 0x28
cmp rdx, r9
jb 0x140004ae4
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140004c08
cmp rbx, r15
jae 0x140004c08
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140004c03
add eax, 0xfffffff8
shr eax, 1
je 0x140004bf4
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140004b82
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x140004b8e
cmp ax, 0xa
jne 0x140004be6
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x140004bdb
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140004bc2
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x140004bcd
add rax, 0x28
cmp rax, r10
jb 0x140004bb0
jmp 0x140004bdb
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x140004bde
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140004b60
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140004b44
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x140004c20
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rdi
push r13
sub rsp, 0x40
movzx eax, word [r8 + 0x14]
lea r10, [r8 + 0x18]
mov r11d, dword [r8 + 0x90]
add r10, rax
movzx eax, word [r8 + 6]
mov rbp, r8
mov r13, rdx
mov edi, ecx
lea r9, [rax + rax*4]
lea r8, [r10 + r9*8]
cmp r10, r8
jae 0x140004c81
nop dword [rax]
mov ecx, dword [r10 + 0xc]
cmp r11, rcx
jb 0x140004c78
mov eax, dword [r10 + 8]
add eax, ecx
cmp r11, rax
jb 0x140004d15
add r10, 0x28
cmp r10, r8
jb 0x140004c60
xor eax, eax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test r11d, r11d
je 0x140004cee
cmp dword [rbp + 0x94], 0
je 0x140004cee
lea rbx, [rax + 0x10]
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx - 4]
add rdx, rbp
mov qword [rsp + 0x70], rbx
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004cee
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004ce5
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004d27
add rdx, 0x28
cmp rdx, r9
jb 0x140004cd3
mov eax, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r13
pop rdi
pop rbp
ret
mov eax, dword [r10 + 0x14]
sub rax, rcx
add rax, r11
add rax, r13
jmp 0x140004c83
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, r13
je 0x140004cee
mov rdx, r15
mov ecx, edi
call fcn.140003f90
mov r12, rax
test rax, rax
je 0x140004e62
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx]
add rdx, rbp
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140004d8b
nop dword [rax + rax]
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140004d82
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140004db0
add rdx, 0x28
cmp rdx, r9
jb 0x140004d70
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x140004e47
jns 0x140004dbf
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x140004e10
mov r14d, dword [rdx + 0x14]
sub r14, rcx
add r14, r8
add r14, r13
jmp 0x140004d8e
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x140004dfb
nop dword [rax + rax]
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140004df2
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x140004e54
add rax, 0x28
cmp rax, r8
jb 0x140004de0
xor esi, esi
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rdx, [rsi + 2]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x140004d9a
mov rbx, qword [rsp + 0x70]
mov edi, dword [rsp + 0x60]
add rbx, 0x14
jmp 0x140004cae
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x140004dfd
jmp 0x140004cf3
Function at 0x14000d590
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov edi, edx
mov rbp, r9
xor edx, edx
mov rsi, r8
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xorps xmm0, xmm0
mov qword [rsp + 0x514], 0
mov rcx, rax
mov dword [rsp + 0x500], 0x1c
lea rdx, [rsp + 0x500]
mov rbx, rax
movdqu xmmword [rsp + 0x504], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x500]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x14000d62e
mov rcx, rbx
cmp dword [rsp + 0x50c], edi
je 0x14000d668
lea rdx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14000d610
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.couldnt_find_thread_to_hijack_n
call fcn.140001590
xor al, al
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1400109c0
mov rbx, qword [rsp + 0x550]
add rsp, 0x530
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x508]
test r8d, r8d
je 0x14000d637
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x14000d699
lea rcx, str.couldnt_open_thread_to_hijack_n
jmp 0x14000d63e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call fcn.140013250
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rsp + 0xc8]
lea r8, [rsp + 0x128]
sub rdx, 8
mov qword [rsp + 0x20], 0
mov r9d, 8
mov qword [rsp + 0xc8], rdx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x128], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000d645
Function at 0x14000d730
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov rsi, r8
mov edi, edx
mov qword [rbp + 6], r9
xor edx, edx
mov dword [rbp - 0x21], 0x5153509c
mov r9d, 0x3000
mov dword [rbp - 0x1d], 0x41504152
mov rcx, rsi
mov dword [rbp - 0x19], 0x41524151
mov dword [rbp - 0x15], 0xec834853
lea r8d, [rdx + 0x44]
mov word [rbp - 0x11], 0x4828
mov byte [rbp - 0xf], 0xb9
mov dword [rbp - 6], 0x1c2c748
mov dword [rbp - 2], 0x4d000000
mov dword [rbp + 2], 0xb848c031
mov dword [rbp + 0xe], 0x8348d0ff
mov dword [rbp + 0x12], 0x5b4128c4
mov dword [rbp + 0x16], 0x59415a41
mov dword [rbp + 0x1a], 0x595a5841
mov dword [rbp + 0x1e], 0xc39d585b
mov qword [rbp - 0xe], rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x43
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rbp - 0x21]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rbx
mov r8, rsi
mov edx, edi
call fcn.14000d590
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400109c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d830
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push r12
sub rsp, 0xa0
mov r12d, edx
lea rcx, [0x140091af0]
lea rdx, str.___Starting_injection_from_memory
mov rbp, r8
call fcn.14000b530
mov rcx, rax
call fcn.14000b7e0
mov r8d, r12d
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000d8a5
lea rdx, str.___Unable_to_open_process.
lea rcx, [0x140091af0]
call fcn.14000b530
mov rcx, rax
call fcn.14000b7e0
xor al, al
add rsp, 0xa0
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0xc8], rbx
xor edx, edx
mov qword [rsp + 0x98], rdi
mov r9d, 0x3000
mov qword [rsp + 0x90], r13
mov rcx, rsi
mov qword [rsp + 0x88], r14
movsxd r14, dword [rbp + 0x3c]
add r14, rbp
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x20], 0x40
mov eax, dword [r14 + 0x28]
mov r8d, dword [r14 + 0x50]
mov ebx, dword [r14 + 0x54]
mov r13, qword [r14 + 0x30]
movzx edi, word [r14 + 6]
mov qword [rsp + 0xc0], rax
mov eax, dword [r14 + 0xb0]
mov qword [rsp + 0xd8], rax
mov eax, dword [r14 + 0x90]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rbp
mov rcx, rsi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test rdi, rdi
je 0x14000d98a
lea rbx, [r14 + 0x11c]
xor r14d, r14d
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx]
mov rcx, rsi
mov edx, dword [rbx - 8]
add r8, rbp
mov r9d, dword [rbx - 4]
add rdx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rbx, [rbx + 0x28]
sub rdi, 1
jne 0x14000d960
jmp 0x14000d98d
xor r14d, r14d
mov rax, qword [rsp + 0xc0]
xor edx, edx
mov qword [rsp + 0x50], rax
mov r9d, 0x3000
mov rax, qword [rsp + 0xd8]
mov rcx, rsi
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
lea r8d, [rdx + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x68], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x4000
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x40
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x4000
mov qword [rsp + 0x20], r14
lea r8, [0x14000d3e0]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov edx, r12d
call fcn.14000d730
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x80]
mov al, 1
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop r12
pop rsi
pop rbp
ret
Function at 0x14000de00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000defa
mov qword [rsp + 0x1a8], rbp
lea rcx, [rsp + 0x54]
xor edx, edx
mov qword [rsp + 0x1b0], rsi
mov r8d, 0x12c
call fcn.140013250
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000dedc
xor ebp, ebp
nop dword [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbp
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x7c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bpl
jne 0x14000dea0
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x20]
call fcn.14000bf60
lea rcx, [rsp + 0x20]
call fcn.14000dc80
movsxd rsi, eax
mov rcx, rbx
cmp esi, 0xffffffff
jne 0x14000df1b
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000de80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x1a8]
mov rsi, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400109c0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x190
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [0x1400932f8]
movabs rax, 0x4924924924924925
mov rcx, qword [0x140093300]
mov r8, rsi
sub rcx, r9
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, rsi
jbe 0x14000dfda
imul rbx, r8, 0x70
add rbx, r9
cmp rdi, rbx
je 0x14000df7e
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x14000df72
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14000e0d0
lea rdx, [rbx + 0x20]
lea rcx, [rdi + 0x20]
cmp rcx, rdx
je 0x14000df9e
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x14000df99
mov rdx, qword [rdx]
call fcn.14000e0d0
lea rdx, [rbx + 0x40]
lea rcx, [rdi + 0x40]
cmp rcx, rdx
je 0x14000dfbe
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x14000dfb9
mov rdx, qword [rdx]
call fcn.14000e0d0
mov eax, dword [rbx + 0x60]
mov dword [rdi + 0x60], eax
movzx eax, byte [rbx + 0x64]
mov byte [rdi + 0x64], al
mov eax, dword [rbx + 0x68]
mov dword [rdi + 0x68], eax
mov eax, dword [rsp + 0x58]
jmp 0x14000deea
call fcn.14000e0b0
int3
Function at 0x14000f800
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 0x14000f82e
xor eax, eax
jmp 0x14000f914
cmp qword [rcx + 0x68], 0
je 0x14000f83f
call fcn.14000f930
jmp 0x14000f914
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f856
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f858
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f88a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140012ba0
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 0x14000f90e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000f8c1
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 0x14000f8ea
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001bae0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000f90e
cmp rsi, rbx
ja 0x14000f8c8
test rsi, rsi
je 0x14000f90e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001bae0
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 0x140011964
Capabilities:
Parse pe header

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

Function at 0x1400209fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400207f8
Function at 0x1400291a8
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.140011370
sub rsp, rax
mov rax, qword [0x14004d020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002631c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400291f7
mov rax, rbp
jmp 0x1400292ff
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 + 0x92d30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002a2c8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x92d30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400292fb
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 0x1400292fb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002a2c8
test rax, rax
js 0x1400292fb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400292fb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400292ed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400292ed
cmp byte [rcx], 0xd
jne 0x1400292d3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400292e2
cmp byte [rcx + 1], 0xa
jne 0x1400292e2
inc rcx
jmp 0x1400292e2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4d430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400292b5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400292ff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400109c0
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 0x140029520
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140029536
mov al, 1
jmp 0x140029596
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140029547
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029594
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002e224
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029594
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140029594
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140029594
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140029596
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140029668
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140092d30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400296bf
cmp word [rdx], r13w
jne 0x1400296bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400296c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400297e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002980a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400296fd
mov rdx, r9
mov word [rbx], cx
jmp 0x140029724
cmp r9, r8
jae 0x140029734
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400296de
jmp 0x1400297e9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400297de
cmp dword [rsp + 0x80], esi
je 0x1400297de
lea r8, [0x140092d30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400297b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140029786
mov word [rbx], r13w
jmp 0x1400297e6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140029793
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400297e6
cmp word [rsp + 0x70], r13w
jne 0x1400297c3
cmp rbx, r14
je 0x140029780
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002a2d0
cmp word [rsp + 0x70], r13w
je 0x1400297e9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140092d30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400297e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400297e9