Function at 0x180013cf0
Capabilities:
Enumerate pe sections
Parse pe header
Read file on windows

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x1800]
mov eax, 0x1900
call fcn.18001cbf0
sub rsp, rax
mov rax, qword [0x1800750b0]
xor rax, rsp
mov qword [rbp + 0x17d0], rax
mov rax, qword [rbp + 0x1840]
mov r13d, edx
mov dword [rsp + 0x60], r8d
lea rdx, [rbp - 0x30]
mov r8d, 0x400
mov r12d, r9d
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x18001419d
mov r8, qword [0x180079570]
mov qword [rsp + 0x1928], rbx
xor ebx, ebx
lea rdx, str.CX9Geqs8XsfCOaftNVw40Z_xXrjImdhGvmPn4YIXqBEnb0mvIYEMcY5OiM
lea ecx, [rbx + 4]
mov qword [rsp + 0x18f8], rsi
mov qword [rsp + 0x18f0], rdi
mov qword [rsp + 0x70], 0xffffffffffffffff
mov edi, ebx
call fcn.1800124b0
cmp qword [0x180079570], rbx
je 0x180013e89
lea rcx, [0x1800797c0]
call fcn.180015710
test eax, eax
je 0x180013e89
mov rax, qword [0x1800797c0]
mov rsi, qword [0x1800797c8]
xor ecx, ecx
mov qword [rbp - 0x3e], rcx
mov dword [rbp - 0x36], ecx
mov word [rbp - 0x32], cx
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
mov word [rbp - 0x40], bx
call rax
test al, al
je 0x180013e89
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
xorps xmm0, xmm0
mov dword [rsp + 0x38], 1
lea rax, [rbp - 0x40]
mov dword [rsp + 0x30], 1
movdqu xmmword [rbp - 0x58], xmm0
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x78]
lea rcx, [rsp + 0x70]
mov edx, 0x80100080
mov dword [rsp + 0x28], 0x80
mov dword [rbp - 0x78], 0x30
mov qword [rsp + 0x20], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], 0x40
mov qword [rsp + 0x78], rbx
call qword [0x180079570]
lea ecx, [rbx + 4]
test eax, eax
js 0x180013e69
mov r8, qword [rsp + 0x70]
lea rdx, str.cBivoA50p1eLnjuRkVF55FhJXRmObOgFNPKFg9BJhKMs70s5siRdC1PU9KQaWFGYeSzxU44
lea edi, [rbx + 1]
call fcn.1800124b0
jmp 0x180013e78
lea rdx, str.u5p3nY8AsYVNccJ_TDylLybmtEBFjoKDUtDqLdJsDZBnhF192sodBw
mov r8d, eax
call fcn.1800124b0
lea rcx, [rbp - 0x40]
call rsi
test edi, edi
je 0x180013e89
mov rdi, qword [rsp + 0x70]
jmp 0x180013ebc
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rcx, [rbp - 0x30]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x70], rax
cmp rdi, 0xffffffffffffffff
jne 0x180013ee0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.IOjuHZcS0kMr576WR16MoDKdhzlpK6zQZ3N6vgdd59gwtvxtoz3XRmHtfvNrHzRf1a_rDf4
xor ecx, ecx
mov r8d, eax
call fcn.180011760
xor eax, eax
jmp 0x180014185
lea rcx, [rbp + 0x7d0]
xor edx, edx
mov r8d, 0x1000
call fcn.18001cc50
lea r9, [rbp - 0x48]
lea rdx, [rbp + 0x7d0]
mov r8d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180013f40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Hbga0VEX5KyjUEWngDyHkTlqDpCERVw_jRZZxfc1v85toz3XRmHtfvNyEmQDoJ2FxWMc
xor ecx, ecx
mov r8d, eax
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014185
cmp dword [rbp - 0x48], 0x1000
je 0x180013f69
lea rdx, str.GQPFr6R6V4eBNp6FKnIno5FTRX6rEmWB1T2nymXmeMJUKPVz9i0adR3VrtlCg
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014185
mov eax, 0x5a4d
cmp word [rbp + 0x7d0], ax
je 0x180013f97
lea rdx, str.GQPFr6R6V4eBNp6FKnIno5FTRX6rEmWB3zOniwHFTpFPbeB_8jFmL3ZXtQ
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014185
movsxd rax, dword [rbp + 0x80c]
lea rcx, [rbp + 0x7d0]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x180013fd0
lea rdx, str.FotyVJW9NYywPWkMg59JU36oN1nV0AHzxSrPf9zKOl9idfMyrnwWmR
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014185
mov esi, dword [rcx + 0x88]
test esi, esi
jne 0x180013ffa
lea rdx, str.FotyVJW9NYywPWkMg59JU36oN1nV0AHz2TPrPdhUKLE3ty1VYRD8r4ixE1SvEJ2DP7RSnHSZXAZBg8
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014185
mov qword [rsp + 0x18e8], r14
mov r14d, dword [rcx + 0x8c]
test r14d, r14d
jne 0x18001402e
lea rdx, str.sGUUrQkI95ZSVJuZ0VPJ6zjEXBmXPOkFPPWPr0VTk4YAg9EgqlPCBzitO_ksGiEG56IgpEJZkXHpDMDNx15AJXdDx0Q
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001417d
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea r8, [rcx + 0x18]
add r8, rax
mov edx, ebx
test r9d, r9d
jle 0x180014060
mov ecx, dword [r8 + 0xc]
cmp esi, ecx
jb 0x180014055
add ecx, dword [r8 + 8]
cmp esi, ecx
jbe 0x180014080
inc edx
add r8, 0x28
cmp edx, r9d
jl 0x180014045
lea rdx, str.E7q1Np6MPns5lIRic3CyIVnW9T2nyhiqeMlXZ_NvtzBfIgLgroXlFFS1EJ6UOr6HYnq2tOI
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18001417d
mov edx, dword [r8 + 0x14]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
sub edx, dword [r8 + 0xc]
xor r8d, r8d
mov qword [rsp + 0x18e0], r15
add edx, esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, r14
call fcn.180019840
mov rdi, rax
test rax, rax
jne 0x1800140d3
lea rdx, str.LpM6IuW7R1ecutd6RtY04cgPpzzARAWip7VYEYCeP4WgeHsrmJxBZR9UVw
xor ecx, ecx
call fcn.180011760
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014175
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.18001cc50
mov rcx, qword [rsp + 0x70]
lea r9, [rbp - 0x48]
mov r8d, r14d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001412c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.D5gfeD6lkJyeqs1Ss7cDrLcAetp0Hoo0372J3woGuzpwuUcWqhcnZ99MZLPepXHlbQ
xor ecx, ecx
mov r8d, eax
call fcn.180011760
mov rcx, rdi
call fcn.18001af28
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180014175
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r14d, dword [rbp - 0x48]
je 0x180014157
lea rdx, str.DBG2lVBOebkAXdX3LrzGFtq9UZ84Ea3J1s1F6mtjrYJG7VYmZVvooZPYdNKanwctjO1HL8
xor ecx, ecx
call fcn.180011760
mov rcx, rdi
call fcn.18001af28
xor eax, eax
jmp 0x180014175
mov r14d, dword [rdi + 0x1c]
sub r14d, esi
add r14, rdi
mov r15d, dword [r14 + r13*4]
test r12d, r12d
jne 0x1800141b9
mov rcx, rdi
call fcn.18001af28
mov eax, r15d
mov r15, qword [rsp + 0x18e0]
mov r14, qword [rsp + 0x18e8]
mov rsi, qword [rsp + 0x18f8]
mov rbx, qword [rsp + 0x1928]
mov rdi, qword [rsp + 0x18f0]
mov rcx, qword [rbp + 0x17d0]
xor rcx, rsp
call fcn.18001a000
add rsp, 0x1900
pop r13
pop r12
pop rbp
ret
mov r12d, dword [rsp + 0x60]
mov r9d, 4
mov r8d, 0x1000
lea r12d, [r12*4]
xor ecx, ecx
mov edx, r12d
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180014211
mov rcx, rdi
call fcn.18001af28
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.pfh7wc0W1X4LhinyVzfvmLZCeICGMreLENIxVJp7Vr7L1UkW6ylfe1LVth49BiHmtcSJBYI
mov r9d, eax
mov r8d, r12d
xor ecx, ecx
call fcn.180011760
xor eax, eax
jmp 0x180014175
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.18001cc50
cmp dword [rdi + 0x14], ebx
jbe 0x180014248
nop dword [rax]
nop word [rax + rax]
mov eax, ebx
inc ebx
lea rcx, [rax*4]
mov eax, dword [rcx + r14]
mov dword [rcx + rsi], eax
cmp ebx, dword [rdi + 0x14]
jb 0x180014230
mov rcx, rdi
call fcn.18001b32c
mov rax, qword [rsp + 0x68]
mov qword [rax], rsi
jmp 0x180014172