Function at 0x14000240a
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rdx, qword [rcx + 0x18]
mov rax, qword [rdx + 0x20]
cmp rax, 0x40
jb 0x140002a4b
mov r15, qword [rdx + 0x10]
mov r9b, 4
test r15b, 3
jne 0x140002a5d
cmp word [r15], 0x5a4d
jne 0x140002a50
mov r13d, dword [r15 + 0x3c]
test r13b, 3
jne 0x140002a5d
cmp r13d, 0x1000000
ja 0x140002a55
lea rdx, [r13 + 0x88]
cmp rdx, rax
ja 0x140002a4b
cmp dword [r15 + r13], 0x4550
jne 0x140002a50
mov r8, qword [rcx]
mov qword [rsp + 0x30], r8
mov r8, qword [rcx + 0x10]
mov qword [rsp + 0x78], r8
movzx r8d, word [r15 + r13 + 0x18]
cmp r8d, 0x20b
je 0x1400024bd
mov r9b, 5
cmp r8d, 0x10b
jne 0x140002a5d
mov r9d, dword [r15 + r13 + 0x54]
cmp rax, r9
jb 0x140002a4b
cmp r9d, dword [r15 + r13 + 0x50]
ja 0x140002a55
cmp r8w, 0x20b
jne 0x140002a5a
mov r9d, dword [r15 + r13 + 0x84]
cmp r9d, 0x10
mov r8d, 0x10
cmovb r8d, r9d
shl r8d, 3
add rdx, r8
cmp rdx, rax
ja 0x140002a4b
movzx edx, word [r15 + r13 + 6]
mov r9b, 7
cmp rdx, 0x60
ja 0x140002a5d
imul r8, rdx, 0x28
add r8, r13
movzx edx, word [r15 + r13 + 0x14]
add rdx, r8
add rdx, 0x18
mov r9b, 1
cmp rdx, rax
ja 0x140002a5d
mov qword [rsp + 0x70], rcx
xorps xmm6, xmm6
lea rsi, [rsp + 0xd0]
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
mov rcx, rsi
call sub.KERNEL32.dll_GetNativeSystemInfo
mov eax, dword [r15 + r13 + 0x50]
mov edx, dword [rsi + 4]
add eax, edx
dec eax
neg edx
and edx, eax
mov rcx, qword [r15 + r13 + 0x30]
mov r8d, 0x3000
mov r9d, 4
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
mov edx, dword [r15 + r13 + 0x54]
mov rcx, rax
mov r8d, 0x1000
mov r9d, 4
call sub.KERNEL32.dll_VirtualAlloc
mov rbx, rax
lea r12, [rsp + 0x50]
movups xmmword [r12 + 8], xmm6
mov eax, dword [rsi + 4]
mov qword [r12 - 8], r14
mov word [r12 + 0x1c], pe_nt_image_headers64
mov qword [r12], 8
mov dword [r12 + 0x18], eax
mov r8d, dword [r15 + r13 + 0x54]
mov rcx, rbx
mov rdx, r15
call fcn.1400ffba0
mov eax, dword [r15 + 0x3c]
lea rdi, [rax + rbx]
mov qword [r12 - 0x10], rdi
mov qword [rax + rbx + 0x30], r14
mov eax, dword [r15 + 0x3c]
movzx ecx, word [r15 + rax + 0x14]
movzx edx, word [r15 + rax + 6]
mov qword [rsp + 0x28], r13
mov r13d, dword [r15 + r13 + 0x38]
add rcx, rax
lea rbx, [r15 + rcx]
add rbx, 0x2c
imul r12, rdx, 0x28
xor ebp, ebp
cmp r12, rbp
je 0x140002691
mov eax, dword [rbx + rbp - 4]
test eax, eax
jne 0x140002654
mov ecx, dword [rbx + rbp - 8]
shr ecx, 3
add rcx, r14
mov rdx, r13
mov r8d, 0x1000
mov r9d, 4
call sub.KERNEL32.dll_VirtualAlloc
mov rcx, rax
xor edx, edx
mov r8, r13
call fcn.140100240
mov eax, dword [rbx + rbp - 4]
mov ecx, dword [rbx + rbp - 8]
add rcx, r14
mov edx, eax
mov r8d, 0x1000
mov r9d, 4
call sub.KERNEL32.dll_VirtualAlloc
mov rsi, rax
mov r8d, dword [rbx + rbp - 4]
mov edx, dword [rbx + rbp]
add rdx, r15
mov rcx, rax
call fcn.1400ffba0
mov dword [rdi + rbp + 0x110], esi
add rbp, 0x28
jmp 0x140002618
mov rax, qword [rdi + 0x30]
mov rcx, qword [rsp + 0x28]
cmp rax, qword [r15 + rcx + 0x30]
sete byte [rsp + 0x6e]
mov eax, dword [rdi + 0x90]
mov r15, r14
add r15, rax
mov eax, 8
mov qword [rsp + 0x28], rax
xor r13d, r13d
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, r15
xor edx, edx
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x14000277c
mov eax, dword [r15 + 0xc]
test rax, rax
je 0x14000277c
add r14, rax
mov rcx, r14
call sub.KERNEL32.dll_LoadLibraryA
mov rbp, rax
cmp r13, qword [rsp + 0x58]
jne 0x140002711
lea rcx, [rsp + 0x50]
mov rdx, r13
call fcn.140007dc8
mov rax, qword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
jmp 0x140002716
mov rax, qword [rsp + 0x28]
mov qword [rax + r13*8], rbp
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x60]
inc r13
mov qword [rsp + 0x60], r13
mov ebx, dword [r15]
test rbx, rbx
je 0x140002740
add rbx, r14
mov r12d, dword [r15 + 0x10]
add r12, r14
jmp 0x14000274a
mov r12d, dword [r15 + 0x10]
add r12, r14
mov rbx, r12
mov qword [rsp + 0x28], rax
xor edi, edi
mov rax, qword [rbx + rdi]
test rax, rax
je 0x140002773
js 0x14000276d
lea rdx, [rax + r14]
add rdx, 2
mov rcx, rbp
call rsi
mov qword [r12 + rdi], rax
add rdi, 8
jmp 0x140002751
add r15, 0x14
jmp 0x1400026c4
mov rbx, qword [rsp + 0x40]
mov eax, dword [rbx + 0x34]
shl rax, 0x20
lea rdx, [rbx + 0x108]
lea r15, [rsp + 0xa0]
mov byte [r15 + 0x1c], 0
and dword [r15 + 0x18], 0
mov esi, dword [rbx + 0x110]
mov qword [rsp + 0x88], rax
or rsi, rax
mov qword [r15], rsi
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x38], rax
neg rax
mov r12, rsi
mov qword [rsp + 0x80], rax
and r12, rax
mov qword [r15 + 8], r12
mov rcx, rbx
call fcn.140012678
mov r8, rsi
mov rsi, rax
mov qword [r15 + 0x10], rax
mov edi, dword [rbx + 0x12c]
mov dword [r15 + 0x18], edi
movzx eax, word [rbx + 6]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x28], rbx
lea rbp, [rbx + 0x130]
mov eax, 1
cmp rax, qword [rsp + 0x90]
jae 0x1400028e2
mov qword [rsp + 0x98], rax
mov r15d, dword [rbp + 8]
or r15, qword [rsp + 0x88]
mov r13, r15
and r13, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
mov rbx, r8
call fcn.140012678
mov r8, rbx
mov rbx, rax
add rsi, r8
cmp rsi, r13
ja 0x14000285c
cmp r12, r13
jne 0x14000288c
mov eax, dword [rbp + 0x24]
mov ecx, edi
and ecx, eax
or eax, edi
mov edx, eax
and edx, 0xfdffffff
bt ecx, 0x19
cmovb edx, eax
mov dword [rsp + 0xb8], edx
mov rax, rbx
sub rax, r8
add rax, r15
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0xa0]
call fcn.1400125a1
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], rbx
mov edi, dword [rbp + 0x24]
mov dword [rsp + 0xb8], edi
add rbp, 0x28
mov rax, qword [rsp + 0x98]
inc rax
mov rsi, rbx
mov r8, r15
mov r12, r13
jmp 0x14000280c
lea r8, [rsp + 0xa0]
mov byte [r8 + 0x1c], 1
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
call fcn.1400125a1
mov eax, dword [rsi + 0xd0]
mov rax, qword [r14 + rax + 0x18]
mov rcx, r14
mov edx, 1
xor r8d, r8d
call qword [rax]
mov eax, dword [rsi + 0x28]
test rax, rax
je 0x140002931
add rax, r14
mov rcx, r14
mov edx, 1
xor r8d, r8d
call rax
mov rax, qword [rsp + 0x30]
shr rax, 0x10
test ax, ax
je 0x1400029c3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x88]
mov ebp, dword [r14 + rax + 0x18]
mov r12d, dword [r14 + rax + 0x20]
add r12, r14
mov qword [rsp + 0x28], rax
mov r13d, dword [r14 + rax + 0x24]
add r13, r14
lea rsi, [rsp + 0xa0]
lea r15, str.srccoreutilspe_executeload_dll_loserland.rs
xor edi, edi
cmp ebp, edi
je 0x1400029f4
mov ecx, dword [r12 + rdi*4]
add rcx, r14
call fcn.14000577d
mov r8, rdx
movzx ebx, word [r13 + rdi*2]
mov rcx, rsi
mov rdx, rax
call fcn.140036800
mov rcx, rsi
mov rdx, r15
call fcn.140007219
mov rcx, rax
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x78]
call fcn.1400c5bb4
test al, al
jne 0x1400029f8
inc rdi
jmp 0x140002979
lea rax, str.HIIWORD_n
lea rcx, [rsp + 0xa0]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, str._rustc_a57770440f1ebe5b992551d3bcc489ae211908d4librarycore_src_strpattern.rs
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
call fcn.14009a470
xor esi, esi
jmp 0x140002a0c
mov rax, qword [rsp + 0x28]
mov eax, dword [r14 + rax + 0x1c]
lea rcx, [r14 + rbx*4]
mov esi, dword [rax + rcx]
add rsi, r14
cmp qword [rsp + 0x58], 0
je 0x140002a23
mov rcx, qword [rsp + 0x50]
mov edx, 8
call fcn.14002fd20
call rsi
mov rcx, qword [rsp + 0x70]
call fcn.1400067e2
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9b, 1
jmp 0x140002a5d
mov r9b, 5
jmp 0x140002a5d
mov r9b, 7
jmp 0x140002a5d
mov r9b, 6
lea r8, [rsp + 0xa0]
mov byte [r8], r9b
lea rax, str.srccoreutilspe_executeload_dll_loserland.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x1401151b8]
mov edx, 0x2b
call fcn.14010dff0
ud2