Function at 0x140053f10
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push r12
sub rsp, 0x4f8
lea rdx, [rsp + 0x88]
mov dword [rsp + 0xa4], 0xff
mov rbx, rcx
xor r12d, r12d
call fcn.140053a30
test rax, rax
jne 0x140053f57
add rsp, 0x4f8
pop r12
pop rbx
ret
mov eax, dword [rbx + 4]
mov r8d, eax
mov r9d, dword [rsp + 0xa0]
neg r8d
mov dword [rsp + 0x78], eax
cmovs r8d, eax
mov qword [rsp + 0x510], rbp
mov eax, dword [rsp + 0x94]
mov ebp, dword [rsp + 0x8c]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
mov qword [rsp + 0x4f0], rsi
mov esi, dword [rsp + 0x90]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x9c]
mov qword [rsp + 0x4e8], rdi
mov edi, dword [rsp + 0x88]
mov dword [rsp + 0x538], eax
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x4e0], r13
mov dword [rbx + 4], r8d
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x530], edi
cmp esi, 0xc
jne 0x14005400c
cmp edi, 0x18
jge 0x140054022
lea ecx, [rbp - 0x26]
mov eax, 0x55555556
imul ecx
mov r12d, edx
shr r12d, 0x1f
add r12d, edx
jmp 0x14005401f
cmp edi, 0x10
jge 0x14005401f
mov r12d, ebp
sub r12d, esi
sub r12d, 0xe
sar r12d, 2
cmp edi, 0x18
jne 0x140054035
cmp r9d, 0xff000000
jne 0x140054035
mov r13d, 3
jmp 0x140054043
xor r13d, r13d
test r9d, r9d
setne r13b
add r13d, 3
mov dword [rbx + 8], r13d
mov ecx, dword [rbx]
mov dword [rsp + 0x20], r13d
test ecx, ecx
js 0x14005519c
je 0x140054069
mov eax, 0x7fffffff
cdq
idiv ecx
cmp r13d, eax
jg 0x14005519c
mov r9d, r13d
imul r9d, ecx
test r9d, r9d
js 0x14005519c
test r8d, r8d
js 0x14005519c
je 0x140054096
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x14005519c
mov qword [rsp + 0x4d8], r14
test ecx, ecx
jne 0x1400540ab
mov r9d, ecx
imul r9d, r13d
jmp 0x1400540c3
mov eax, 0x7fffffff
cdq
idiv ecx
cmp r13d, eax
jg 0x140055187
mov r9d, r13d
imul r9d, ecx
test r8d, r8d
je 0x1400540da
mov eax, 0x7fffffff
cdq
idiv r8d
cmp r9d, eax
jg 0x140055187
imul ecx, r8d
mov eax, r13d
imul eax, ecx
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x80], rax
mov r14, rax
test rax, rax
je 0x140055187
mov qword [rsp + 0x4d0], r15
cmp edi, 0x10
jge 0x140054950
xor edi, edi
test r12d, r12d
je 0x14005493e
cmp r12d, 0x100
jg 0x14005493e
test r12d, r12d
jle 0x1400543e3
mov r14d, dword [rsp + 0x24]
lea rsi, [rbx + 0x30]
xor r15d, r15d
movsxd rbp, r12d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xb8]
cmp rax, qword [rbx + 0xc0]
jae 0x14005416f
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400541ed
cmp dword [rbx + 0x30], edi
lea rsi, [rbx + 0x30]
je 0x1400541eb
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x10]
test eax, eax
jne 0x1400541b2
movq xmm0, rbx
mov dword [rsi], edi
punpcklqdq xmm0, xmm0
paddq xmm0, xmmword [0x1400849f0]
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], dil
jmp 0x1400541d5
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmmword [0x1400849e0]
movdqu xmmword [rbx + 0xb8], xmm1
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400541ed
xor cl, cl
mov r13, rsi
mov byte [rsp + r15*4 + 0xd2], cl
cmp rax, qword [rbx + 0xc0]
jae 0x140054210
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054289
cmp dword [rsi], edi
je 0x140054287
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x10]
test eax, eax
jne 0x14005424e
movq xmm0, rbx
mov dword [rsi], edi
punpcklqdq xmm0, xmm0
paddq xmm0, xmmword [0x1400849f0]
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], dil
jmp 0x140054271
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmmword [0x1400849e0]
movdqu xmmword [rbx + 0xb8], xmm1
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054289
xor cl, cl
mov byte [rsp + r15*4 + 0xd1], cl
cmp rax, qword [rbx + 0xc0]
jae 0x1400542ad
movzx ecx, byte [rax]
lea rsi, [rbx + 0x30]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054326
cmp dword [rsi], edi
je 0x140054324
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x10]
test eax, eax
jne 0x1400542eb
movq xmm0, rbx
mov dword [rsi], edi
punpcklqdq xmm0, xmm0
paddq xmm0, xmmword [0x1400849f0]
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], dil
jmp 0x14005430e
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmmword [0x1400849e0]
movdqu xmmword [rbx + 0xb8], xmm1
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054326
xor cl, cl
mov byte [rsp + r15*4 + 0xd0], cl
cmp r14d, 0xc
je 0x1400543b9
cmp rax, qword [rbx + 0xc0]
jae 0x14005434d
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x1400543b9
cmp dword [r13], edi
je 0x1400543b9
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x10]
test eax, eax
jne 0x14005438f
movq xmm0, rbx
mov dword [r13], edi
punpcklqdq xmm0, xmm0
paddq xmm0, xmmword [0x1400849f0]
movdqu xmmword [rbx + 0xb8], xmm0
mov rax, qword [rbx + 0xb8]
mov byte [rax], dil
jmp 0x1400543b2
cdqe
movq xmm1, rbx
add rax, rbx
movq xmm0, rax
punpcklqdq xmm1, xmm0
paddq xmm1, xmmword [0x1400849e0]
movdqu xmmword [rbx + 0xb8], xmm1
inc qword [rbx + 0xb8]
mov byte [rsp + r15*4 + 0xd3], 0xff
inc r15
cmp r15, rbp
jl 0x140054150
mov r14, qword [rsp + 0x80]
mov ebp, dword [rsp + 0x28]
mov esi, dword [rsp + 0x24]
mov r13d, dword [rsp + 0x20]
xor eax, eax
cmp esi, 0xc
setne al
add eax, 3
imul eax, r12d
sub ebp, eax
sub ebp, esi
sub ebp, 0xe
jns 0x14005440b
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x140054446
cmp qword [rbx + 0x10], rdi
je 0x14005443c
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, ebp
jge 0x14005443c
mov rax, qword [rbx + 0xc0]
sub ebp, ecx
mov rcx, qword [rbx + 0x28]
mov edx, ebp
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x140054446
movsxd rax, ebp
add qword [rbx + 0xb8], rax
mov r10d, dword [rsp + 0x530]
cmp r10d, 1
jne 0x140054461
mov r12d, dword [rbx]
add r12d, 7
shr r12d, 3
jmp 0x14005447f
cmp r10d, 4
jne 0x140054472
mov r12d, dword [rbx]
inc r12d
shr r12d, 1
jmp 0x14005447f
cmp r10d, 8
jne 0x1400548ea
mov r12d, dword [rbx]
mov eax, dword [rbx + 4]
neg r12d
and r12d, 3
mov edx, eax
cmp r10d, 1
jne 0x140054698
mov dword [rsp + 0x530], edi
test eax, eax
jle 0x140055099
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0xb8]
mov r15d, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400544d5
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054535
cmp dword [rbx + 0x30], 0
je 0x140054533
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x10]
test eax, eax
jne 0x140054511
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc0], rax
lea rax, [rbx + 0x39]
mov byte [rbx + 0x38], 0
movzx ecx, byte [rbx + 0x38]
mov qword [rbx + 0xb8], rax
jmp 0x140054535
movsxd rcx, eax
lea rax, [rbx + 0x39]
add rcx, 0x38
add rcx, rbx
mov qword [rbx + 0xc0], rcx
movzx ecx, byte [rbx + 0x38]
mov qword [rbx + 0xb8], rax
jmp 0x140054535
xor cl, cl
mov edx, dword [rbx]
xor ebp, ebp
movzx r9d, cl
test edx, edx
jle 0x140054638
mov r8d, edx
nop dword [rax + rax]
mov eax, r9d
mov ecx, r15d
sar eax, cl
and eax, 1
lea rcx, [rax*4]
movzx eax, byte [rsp + rcx + 0xd0]
mov byte [rdi + r14], al
movzx eax, byte [rsp + rcx + 0xd1]
mov byte [rdi + r14 + 1], al
movzx eax, byte [rsp + rcx + 0xd2]
mov byte [rdi + r14 + 2], al
add rdi, 3
cmp r13d, 4
jne 0x14005459b
mov byte [rdi + r14], 0xff
inc rdi
lea eax, [rbp + 1]
cmp eax, edx
je 0x140054638
sub r15d, 1
mov edx, r8d
jns 0x14005462b
mov rax, qword [rbx + 0xb8]
mov r15d, 7
cmp rax, qword [rbx + 0xc0]
jae 0x1400545d4
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054627
cmp dword [rbx + 0x30], 0
je 0x140054625
mov r8d, dword [rbx + 0x34]
lea rdx, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x10]
test eax, eax
jne 0x140054601
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rbx + 0xc0], rax
mov byte [rbx + 0x38], 0
jmp 0x140054612
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rbx + 0xc0], rcx
movzx ecx, byte [rbx + 0x38]
lea rax, [rbx + 0x39]
mov qword [rbx + 0xb8], rax
mov edx, dword [rbx]
jmp 0x140054627
xor cl, cl
movzx r9d, cl
inc ebp
mov r8d, edx
cmp ebp, edx
jl 0x140054550
cmp qword [rbx + 0x10], 0
je 0x14005466c
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x14005466c
mov rax, qword [rbx + 0xc0]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x140054676
mov eax, r12d
add qword [rbx + 0xb8], rax
mov ecx, dword [rsp + 0x530]
mov eax, dword [rbx + 4]
inc ecx
mov dword [rsp + 0x530], ecx
mov edx, eax
cmp ecx, eax
jl 0x1400544b0
jmp 0x140055099
xor r15d, r15d
mov dword [rsp + 0x538], r15d
test eax, eax
jle 0x140055099
lea rsi, [rbx + 0xc0]
xor ebp, ebp
cmp dword [rbx], ebp
jle 0x140054887
nop dword [rax]
mov r8, qword [rbx + 0xb8]
cmp r8, qword [rsi]
jae 0x1400546dc
movzx ecx, byte [r8]
inc r8
mov qword [rbx + 0xb8], r8
jmp 0x14005473d
cmp dword [rbx + 0x30], 0
je 0x14005473b
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + 0x10]
mov qword [rbx + 0xb8], r15
test eax, eax
jne 0x14005470f
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rsi], rax
mov byte [r15], 0
jmp 0x14005471c
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rsi], rcx
mov rax, qword [rbx + 0xb8]
mov r10d, dword [rsp + 0x530]
movzx ecx, byte [rax]
lea r8, [rax + 1]
mov qword [rbx + 0xb8], r8
jmp 0x14005473d
xor cl, cl
xor r9d, r9d
movzx eax, cl
cmp r10d, 4
jne 0x140054753
mov r9d, eax
and r9d, 0xf
shr eax, 4
movsxd rcx, edi
lea rdx, [rax*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
cmp r13d, 4
jne 0x14005479e
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
lea eax, [rbp + 1]
cmp eax, dword [rbx]
je 0x14005487f
cmp r10d, 8
jne 0x140054829
cmp r8, qword [rsi]
jae 0x1400547c5
movzx ecx, byte [r8]
lea rax, [r8 + 1]
mov qword [rbx + 0xb8], rax
jmp 0x140054825
cmp dword [rbx + 0x30], 0
je 0x140054823
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + 0x10]
mov qword [rbx + 0xb8], r15
test eax, eax
jne 0x1400547f8
mov dword [rbx + 0x30], eax
lea rax, [rbx + 0x39]
mov qword [rsi], rax
mov byte [r15], 0
jmp 0x140054805
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rsi], rcx
mov rax, qword [rbx + 0xb8]
mov r10d, dword [rsp + 0x530]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054825
xor cl, cl
movzx r9d, cl
movsxd rcx, edi
lea rdx, [r9*4]
movzx eax, byte [rsp + rdx + 0xd0]
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd1]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
movzx eax, byte [rsp + rdx + 0xd2]
movsxd rcx, edi
inc edi
mov byte [rcx + r14], al
cmp r13d, 4
jne 0x140054874
movsxd rax, edi
inc edi
mov byte [rax + r14], 0xff
add ebp, 2
cmp ebp, dword [rbx]
jl 0x1400546c0
mov r15d, dword [rsp + 0x538]
cmp qword [rbx + 0x10], 0
lea rsi, [rbx + 0xc0]
je 0x1400548ba
mov ecx, dword [rsi]
sub ecx, dword [rbx + 0xb8]
cmp ecx, r12d
jge 0x1400548ba
mov rax, qword [rsi]
mov edx, r12d
sub edx, ecx
mov qword [rbx + 0xb8], rax
mov rcx, qword [rbx + 0x28]
call qword [rbx + 0x18]
jmp 0x1400548c4
mov eax, r12d
add qword [rbx + 0xb8], rax
mov eax, dword [rbx + 4]
inc r15d
mov r10d, dword [rsp + 0x530]
mov edx, eax
mov dword [rsp + 0x538], r15d
cmp r15d, eax
jl 0x1400546b2
jmp 0x140055099
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.bad_bpp
mov qword [0x140093950], rax
xor eax, eax
mov r15, qword [rsp + 0x4d0]
mov r14, qword [rsp + 0x4d8]
mov rdi, qword [rsp + 0x4e8]
mov rsi, qword [rsp + 0x4f0]
mov rbp, qword [rsp + 0x510]
mov r13, qword [rsp + 0x4e0]
add rsp, 0x4f8
pop r12
pop rbx
ret
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.invalid
jmp 0x1400548fa
xor edx, edx
sub ebp, esi
sub ebp, 0xe
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], edx
mov r11d, edx
mov dword [rsp + 0x20], edx
mov edi, edx
mov dword [rsp + 0x24], edx
mov r15d, edx
mov r9d, edx
mov r8d, edx
mov r12d, edx
jns 0x14005498a
mov rax, qword [rbx + 0xc0]
mov qword [rbx + 0xb8], rax
jmp 0x1400549d0
cmp qword [rbx + 0x10], rdx
je 0x1400549c6
mov ecx, dword [rbx + 0xc0]
sub ecx, dword [rbx + 0xb8]
cmp ecx, ebp
jge 0x1400549c6
mov rax, qword [rbx + 0xc0]
sub ebp, ecx
mov rcx, qword [rbx + 0x28]
mov edx, ebp
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
mov r9d, edi
mov r8d, edi
mov r11d, edi
xor edx, edx
jmp 0x1400549d0
movsxd rax, ebp
add qword [rbx + 0xb8], rax
mov ecx, dword [rsp + 0x530]
cmp ecx, 0x18
jne 0x1400549e3
mov eax, dword [rbx]
lea eax, [rax + rax*2]
jmp 0x1400549f0
cmp ecx, 0x10
jne 0x1400549ee
mov eax, dword [rbx]
add eax, eax
jmp 0x1400549f0
mov eax, edx
neg eax
and eax, 3
mov dword [rsp + 0x40], eax
cmp ecx, 0x18
jne 0x140054a12
mov r10d, 1
mov esi, edi
mov qword [rsp + 0x48], r10
mov ebp, edi
jmp 0x140054c0f
mov eax, dword [rsp + 0x538]
cmp ecx, 0x20
mov ecx, dword [rsp + 0x2c]
mov qword [rsp + 0x48], rdx
jne 0x140054a76
mov qword [rsp + 0x48], rdx
cmp eax, 0xff
jne 0x140054a76
mov qword [rsp + 0x48], rdx
cmp ecx, 0xff00
jne 0x140054a76
cmp dword [rsp + 0x34], 0xff0000
mov qword [rsp + 0x48], rdx
jne 0x140054a76
mov r10d, dword [rsp + 0x50]
mov qword [rsp + 0x48], rdx
cmp r10d, 0xff000000
jne 0x140054a9b
mov r10d, 2
mov esi, edi
mov qword [rsp + 0x48], r10
mov ebp, edi
jmp 0x140054c0f
mov r9d, dword [rsp + 0x34]
test r9d, r9d
je 0x140055172
test ecx, ecx
je 0x140055172
test eax, eax
je 0x140055172
mov r10d, dword [rsp + 0x50]
jmp 0x140054aa0
mov r9d, dword [rsp + 0x34]
mov ecx, r9d
call fcn.1400539c0
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rsp + 0x2c]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea esi, [rax - 7]
add edx, ecx
mov dword [rsp + 0x38], esi
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx edi, al
call fcn.1400539c0
mov edx, r9d
mov ecx, r9d
mov r9d, dword [rsp + 0x538]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea ebp, [rax - 7]
add edx, ecx
mov dword [rsp + 0x3c], ebp
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r9d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r15d, al
call fcn.1400539c0
sub eax, 7
mov edx, r9d
shr edx, 1
mov ecx, r9d
and edx, 0x55555555
mov dword [rsp + 0x20], eax
and ecx, 0x55555555
add edx, ecx
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
mov ecx, r10d
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r9d, al
call fcn.1400539c0
mov edx, r10d
mov ecx, r10d
mov r10, qword [rsp + 0x48]
and ecx, 0x55555555
shr edx, 1
and edx, 0x55555555
lea r11d, [rax - 7]
add edx, ecx
mov dword [rsp + 0x24], r11d
mov ecx, edx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
mov eax, edx
shr eax, 8
add edx, eax
mov eax, edx
shr eax, 0x10
add eax, edx
movzx r8d, al
mov eax, dword [rbx + 4]
mov edx, eax
mov dword [rsp + 0x28], r12d
test eax, eax
jle 0x140055099
mov eax, esi
neg eax
mov dword [rsp + 0x58], eax
mov eax, 8
mov ecx, eax
sub ecx, edi
mov dword [rsp + 0x5c], ecx
mov ecx, ebp
neg ecx
mov dword [rsp + 0x60], ecx
mov ecx, eax
sub ecx, r15d
mov dword [rsp + 0x64], ecx
mov ecx, dword [rsp + 0x20]
neg ecx
mov dword [rsp + 0x68], ecx
mov ecx, eax
sub ecx, r9d
mov dword [rsp + 0x6c], ecx
mov ecx, r11d
neg ecx
sub eax, r8d
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x74], eax
mov eax, edi
lea rdi, [rbx + 0xc0]
mov ecx, r15d
mov qword [rsp + 0xb0], rax
mov eax, r9d
mov r15d, r8d
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xa8], r15
nop dword [rax]
mov eax, dword [rbx]
movsxd rcx, r12d
test r10, r10
je 0x140054ed5
mov dword [rsp + 0x54], 0
test eax, eax
jle 0x140055041
lea rbp, [r14 + rcx]
mov r14d, dword [rsp + 0x30]
nop word [rax + rax]
mov rcx, qword [rdi]
lea rsi, [rbx + 0x30]
mov rax, qword [rbx + 0xb8]
cmp rax, rcx
jb 0x140054d2b
cmp dword [rsi], 0
je 0x140054d45
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + 0x10]
mov qword [rbx + 0xb8], r15
test eax, eax
jne 0x140054d17
mov dword [rsi], eax
lea rax, [rbx + 0x39]
mov qword [rdi], rax
mov byte [r15], 0
mov rcx, qword [rdi]
jmp 0x140054d24
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rdi], rcx
mov rax, qword [rbx + 0xb8]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov byte [rbp + 2], dl
cmp rax, rcx
jae 0x140054d49
mov r15, rsi
jmp 0x140054d95
mov byte [rbp + 2], 0
cmp dword [rsi], 0
je 0x140054db9
mov r8d, dword [rbx + 0x34]
lea r15, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, r15
call qword [rbx + 0x10]
mov qword [rbx + 0xb8], r15
test eax, eax
jne 0x140054d7d
mov dword [rsi], eax
lea rax, [rbx + 0x39]
mov qword [rdi], rax
mov byte [r15], 0
mov rcx, qword [rdi]
jmp 0x140054d8a
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rdi], rcx
mov rax, qword [rbx + 0xb8]
lea r15, [rbx + 0x30]
movzx edx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
mov byte [rbp + 1], dl
cmp rax, rcx
jae 0x140054dc0
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054e1a
mov r15, rsi
mov byte [rbp + 1], 0
cmp dword [rsi], 0
je 0x140054e18
mov r8d, dword [rbx + 0x34]
lea rsi, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
call qword [rbx + 0x10]
mov qword [rbx + 0xb8], rsi
test eax, eax
jne 0x140054df1
mov dword [r15], eax
lea rax, [rbx + 0x39]
mov qword [rdi], rax
mov byte [rsi], 0
jmp 0x140054dfe
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rdi], rcx
mov rax, qword [rbx + 0xb8]
lea r15, [rbx + 0x30]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054e1a
xor cl, cl
mov byte [rbp], cl
add r12d, 3
add rbp, 3
cmp qword [rsp + 0x48], 2
jne 0x140054e9a
cmp rax, qword [rdi]
jae 0x140054e41
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054e9c
cmp dword [r15], 0
je 0x140054e96
mov r8d, dword [rbx + 0x34]
lea rsi, [rbx + 0x38]
mov rcx, qword [rbx + 0x28]
mov rdx, rsi
call qword [rbx + 0x10]
mov qword [rbx + 0xb8], rsi
test eax, eax
jne 0x140054e73
mov dword [r15], eax
lea rax, [rbx + 0x39]
mov qword [rdi], rax
mov byte [rsi], 0
jmp 0x140054e80
movsxd rcx, eax
add rcx, 0x38
add rcx, rbx
mov qword [rdi], rcx
mov rax, qword [rbx + 0xb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0xb8], rax
jmp 0x140054e9c
xor cl, cl
jmp 0x140054e9c
mov cl, 0xff
movzx eax, cl
or r14d, eax
cmp r13d, 4
jne 0x140054eb1
inc r12d
mov byte [rbp], cl
inc rbp
mov edx, dword [rsp + 0x54]
inc edx
mov dword [rsp + 0x54], edx
cmp edx, dword [rbx]
jl 0x140054cd0
mov r15, qword [rsp + 0xa8]
mov dword [rsp + 0x30], r14d
jmp 0x140055032
xor ebp, ebp
test eax, eax
jle 0x140055041
lea rsi, [r14 + rcx]
mov r14d, dword [rsp + 0x530]
nop dword [rax + rax]
mov rcx, rbx
call fcn.140049cd0
cmp r14d, 0x10
je 0x140054f0d
mov rcx, rbx
mov edi, eax
call fcn.140049cd0
shl eax, 0x10
add eax, edi
mov ecx, dword [rsp + 0x38]
mov edx, eax
and edx, dword [rsp + 0x34]
test ecx, ecx
jns 0x140054f23
mov ecx, dword [rsp + 0x58]
shl edx, cl
jmp 0x140054f25
shr edx, cl
mov r11, qword [rsp + 0xb0]
lea r8, [0x140000000]
mov ecx, dword [rsp + 0x5c]
shr edx, cl
imul edx, dword [r8 + r11*4 + 0x80fe8]
mov ecx, dword [r8 + r11*4 + 0x80fc0]
sar edx, cl
mov ecx, dword [rsp + 0x3c]
mov byte [rsi], dl
mov edx, eax
and edx, dword [rsp + 0x2c]
test ecx, ecx
jns 0x140054f65
mov ecx, dword [rsp + 0x60]
shl edx, cl
jmp 0x140054f67
shr edx, cl
mov r11, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0x64]
shr edx, cl
imul edx, dword [r8 + r11*4 + 0x80fe8]
mov ecx, dword [r8 + r11*4 + 0x80fc0]
sar edx, cl
mov ecx, dword [rsp + 0x20]
mov byte [rsi + 1], dl
mov edx, eax
and edx, dword [rsp + 0x538]
test ecx, ecx
jns 0x140054fa4
mov ecx, dword [rsp + 0x68]
shl edx, cl
jmp 0x140054fa6
shr edx, cl
mov r9, qword [rsp + 0xc0]
add r12d, 3
mov ecx, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x50]
shr edx, cl
imul edx, dword [r8 + r9*4 + 0x80fe8]
mov ecx, dword [r8 + r9*4 + 0x80fc0]
sar edx, cl
mov byte [rsi + 2], dl
add rsi, 3
test r10d, r10d
je 0x140055011
mov r11d, dword [rsp + 0x24]
and eax, r10d
test r11d, r11d
jns 0x140054ff1
mov ecx, dword [rsp + 0x70]
shl eax, cl
jmp 0x140054ff6
mov ecx, r11d
shr eax, cl
mov ecx, dword [rsp + 0x74]
shr eax, cl
imul eax, dword [r8 + r15*4 + 0x80fe8]
mov ecx, dword [r8 + r15*4 + 0x80fc0]
sar eax, cl
jmp 0x140055016
mov eax, 0xff
or dword [rsp + 0x30], eax
cmp r13d, 4
jne 0x140055028
inc r12d
mov byte [rsi], al
inc rsi
inc ebp
cmp ebp, dword [rbx]
jl 0x140054ef0
mov r14, qword [rsp + 0x80]
lea rdi, [rbx + 0xc0]
cmp qword [rbx + 0x10], 0
mov edx, dword [rsp + 0x40]
je 0x14005506d
mov ecx, dword [rdi]
sub ecx, dword [rbx + 0xb8]
cmp ecx, edx
jge 0x140055074
mov rax, qword [rdi]
sub edx, ecx
mov rcx, qword [rbx + 0x28]
mov qword [rbx + 0xb8], rax
call qword [rbx + 0x18]
jmp 0x14005507d
lea rdi, [rbx + 0xc0]
mov eax, edx
add qword [rbx + 0xb8], rax
mov ecx, dword [rsp + 0x28]
mov eax, dword [rbx + 4]
inc ecx
mov r10, qword [rsp + 0x48]
mov edx, eax
mov dword [rsp + 0x28], ecx
cmp ecx, eax
jl 0x140054ca0
mov ecx, edx
cmp r13d, 4
jne 0x1400550ce
cmp dword [rsp + 0x30], 0
jne 0x1400550ce
imul eax, dword [rbx]
lea eax, [rax*4 - 1]
movsxd r8, eax
test eax, eax
js 0x1400550ce
nop dword [rax]
mov byte [r8 + r14], 0xff
sub r8, 4
jns 0x1400550c0
mov ecx, dword [rbx + 4]
cmp dword [rsp + 0x78], 0
jle 0x140055142
xor r10d, r10d
mov edx, ecx
test ecx, 0xfffffffe
jle 0x140055142
mov ecx, dword [rbx]
sub edx, r10d
dec edx
mov r9d, r13d
imul edx, r13d
mov eax, r13d
imul r9d, ecx
xor r8d, r8d
imul eax, ecx
imul edx, ecx
imul r9d, r10d
add rdx, r14
add r9, r14
test eax, eax
jle 0x140055131
sub r9, rdx
movzx eax, byte [rdx]
inc r8d
movzx ecx, byte [r9 + rdx]
mov byte [r9 + rdx], al
mov eax, r13d
mov byte [rdx], cl
lea rdx, [rdx + 1]
imul eax, dword [rbx]
cmp r8d, eax
jl 0x140055111
mov ecx, dword [rbx + 4]
inc r10d
mov eax, ecx
mov edx, ecx
sar eax, 1
cmp r10d, eax
jl 0x1400550e2
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x518]
mov dword [rdx], eax
mov rax, qword [rsp + 0x520]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x528]
test rcx, rcx
je 0x14005516a
mov eax, dword [rbx + 8]
mov dword [rcx], eax
mov rax, r14
jmp 0x140054903
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, str.bad_masks
jmp 0x1400548fa
lea rax, str.outofmem
mov qword [0x140093950], rax
xor eax, eax
jmp 0x14005490b
lea rax, str.too_large
mov qword [0x140093950], rax
xor eax, eax
jmp 0x140054913