Function at 0x140134580
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp r9d, 8
jge 0x140134671
xor eax, eax
cmp r9d, 4
jl 0x14013461f
movsx r10, dx
add r9d, 0xfffffffc
lea r11, [rcx + rax*2]
movsx rbx, word [r11]
cmp ebx, r10d
je 0x14013466c
movsx rsi, r8w
cmp ebx, esi
sete bl
movzx ebx, bl
test bl, bl
jne 0x14013466c
movsx rbx, word [r11 + 2]
cmp ebx, r10d
je 0x140134665
cmp ebx, esi
sete bl
movzx ebx, bl
test bl, bl
jne 0x140134665
movsx rbx, word [r11 + 4]
cmp ebx, r10d
je 0x14013465d
cmp ebx, esi
sete bl
movzx ebx, bl
test bl, bl
jne 0x14013465d
movsx rbx, word [r11 + 6]
cmp ebx, r10d
je 0x140134655
xor r11d, r11d
cmp ebx, esi
sete r11b
test r11b, r11b
jne 0x140134655
add rax, 4
cmp r9d, 4
jge 0x1401345a0
test r9d, r9d
jle 0x140134874
movsx r10, dx
dec r9d
movsx rbx, word [rcx + rax*2]
cmp ebx, r10d
je 0x14013466c
movsx rsi, r8w
xor edx, edx
cmp ebx, esi
sete dl
test dl, dl
jne 0x14013466c
inc rax
test r9d, r9d
jg 0x14013462c
jmp 0x140134874
add eax, 3
jmp 0x14013486d
add eax, 2
jmp 0x14013486d
inc eax
jmp 0x14013486d
jmp 0x14013486d
movsx r10, dx
movd xmm0, r10d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movsx rsi, r8w
movd xmm1, esi
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
mov rax, rcx
lea edx, [r9 - 8]
movsxd rdx, edx
add rdx, rdx
lea r8, [rax + rdx]
movups xmm2, xmmword [rax]
movaps xmm3, xmm0
pcmpeqw xmm3, xmm2
pcmpeqw xmm2, xmm1
por xmm2, xmm3
movaps xmmword [rsp + 0x20], xmm2
xorps xmm3, xmm3
pcmpeqw xmm2, xmm3
pmovmskb r10d, xmm2
cmp r10d, 0xffff
jne 0x1401347ae
add rax, 0x10
cmp rax, r8
jbe 0x1401346a5
mov eax, r9d
test al, 7
je 0x140134874
movups xmm2, xmmword [r8]
pcmpeqw xmm0, xmm2
pcmpeqw xmm1, xmm2
por xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x140134874
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x140134864
mov ecx, 0x20
jmp 0x140134867
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x140134855
mov r8d, 0x20
jmp 0x140134859
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x14013486d
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
pop rbx
pop rsi
ret
mov eax, 0xffffffff
add rsp, 0x38
pop rbx
pop rsi
ret