Function at 0x1400334b0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rbx, qword [0x1400555a0]
mov rax, qword [rbx]
mov rbp, rdx
mov qword [rsp + 0x20], rax
mov rdi, r8
mov r12, r9
mov qword [rsp + 0x100], rcx
test rax, rax
je 0x140033758
pxor xmm0, xmm0
lea rax, str.mode
lea rbx, str.file
mov qword [rsp + 0x30], rbp
movq xmm1, rax
movups xmmword [rsp + 0x48], xmm0
lea rax, str.encoding
lea rsi, str.buffering
movups xmmword [rsp + 0x58], xmm0
movq xmm0, rbx
movq xmm2, rax
lea rbx, str.errors
punpcklqdq xmm0, xmm1
lea rax, str.newline
mov qword [rsp + 0x38], rdi
movaps xmmword [rsp + 0x70], xmm0
movq xmm0, rsi
movq xmm3, rax
lea rsi, str.closefd
punpcklqdq xmm0, xmm2
lea rax, str.opener
mov qword [rsp + 0x40], r12
movaps xmmword [rsp + 0x80], xmm0
movq xmm0, rbx
movq xmm4, rax
mov qword [rsp + 0x68], 0
punpcklqdq xmm0, xmm3
movaps xmmword [rsp + 0x90], xmm0
movq xmm0, rsi
punpcklqdq xmm0, xmm4
movaps xmmword [rsp + 0xa0], xmm0
test rbp, rbp
je 0x140033785
cmp r12, 1
mov ebx, 2
mov eax, 1
sbb ebx, 0xffffffff
test rdi, rdi
cmove ebx, eax
movsxd rbx, ebx
lea rsi, [rsp + 0x30]
xor r15d, r15d
mov r14, rbx
mov r8, qword [rsi + r14*8]
test r8, r8
je 0x140033605
test r15, r15
je 0x1400336a0
lea r13, [rsp + 0x70]
mov rdx, qword [r13 + r14*8]
add r14, 1
mov rcx, r15
call qword [sym.imp.python310.dll_PyDict_SetItemString]
cmp r14d, 8
je 0x14003360f
mov r8, qword [rsi + r14*8]
test r8, r8
jne 0x1400335e4
add r14, 1
cmp r14d, 8
jne 0x1400335cd
mov rcx, rbx
call fcn.1400220b0
mov rsi, rax
test rbx, rbx
je 0x140033645
add qword [rbp], 1
mov qword [rax + 0x18], rbp
cmp rbx, 1
je 0x140033645
add qword [rdi], 1
mov qword [rax + 0x20], rdi
cmp rbx, 3
jne 0x140033645
add qword [r12], 1
mov qword [rax + 0x28], r12
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x100]
mov r9, r15
mov r8, rsi
call fcn.1400135d0
mov rbx, rax
test r15, r15
je 0x140033675
sub qword [r15], 1
jne 0x140033675
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
sub qword [rsi], 1
jne 0x140033685
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
mov rax, rbx
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140055680]
mov rcx, qword [sym.imp.python310.dll__PyRuntime]
mov r13, qword [rax + 8]
mov rax, qword [r13 + 0x20]
add qword [rax], 1
mov rcx, qword [rcx + 0x1f0]
mov r9, qword [rcx + 0x10]
mov ecx, dword [r9 + 0x2c28]
test ecx, ecx
je 0x140033710
sub ecx, 1
mov dword [r9 + 0x2c28], ecx
movsxd rcx, ecx
mov r15, qword [r9 + rcx*8 + 0x29a8]
mov qword [r15], 1
movq xmm0, rax
movhps xmm0, qword [r13 + 0x28]
mov qword [r15 + 0x10], 0
movups xmmword [r15 + 0x20], xmm0
jmp 0x1400335df
mov r11, qword [sym.imp.python310.dll_PyDict_Type]
mov qword [rsp + 0x28], r8
mov rcx, qword [r11 + 0x20]
call qword [sym.imp.python310.dll__PyObject_GC_Malloc]
mov r11, qword [sym.imp.python310.dll_PyDict_Type]
mov r8, qword [rsp + 0x28]
mov r15, rax
test byte [r11 + 0xa9], 2
mov qword [rax + 8], r11
je 0x140033747
add qword [r11], 1
mov qword [r15], 1
mov rax, qword [r13 + 0x20]
jmp 0x1400336ec
mov rax, qword [0x140055610]
lea rdx, str.open
mov rcx, qword [rax]
call qword [sym.imp.python310.dll_PyDict_GetItemString]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14003378c
add qword [rax], 1
mov qword [rbx], rax
jmp 0x1400334ec
xor ebx, ebx
jmp 0x1400335bf
xor ecx, ecx
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop