Function at 0x1400532e0
Capabilities:
Encrypt data using speck

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x140209040]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov ebx, r9d
mov qword [rsp + 0x68], r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov rax, qword [rdx]
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
lea rdx, [rdi + 0x21c]
mov r13d, 0x1c
mov dword [rsp + 0x30], r13d
mov r8d, r13d
mov rcx, r15
call qword [rax + 0x88]
lea rdx, [rdi + 0x2ec]
mov rax, qword [r15]
lea r8d, [r13 + 0x1c]
mov rcx, r15
call qword [rax + 0x88]
xor r12d, r12d
xor r9d, r9d
mov dword [rsp + 0x38], r9d
mov esi, r13d
mov dword [rsp + 0x34], r13d
mov r14, qword [rdi + 0x1d0]
movzx ecx, byte [rdi + 0x215]
movzx eax, byte [rdi + 0x214]
shl rax, 8
or rcx, rax
shl rcx, 8
movzx eax, byte [rdi + 0x216]
or rcx, rax
shl rcx, 8
movzx eax, byte [rdi + 0x217]
or rcx, rax
add rcx, r14
mov qword [rsp + 0x60], rcx
cmp r14, rcx
jae 0x1400542f0
lea r10, [0x140000000]
movzx r13d, byte [r14]
shl r13d, 8
movzx eax, byte [r14 + 1]
or r13d, eax
movzx edx, byte [r14 + 3]
movzx r8d, byte [r14 + 2]
mov ecx, r13d
shl ecx, 0x10
or ecx, edx
btr ecx, 0x1f
mov eax, r8d
shl eax, 8
or ecx, eax
cmp ecx, 0x1a
ja 0x140053edb
je case.0x14005341f.5
dec ecx
cmp ecx, 0x18
ja case.0x14005341f.7
movzx eax, byte [r10 + rcx + 0x54380]
mov ecx, dword [r10 + rax*4 + 0x54364]
add rcx, r10
jmp rcx
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbp], xmm1
movups xmm0, xmmword [r14 + 0x20]
movups xmmword [rbp + 0x10], xmm0
movsd xmm1, qword [r14 + 0x30]
movsd qword [rbp + 0x20], xmm1
lea rcx, [r14 + 8]
mov r8d, 7
lea rdx, str.__TEXT
call fcn.14009d8f0
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x1400535c8
xor r12d, r12d
mov edx, dword [r15 + 0x58]
mov byte [rdi + 0x313], dl
mov ecx, edx
shr ecx, 8
mov byte [rdi + 0x312], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rdi + 0x311], cl
shr edx, 0x18
mov byte [rdi + 0x310], dl
mov eax, dword [rdi + 0x310]
mov dword [rdi + 0x308], eax
movzx r9d, byte [rdi + 0x314]
mov r8d, r9d
shl r8d, 8
movzx eax, byte [rdi + 0x315]
or r8d, eax
mov edx, r8d
shl edx, 8
movzx eax, byte [rdi + 0x316]
or edx, eax
mov ecx, edx
shl ecx, 8
movzx eax, byte [rdi + 0x317]
or ecx, eax
or ecx, 2
mov byte [rdi + 0x317], cl
mov byte [rdi + 0x316], dl
mov byte [rdi + 0x315], r8b
mov byte [rdi + 0x314], r9b
movups xmm0, xmmword [rdi + 0x2ec]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rdi + 0x2fc]
movups xmmword [rbp], xmm1
movups xmm2, xmmword [rdi + 0x30c]
movups xmmword [rbp + 0x10], xmm2
movsd xmm0, qword [rdi + 0x31c]
movsd qword [rbp + 0x20], xmm0
movd eax, xmm2
movzx r13d, al
shl r13d, 8
movdqa xmm0, xmm2
psrldq xmm0, 1
movd eax, xmm0
movzx ecx, al
or r13d, ecx
shl r13d, 8
movdqa xmm0, xmm2
psrldq xmm0, 2
movd eax, xmm0
movzx ecx, al
or r13d, ecx
shl r13d, 8
movdqa xmm0, xmm2
psrldq xmm0, 3
movd eax, xmm0
movzx ecx, al
or r13d, ecx
movdqa xmm0, xmm2
psrldq xmm0, 4
movd eax, xmm0
movzx edx, al
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 5
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 6
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
psrldq xmm2, 7
movd eax, xmm2
movzx ecx, al
or edx, ecx
add r13d, edx
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
jmp 0x140053620
mov edx, dword [rsp + 0x30]
mov eax, edx
neg eax
and eax, 0xfff
add edx, eax
mov dword [rsp + 0x30], edx
movzx ecx, byte [rbp + 0x10]
shl ecx, 8
movzx eax, byte [rbp + 0x11]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp + 0x12]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp + 0x13]
or ecx, eax
mov r12d, edx
sub r12d, ecx
mov byte [rbp + 0x13], dl
mov eax, edx
shr eax, 8
mov byte [rbp + 0x12], al
mov eax, edx
shr eax, 0x10
mov byte [rbp + 0x11], al
mov eax, edx
shr eax, 0x18
mov byte [rbp + 0x10], al
mov r13d, dword [rsp + 0x38]
mov rax, qword [r15]
mov edx, esi
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, 0x38
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [rax + 0x88]
add esi, 0x38
mov dword [rsp + 0x34], esi
lea rdi, [r14 + 0x38]
cmp dword [rsp + 0x50], 0
jne 0x140053789
mov edx, dword [rdi + 0x28]
mov r9, qword [rsp + 0x58]
mov dword [r9 + 0x34c], edx
mov eax, edx
shr eax, 8
movzx r8d, al
movzx eax, dl
shl eax, 8
or r8d, eax
shl r8d, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
or r8d, ecx
shl r8d, 8
shr edx, 0x18
or r8d, edx
movzx ecx, byte [r9 + 0x304]
shl ecx, 8
movzx eax, byte [r9 + 0x305]
or ecx, eax
shl ecx, 8
movzx eax, byte [r9 + 0x306]
or ecx, eax
shl ecx, 8
movzx eax, byte [r9 + 0x307]
or ecx, eax
add r8d, ecx
mov byte [r9 + 0x347], r8b
mov eax, r8d
shr eax, 8
mov byte [r9 + 0x346], al
mov eax, r8d
shr eax, 0x10
mov byte [r9 + 0x345], al
shr r8d, 0x18
mov byte [r9 + 0x344], r8b
movzx edx, byte [r9 + 0x34d]
movzx eax, byte [r9 + 0x34c]
shl eax, 8
or edx, eax
shl edx, 8
movzx eax, byte [r9 + 0x34e]
or edx, eax
shl edx, 8
movzx eax, byte [r9 + 0x34f]
or edx, eax
movzx ecx, byte [r9 + 0x311]
movzx eax, byte [r9 + 0x310]
shl eax, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [r9 + 0x312]
or ecx, eax
shl ecx, 8
movzx eax, byte [r9 + 0x313]
or ecx, eax
sub ecx, edx
mov byte [r9 + 0x34b], cl
mov eax, ecx
shr eax, 8
mov byte [r9 + 0x34a], al
mov eax, ecx
shr eax, 0x10
mov byte [r9 + 0x349], al
shr ecx, 0x18
mov byte [r9 + 0x348], cl
lea rdi, [r9 + 0x324]
mov ecx, 1
jmp 0x1400537ae
movzx ecx, byte [rbp + 0x20]
shl ecx, 8
movzx eax, byte [rbp + 0x21]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp + 0x22]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp + 0x23]
or ecx, eax
jbe 0x1400538dd
mov eax, ecx
mov qword [rsp + 0x70], rax
imul eax, ecx, 0x44
add esi, eax
mov dword [rsp + 0x34], esi
nop
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x50], xmm1
movups xmm2, xmmword [rdi + 0x20]
movaps xmmword [rbp - 0x40], xmm2
movups xmm1, xmmword [rdi + 0x30]
movaps xmmword [rbp - 0x30], xmm1
mov eax, dword [rdi + 0x40]
mov dword [rbp - 0x20], eax
mov eax, dword [rdi + 0x28]
movzx edx, al
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 9
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 0xa
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
psrldq xmm2, 0xb
movd eax, xmm2
movzx ecx, al
or edx, ecx
cmp r13d, edx
ja 0x140053848
lea ecx, [rdx + r12]
mov byte [rbp - 0x35], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x36], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x37], al
shr ecx, 0x18
mov byte [rbp - 0x38], cl
movd eax, xmm1
movzx eax, al
shl eax, 8
movdqa xmm0, xmm1
psrldq xmm0, 1
movd ecx, xmm0
movzx edx, cl
or eax, edx
shl eax, 8
movdqa xmm0, xmm1
psrldq xmm0, 2
movd ecx, xmm0
movzx edx, cl
or eax, edx
shl eax, 8
psrldq xmm1, 3
movd ecx, xmm1
movzx edx, cl
or eax, edx
cmp r13d, eax
ja 0x1400538ac
lea ecx, [rax + r12]
mov byte [rbp - 0x2d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x2e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x2f], al
shr ecx, 0x18
mov byte [rbp - 0x30], cl
mov rax, qword [r15]
mov r8d, 0x44
lea rdx, [rbp - 0x60]
mov rcx, r15
call qword [rax + 0x88]
add rdi, 0x44
sub qword [rsp + 0x70], 1
jne 0x1400537c0
cmp dword [rsp + 0x50], 0
je 0x1400542a9
movzx edi, byte [r14 + 0x24]
shl edi, 8
movzx eax, byte [r14 + 0x25]
or edi, eax
shl edi, 8
movzx eax, byte [r14 + 0x26]
or edi, eax
shl edi, 8
movzx eax, byte [r14 + 0x27]
or edi, eax
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14001ef30
nop
mov r13, qword [rsp + 0x58]
mov rcx, qword [r13 + 0x10]
mov r9, qword [rcx]
movzx edx, byte [r14 + 0x20]
shl rdx, 8
movzx eax, byte [r14 + 0x21]
or rdx, rax
shl rdx, 8
movzx eax, byte [r14 + 0x22]
or rdx, rax
shl rdx, 8
movzx eax, byte [r14 + 0x23]
or rdx, rax
xor r8d, r8d
call qword [r9 + 0x48]
mov rcx, qword [r13 + 0x10]
mov rax, qword [rcx]
mov r8d, edi
lea rdx, [rsp + 0x40]
call qword [rax + 0x78]
movzx ecx, byte [r14 + 0x20]
shl ecx, 8
movzx eax, byte [r14 + 0x21]
or ecx, eax
shl ecx, 8
movzx eax, byte [r14 + 0x22]
or ecx, eax
shl ecx, 8
movzx eax, byte [r14 + 0x23]
or ecx, eax
mov edx, dword [r13 + 0x1e0]
sub edx, ecx
movzx ecx, byte [r14 + 0x24]
shl ecx, 8
movzx eax, byte [r14 + 0x25]
or ecx, eax
shl ecx, 8
movzx eax, byte [r14 + 0x26]
or ecx, eax
shl ecx, 8
movzx eax, byte [r14 + 0x27]
or ecx, eax
cmp edx, ecx
jae 0x1400539d6
add rdx, qword [rsp + 0x40]
mov eax, dword [r13 + 0x1e8]
cmp dword [rdx], eax
jne 0x14005433c
mov eax, dword [r13 + 0x180]
mov dword [rdx], eax
mov rax, qword [r15]
mov r13d, dword [rsp + 0x30]
mov edx, r13d
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [rax + 0x70]
add r13d, edi
mov dword [rsp + 0x30], r13d
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x140053b19
movzx ecx, byte [r8 - 3]
movzx eax, byte [r8 - 4]
shl eax, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [r8 - 2]
or ecx, eax
shl ecx, 8
movzx eax, byte [r8 - 1]
or ecx, eax
mov eax, r8d
xor eax, 0xfefdbeeb
cmp ecx, eax
jne 0x14005432f
movzx ecx, byte [r8 - 7]
movzx eax, byte [r8 - 8]
shl eax, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [r8 - 6]
or ecx, eax
shl ecx, 8
movzx eax, byte [r8 - 5]
or ecx, eax
mov r9d, dword [rsp + 0x48]
cmp ecx, r9d
jne 0x140054356
lea rcx, [r8 + r9]
movzx edx, byte [rcx + 1]
movzx eax, byte [rcx]
shl eax, 8
or edx, eax
shl edx, 8
movzx eax, byte [rcx + 2]
or edx, eax
shl edx, 8
movzx eax, byte [rcx + 3]
or edx, eax
mov eax, r8d
xor eax, 0x7efffeea
cmp edx, eax
jne 0x140054349
test r9d, r9d
jg 0x140053aca
mov r8d, 0xb6
lea rdx, [0x1401e3a10]
lea rcx, str._int_b_size___0
call fcn.14009d2e8
mov r8, qword [rsp + 0x40]
mov dword [r8 - 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax - 4], 0
mov eax, dword [rsp + 0x48]
add rax, qword [rsp + 0x40]
mov dword [rax], 0
mov ecx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov dword [rcx + rax + 4], 0
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
call fcn.14009d3f4
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
jmp 0x140053b3a
cmp dword [rsp + 0x48], 0
je 0x140053b3a
mov r8d, 0x6d
lea rdx, [0x1401e3a10]
lea rcx, str.b_size__0
call fcn.14009d2e8
nop
jmp 0x1400542ae
movups xmm2, xmmword [r14]
movups xmmword [rsp + 0x70], xmm2
movsd xmm0, qword [r14 + 0x10]
movsd qword [rbp - 0x80], xmm0
mov rdx, qword [r14 + 8]
mov rax, rdx
shr rax, 8
movzx r8d, al
mov eax, edx
movzx ecx, al
shl ecx, 8
or r8d, ecx
shl r8d, 8
mov rax, rdx
shr rax, 0x10
movzx ecx, al
or r8d, ecx
shl r8d, 8
shr rdx, 0x18
movzx eax, dl
or r8d, eax
mov r13d, dword [rsp + 0x38]
cmp r13d, r8d
ja 0x140053bb7
lea ecx, [r8 + r12]
mov byte [rsp + 0x7b], cl
mov eax, ecx
shr eax, 8
mov byte [rsp + 0x7a], al
mov eax, ecx
shr eax, 0x10
mov byte [rsp + 0x79], al
shr ecx, 0x18
mov byte [rsp + 0x78], cl
mov rdx, qword [rbp - 0x80]
mov rax, rdx
shr rax, 8
movzx r8d, al
movzx eax, dl
shl eax, 8
or r8d, eax
shl r8d, 8
mov rax, rdx
shr rax, 0x10
movzx ecx, al
or r8d, ecx
shl r8d, 8
shr rdx, 0x18
movzx eax, dl
or r8d, eax
cmp r13d, r8d
ja 0x140053c10
lea ecx, [r8 + r12]
mov byte [rbp - 0x7d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x7e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x7f], al
shr ecx, 0x18
mov byte [rbp - 0x80], cl
mov rax, qword [r15]
mov edx, esi
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, 0x18
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [rax + 0x88]
add esi, 0x18
jmp 0x1400542a5
movups xmm0, xmmword [r14]
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [r14 + 0x10]
movaps xmmword [rbp - 0x50], xmm1
movups xmm2, xmmword [r14 + 0x20]
movaps xmmword [rbp - 0x40], xmm2
movups xmm1, xmmword [r14 + 0x30]
movaps xmmword [rbp - 0x30], xmm1
movups xmm3, xmmword [r14 + 0x40]
movaps xmmword [rbp - 0x20], xmm3
movd eax, xmm2
movzx edx, al
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 1
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 2
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
psrldq xmm2, 3
movd eax, xmm2
movzx ecx, al
or edx, ecx
mov r13d, dword [rsp + 0x38]
cmp r13d, edx
ja 0x140053cd2
lea ecx, [rdx + r12]
mov byte [rbp - 0x3d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x3e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x3f], al
shr ecx, 0x18
mov byte [rbp - 0x40], cl
movzx ecx, byte [rbp - 0x38]
shl ecx, 8
movzx eax, byte [rbp - 0x37]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x36]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x35]
or ecx, eax
cmp r13d, ecx
ja 0x140053d12
add ecx, r12d
mov byte [rbp - 0x35], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x36], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x37], al
shr ecx, 0x18
mov byte [rbp - 0x38], cl
movd eax, xmm1
movzx edx, al
shl edx, 8
movdqa xmm0, xmm1
psrldq xmm0, 1
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
movdqa xmm0, xmm1
psrldq xmm0, 2
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
psrldq xmm1, 3
movd eax, xmm1
movzx ecx, al
or edx, ecx
cmp r13d, edx
ja 0x140053d76
lea ecx, [rdx + r12]
mov byte [rbp - 0x2d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x2e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x2f], al
shr ecx, 0x18
mov byte [rbp - 0x30], cl
movzx ecx, byte [rbp - 0x28]
shl ecx, 8
movzx eax, byte [rbp - 0x27]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x26]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x25]
or ecx, eax
cmp r13d, ecx
ja 0x140053db6
add ecx, r12d
mov byte [rbp - 0x25], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x26], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x27], al
shr ecx, 0x18
mov byte [rbp - 0x28], cl
movd eax, xmm3
movzx edx, al
shl edx, 8
movdqa xmm0, xmm3
psrldq xmm0, 1
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
movdqa xmm0, xmm3
psrldq xmm0, 2
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
psrldq xmm3, 3
movd eax, xmm3
movzx ecx, al
or edx, ecx
cmp r13d, edx
ja 0x140053e1a
lea ecx, [rdx + r12]
mov byte [rbp - 0x1d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x1e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x1f], al
shr ecx, 0x18
mov byte [rbp - 0x20], cl
movzx ecx, byte [rbp - 0x18]
shl ecx, 8
movzx eax, byte [rbp - 0x17]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x16]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x15]
or ecx, eax
cmp r13d, ecx
ja 0x140053e5a
add ecx, r12d
mov byte [rbp - 0x15], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x16], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x17], al
shr ecx, 0x18
mov byte [rbp - 0x18], cl
mov rax, qword [r15]
mov edx, esi
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, 0x50
lea rdx, [rbp - 0x60]
mov rcx, r15
call qword [rax + 0x88]
add esi, 0x50
jmp 0x1400542a5
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [r14 + 0x20]
movsd qword [rbp - 0x70], xmm0
mov eax, dword [rsp + 0x78]
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x78], ebx
mov rax, qword [r15]
mov edx, esi
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, 0x28
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [rax + 0x88]
add esi, 0x28
jmp 0x1400542a5
cmp ecx, 0x24
ja 0x14005411e
je case.0x14005341f.3
sub ecx, 0x1b
je case.0x14005341f.3
sub ecx, 1
je case.0x14005341f.3
sub ecx, 1
je case.0x14005341f.6
sub ecx, 1
je case.0x14005341f.6
cmp ecx, 4
jne case.0x14005341f.7
movups xmm1, xmmword [r14]
movups xmmword [rsp + 0x70], xmm1
movups xmm3, xmmword [r14 + 0x10]
movups xmmword [rbp - 0x80], xmm3
movups xmm2, xmmword [r14 + 0x20]
movups xmmword [rbp - 0x70], xmm2
mov rdx, qword [r14 + 8]
mov rax, rdx
shr rax, 8
movzx r8d, al
mov eax, edx
movzx ecx, al
shl ecx, 8
or r8d, ecx
shl r8d, 8
mov rax, rdx
shr rax, 0x10
movzx ecx, al
or r8d, ecx
shl r8d, 8
shr rdx, 0x18
movzx eax, dl
or r8d, eax
mov r13d, dword [rsp + 0x38]
cmp r13d, r8d
ja 0x140053f96
lea ecx, [r8 + r12]
mov byte [rsp + 0x7b], cl
mov eax, ecx
shr eax, 8
mov byte [rsp + 0x7a], al
mov eax, ecx
shr eax, 0x10
mov byte [rsp + 0x79], al
shr ecx, 0x18
mov byte [rsp + 0x78], cl
movq rdx, xmm3
mov rax, rdx
shr rax, 8
movzx r8d, al
movd eax, xmm3
movzx ecx, al
shl ecx, 8
or r8d, ecx
shl r8d, 8
mov rax, rdx
shr rax, 0x10
movzx ecx, al
or r8d, ecx
shl r8d, 8
shr rdx, 0x18
movzx eax, dl
or r8d, eax
cmp r13d, r8d
ja 0x140053ff4
lea ecx, [r8 + r12]
mov byte [rbp - 0x7d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x7e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x7f], al
shr ecx, 0x18
mov byte [rbp - 0x80], cl
mov rdx, qword [rbp - 0x78]
mov rax, rdx
shr rax, 8
movzx r8d, al
movzx eax, dl
shl eax, 8
or r8d, eax
shl r8d, 8
mov rax, rdx
shr rax, 0x10
movzx ecx, al
or r8d, ecx
shl r8d, 8
shr rdx, 0x18
movzx eax, dl
or r8d, eax
cmp r13d, r8d
ja 0x14005404d
lea ecx, [r8 + r12]
mov byte [rbp - 0x75], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x76], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x77], al
shr ecx, 0x18
mov byte [rbp - 0x78], cl
movd eax, xmm2
movzx edx, al
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 1
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
movdqa xmm0, xmm2
psrldq xmm0, 2
movd eax, xmm0
movzx ecx, al
or edx, ecx
shl edx, 8
psrldq xmm2, 3
movd eax, xmm2
movzx ecx, al
or edx, ecx
cmp r13d, edx
ja 0x1400540b1
lea ecx, [rdx + r12]
mov byte [rbp - 0x6d], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x6e], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x6f], al
shr ecx, 0x18
mov byte [rbp - 0x70], cl
movzx ecx, byte [rbp - 0x68]
shl ecx, 8
movzx eax, byte [rbp - 0x67]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x66]
or ecx, eax
shl ecx, 8
movzx eax, byte [rbp - 0x65]
or ecx, eax
cmp r13d, ecx
ja 0x1400540f1
add ecx, r12d
mov byte [rbp - 0x65], cl
mov eax, ecx
shr eax, 8
mov byte [rbp - 0x66], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0x67], al
shr ecx, 0x18
mov byte [rbp - 0x68], cl
mov rax, qword [r15]
mov edx, esi
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, 0x30
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [rax + 0x88]
add esi, 0x30
jmp 0x1400542a5
cmp ecx, 0x26
je case.0x14005341f.6
cmp ecx, 0x29
je case.0x14005341f.6
cmp ecx, 0x2a
je case.0x14005341f.3
cmp ecx, 0x2b
je case.0x14005341f.6
movzx esi, byte [r14 + 4]
shl esi, 8
movzx eax, byte [r14 + 5]
or esi, eax
shl esi, 8
movzx eax, byte [r14 + 6]
or esi, eax
shl esi, 8
movzx eax, byte [r14 + 7]
or esi, eax
shl r13d, 8
or r13d, r8d
shl r13d, 8
or r13d, edx
mov edi, r14d
mov rax, qword [rsp + 0x58]
sub edi, dword [rax + 0x1d0]
mov ecx, 2
call fcn.14009d80c
mov rcx, rax
mov dword [rsp + 0x20], esi
mov r9d, r13d
mov r8d, edi
lea rdx, str.Unrecognized_Macho_cmd__offset0x_lx__cmd0x_lx__size0x_lx_n
call fcn.140014990
mov esi, dword [rsp + 0x34]
mov rax, qword [r15]
mov edx, esi
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov r9, qword [r15]
movzx r8d, byte [r14 + 4]
shl r8d, 8
movzx eax, byte [r14 + 5]
or r8d, eax
shl r8d, 8
movzx eax, byte [r14 + 6]
or r8d, eax
shl r8d, 8
movzx eax, byte [r14 + 7]
or r8d, eax
mov rdx, r14
mov rcx, r15
call qword [r9 + 0x88]
movzx ecx, byte [r14 + 4]
shl ecx, 8
movzx eax, byte [r14 + 5]
or ecx, eax
shl ecx, 8
movzx eax, byte [r14 + 6]
or ecx, eax
shl ecx, 8
movzx eax, byte [r14 + 7]
or ecx, eax
add esi, ecx
jmp 0x1400542a5
mov rdx, qword [r14 + 8]
mov rax, rdx
shr rax, 8
movzx r8d, al
mov eax, edx
movzx ecx, al
shl ecx, 8
mov rax, rdx
or r8d, ecx
shr rax, 0x10
movzx ecx, al
shl r8d, 8
shr rdx, 0x18
or r8d, ecx
movzx eax, dl
shl r8d, 8
or r8d, eax
movups xmm1, xmmword [r14]
cmp r9d, r8d
movups xmmword [rsp + 0x70], xmm1
ja 0x14005427d
lea ecx, [r8 + r12]
mov eax, ecx
shr eax, 8
mov byte [rsp + 0x7a], al
mov eax, ecx
shr eax, 0x10
mov byte [rsp + 0x7b], cl
shr ecx, 0x18
mov byte [rsp + 0x79], al
mov byte [rsp + 0x78], cl
mov rax, qword [r15]
xor r8d, r8d
mov edx, esi
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [r15]
mov r8d, 0x10
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [rax + 0x88]
add esi, 0x10
mov dword [rsp + 0x34], esi
mov r13d, dword [rsp + 0x30]
movzx ecx, byte [r14 + 5]
movzx eax, byte [r14 + 4]
shl rax, 8
or rcx, rax
shl rcx, 8
movzx eax, byte [r14 + 6]
or rcx, rax
shl rcx, 8
movzx eax, byte [r14 + 7]
or rcx, rax
add r14, rcx
mov rdi, qword [rsp + 0x58]
cmp r14, qword [rsp + 0x60]
jae 0x1400542f0
mov r9d, dword [rsp + 0x38]
jmp 0x1400533bc
mov rax, qword [r15]
mov edx, r13d
xor r8d, r8d
mov rcx, r15
call qword [rax + 0x48]
mov r8, qword [rsp + 0x68]
mov rdx, r15
mov rcx, rdi
call fcn.140052490
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.14008b4b0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.memory_clobbered_before_allocated_block_1
call fcn.14000d730
nop
lea rcx, str.__mod_init_func_inconsistent
call fcn.14000d3a0
nop
lea rcx, str.memory_clobbered_past_end_of_allocated_block
call fcn.14000d730
int3
lea rcx, str.memory_clobbered_before_allocated_block_2
call fcn.14000d730
int3