Function at 0x1018b120
Capabilities:
Access peb ldr_data
Encode data using base64
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f1878
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x102289dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
lea eax, [edi + 0x24]
mov dword [ebp - 0x84], edi
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x30]
mov dword [ebp - 0x90], eax
cmp ecx, dword [esi + 0x10]
jbe 0x1018b193
mov ecx, esi
call fcn.10012570
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x68], ecx
jmp 0x1018b2a3
movzx eax, byte [ecx]
cdq
mov dword [ebp - 0x80], eax
movzx eax, byte [ecx + 1]
mov dword [ebp - 0x78], edx
cdq
mov dword [ebp - 0xb0], eax
movzx eax, byte [ecx + 2]
mov dword [ebp - 0xb4], edx
cdq
mov dword [ebp - 0xa8], eax
movzx eax, byte [ecx + 3]
mov dword [ebp - 0xac], edx
cdq
mov dword [ebp - 0xa0], eax
movzx eax, byte [ecx + 4]
mov dword [ebp - 0xa4], edx
cdq
mov dword [ebp - 0x98], eax
movzx eax, byte [ecx + 5]
mov dword [ebp - 0x9c], edx
cdq
mov dword [ebp - 0x68], eax
movzx eax, byte [ecx + 6]
mov dword [ebp - 0x94], edx
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esi + 0xc]
movzx eax, byte [eax + 7]
cdq
mov dword [ebp - 0x70], eax
mov eax, 0x3f
sub eax, dword [esi + 8]
shr eax, 3
add dword [esi + 0xc], eax
mov eax, dword [ebp - 0x70]
shld edx, eax, 8
shl eax, 8
or edx, edi
or eax, ecx
mov edi, dword [esi + 8]
shld edx, eax, 8
mov ecx, edi
or edx, dword [ebp - 0x94]
shl eax, 8
or eax, dword [ebp - 0x68]
shld edx, eax, 8
or edx, dword [ebp - 0x9c]
shl eax, 8
or eax, dword [ebp - 0x98]
shld edx, eax, 8
or edx, dword [ebp - 0xa4]
shl eax, 8
or eax, dword [ebp - 0xa0]
shld edx, eax, 8
or edx, dword [ebp - 0xac]
shl eax, 8
or eax, dword [ebp - 0xa8]
shld edx, eax, 8
or edx, dword [ebp - 0xb4]
shl eax, 8
or eax, dword [ebp - 0xb0]
shld edx, eax, 8
or edx, dword [ebp - 0x78]
shl eax, 8
or eax, dword [ebp - 0x80]
call fcn.101e8c40
or eax, dword [esi]
or edx, dword [esi + 4]
or edi, 0x38
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x84]
mov ecx, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
and ecx, 1
dec eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x70]
shrd eax, edx, 1
shr edx, 1
or ecx, 0
mov dword [esi], eax
mov dword [esi + 4], edx
je 0x1018b43e
push fcn.10007640
push 0x10010b30
push 3
push 0xc
lea eax, [ebp - 0x60]
push eax
call fcn.101e8a3b
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0x27
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10012b80
mov esi, dword [ebp - 0x30]
push 0x27
push 0x101f4dcc
push esi
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x30]
add esi, 0x27
add esp, 0xc
mov dword [ebp - 0x2c], esi
cmp edx, esi
je 0x1018b352
lea ecx, [edx + 1]
cmp ecx, esi
je 0x1018b352
mov al, byte [edx]
cmp al, byte [ecx]
cmovb edx, ecx
inc ecx
cmp ecx, esi
jne 0x1018b346
movzx eax, byte [edx]
mov ecx, edi
inc eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x60]
push eax
call fcn.1018af50
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1018b3b7
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1018b398
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1018b3e0
push edx
push ecx
call fcn.101e8bf4
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x1018b405
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1018b3e6
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1018b3e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101e8bf4
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push fcn.10007640
push 3
push 0xc
lea eax, [ebp - 0x60]
push eax
call fcn.101e8aaf
mov eax, dword [ebp - 0x88]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101e8c02
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [edi + 0x40], 1
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
mov ecx, eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x68], eax
cmp ecx, edx
je 0x1018b642
mov edx, dword [esi + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
cmp edx, dword [esi + 0x10]
jbe 0x1018b491
mov ecx, esi
call fcn.10012570
mov edi, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
jmp 0x1018b559
mov al, byte [edx + 5]
mov byte [ebp - 0x71], al
mov al, byte [edx + 4]
mov cl, byte [edx + 7]
mov ch, byte [edx + 6]
mov byte [ebp - 0x69], al
mov al, byte [edx + 3]
mov byte [ebp - 0x6a], al
mov al, byte [edx + 2]
mov byte [ebp - 0x6b], al
mov al, byte [edx + 1]
mov byte [ebp - 0x6c], al
mov al, byte [edx]
mov byte [ebp - 0x61], al
mov eax, 0x3f
sub eax, dword [esi + 8]
shr eax, 3
add eax, edx
mov dword [esi + 0xc], eax
movzx eax, cl
cdq
mov edi, eax
movzx eax, ch
shld edx, edi, 8
shl edi, 8
mov dword [ebp - 0x78], edx
mov ecx, edx
cdq
or edi, eax
or ecx, edx
movzx eax, byte [ebp - 0x71]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x69]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x6a]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x6b]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x6c]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x61]
shld ecx, edi, 8
cdq
shl edi, 8
or edx, ecx
mov ecx, dword [esi + 8]
or eax, edi
call fcn.101e8c40
or edx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi + 8]
or edi, dword [esi]
or eax, 0x38
mov ecx, dword [ebp - 0x84]
add eax, 0xfffffffc
mov dword [esi + 8], eax
mov eax, edi
shrd eax, edx, 4
and edi, 0xf
mov dword [esi], eax
mov eax, dword [ebp - 0x80]
shr edx, 4
mov dword [esi + 4], edx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4]
mov ecx, dword [edx + 4]
mov eax, ecx
sub eax, dword [edx]
sar eax, 2
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], eax
cmp edi, eax
jae 0x1018b59d
mov eax, dword [edx]
lea ecx, [eax + edi*4]
jmp 0x1018b5d9
jbe 0x1018b5dc
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 2
cmp edi, eax
jbe 0x1018b5bf
lea eax, [ebp - 0x61]
mov ecx, edx
push eax
push edi
call fcn.10027a10
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 4]
jmp 0x1018b5dc
sub edi, dword [ebp - 0x78]
shl edi, 2
push edi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x80]
add esp, 0xc
mov edx, dword [ebp - 0x70]
add ecx, edi
mov dword [edx + 4], ecx
sub ecx, dword [edx]
mov eax, dword [ebp - 0x84]
sar ecx, 2
inc ecx
imul ecx, dword [eax + 0x40]
mov dword [eax + 0x40], ecx
mov eax, dword [edx + 4]
mov edi, dword [edx]
mov dword [ebp - 0x78], eax
cmp edi, eax
je 0x1018b62e
nop dword [eax + eax]
movups xmm0, xmmword [0x1020fab4]
push esi
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.1018e780
mov ecx, eax
add esp, 0x14
not ecx
shr eax, 1
and ecx, 1
dec ecx
xor ecx, eax
mov dword [edi], ecx
add edi, 4
cmp edi, dword [ebp - 0x78]
jne 0x1018b600
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x68], eax
cmp eax, ecx
jne 0x1018b470
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x1018b65e
mov ecx, esi
call fcn.10012570
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
jmp 0x1018b728
mov dl, byte [edi + 4]
mov al, byte [edi + 7]
mov cl, byte [edi + 6]
mov ch, byte [edi + 5]
mov byte [ebp - 0x61], dl
mov dl, byte [edi + 3]
mov byte [ebp - 0x6c], dl
mov dl, byte [edi + 2]
mov byte [ebp - 0x6b], dl
mov dl, byte [edi + 1]
mov byte [ebp - 0x6a], dl
mov dl, byte [edi]
mov byte [ebp - 0x69], dl
mov edx, 0x3f
sub edx, dword [esi + 8]
movzx eax, al
shr edx, 3
add edx, edi
mov dword [esi + 0xc], edx
cdq
mov edi, eax
movzx eax, cl
shld edx, edi, 8
shl edi, 8
mov dword [ebp - 0x68], edx
cdq
or edi, eax
mov eax, dword [ebp - 0x68]
or eax, edx
shld eax, edi, 8
mov dword [ebp - 0x68], eax
shl edi, 8
movzx eax, ch
mov ecx, dword [ebp - 0x68]
cdq
or edi, eax
or ecx, edx
movzx eax, byte [ebp - 0x61]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x6c]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x6b]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x6a]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebp - 0x69]
shld ecx, edi, 8
cdq
shl edi, 8
or edx, ecx
or eax, edi
mov edi, dword [esi + 8]
mov ecx, edi
call fcn.101e8c40
or edx, dword [esi + 4]
mov ecx, eax
or ecx, dword [esi]
or edi, 0x38
lea eax, [edi - 4]
mov dword [esi + 8], eax
mov eax, ecx
shrd eax, edx, 4
and ecx, 0xf
shr edx, 4
mov dword [esi + 4], edx
mov edx, dword [ebp - 0x8c]
mov dword [esi], eax
mov edi, dword [edx + 4]
mov eax, edi
sub eax, dword [edx]
sar eax, 2
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x78], eax
cmp ecx, eax
jae 0x1018b760
mov eax, dword [edx]
lea edi, [eax + ecx*4]
jmp 0x1018b7a9
jbe 0x1018b7ac
mov eax, dword [edx + 8]
sub eax, dword [edx]
sar eax, 2
cmp ecx, eax
jbe 0x1018b785
lea eax, [ebp - 0x61]
push eax
push ecx
mov ecx, edx
call fcn.10027a10
mov edx, dword [ebp - 0x8c]
mov edi, dword [edx + 4]
jmp 0x1018b7ac
sub ecx, dword [ebp - 0x78]
lea edi, [ecx*4]
push edi
push 0
push dword [ebp - 0x68]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x8c]
add esp, 0xc
add dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x68]
mov dword [edx + 4], edi
mov eax, dword [edx]
mov dword [ebp - 0x70], eax
cmp eax, edi
je 0x1018b7e8
movups xmm0, xmmword [0x1020fac4]
push esi
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.1018e780
mov ecx, dword [ebp - 0x70]
inc eax
add esp, 0x14
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x70], ecx
cmp ecx, edi
jne 0x1018b7b5
mov eax, dword [ebp - 0x8c]
mov edi, dword [eax + 4]
mov eax, dword [eax]
sub edi, eax
mov eax, dword [ebp - 0x84]
sar edi, 2
inc edi
imul edi, dword [eax + 0x40]
cmp edi, 0x40
jbe 0x1018b828
push 0x38
push str.C:Projectslibjxllibjxlentropy_coder.cc
push str._s:_d:_JXL_FAILURE:_Invalid_block_context_map:_too_big_n
lea eax, [ebp - 0x78]
push 1
push eax
call fcn.1000f820
mov eax, dword [ebp - 0x88]
add esp, 0x14
mov dword [eax], 1
jmp 0x1018b423
mov edx, dword [ebp - 0x90]
imul edi, edi, 0x27
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ebp - 0x70], ecx
sub ecx, eax
cmp edi, ecx
jb 0x1018b877
jbe 0x1018b87c
mov eax, dword [edx + 8]
sub eax, dword [edx]
cmp edi, eax
jbe 0x1018b85e
lea eax, [ebp - 0x61]
mov ecx, edx
push eax
push edi
call fcn.10030c20
mov edx, dword [ebp - 0x90]
jmp 0x1018b87c
sub edi, ecx
push edi
push 0
push dword [ebp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov edx, dword [ebp - 0x90]
add eax, edi
mov dword [edx + 4], eax
mov edi, dword [ebp - 0x84]
push esi
add edi, 0x3c
push edi
push edx
call fcn.1015ac30
mov cl, al
add esp, 0xc
xor eax, eax
test cl, cl
sete al
mov dword [ebp - 0x78], eax
test cl, cl
jne 0x1018b8d1
push str.DecodeContextMap_ctx_map__block_ctx_map__num_ctxs__br_
push eax
push 0x3d
push str.C:Projectslibjxllibjxlentropy_coder.cc
push str._s:_d:_JXL_RETURN_IF_ERROR_code_d:__s_n
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1000f820
mov ecx, dword [ebp - 0x88]
add esp, 0x1c
mov eax, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, ecx
jmp 0x1018b423
cmp dword [edi], 0x10
jbe 0x1018b417
push 0x3f
push str.C:Projectslibjxllibjxlentropy_coder.cc
push str._s:_d:_JXL_FAILURE:_Invalid_block_context_map:_too_many_distinct_contexts_n
jmp 0x1018b809