Function at 0x421ce0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov esi, ecx
push eax
mov dword [esp + 0x24], esi
call fcn.00421000
test eax, eax
je 0x422282
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00421000
test eax, eax
je 0x422282
lea edx, [esp + 0x68]
push edx
mov ecx, esi
call fcn.00421000
test eax, eax
je 0x422282
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00421000
test eax, eax
je 0x422282
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00420f70
test eax, eax
je 0x422282
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x28]
and eax, 7
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
call fcn.00420f70
test eax, eax
je 0x422282
mov eax, dword [esp + 0x28]
mov ebx, eax
mov edi, eax
mov ecx, eax
shr eax, 4
shr ecx, 3
and eax, 7
and ecx, 1
mov dword [esp + 0x58], eax
shr edi, 1
lea eax, [esp + 0xc]
mov dword [esp + 0x24], ecx
and ebx, 1
and edi, 3
push eax
mov ecx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x40], edi
call fcn.00421000
test eax, eax
je 0x422282
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00421000
test eax, eax
je 0x422282
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.00421000
test eax, eax
je 0x422282
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00421000
test eax, eax
je 0x422282
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00420fc0
test eax, eax
je 0x422282
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00420fc0
test eax, eax
je 0x422282
cmp dword [esp + 0xa4], 1
je 0x421e41
mov eax, dword [esi]
push str.Bad_symbol_dictionary_reference_in_JBIG2_halftone_segment
mov ecx, esi
call dword [eax + 0x20]
push eax
call fcn.004058b0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
push ebp
push edx
mov ecx, esi
call fcn.00420c60
mov ebp, eax
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x60], ebp
call dword [eax + 4]
cmp eax, 2
je 0x421e88
mov edx, dword [esi]
push str.Bad_symbol_dictionary_reference_in_JBIG2_halftone_segment
mov ecx, esi
call dword [edx + 0x20]
push eax
call fcn.004058b0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x3c], edx
jbe 0x421eab
lea ebx, [ebx]
shl eax, 1
inc edx
cmp eax, ecx
jb 0x421ea0
mov dword [esp + 0x3c], edx
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
jne 0x421ed3
push ebx
push edi
mov ecx, esi
call fcn.00420d20
mov ecx, dword [esi + 0x38]
call fcn.0041dc70
push 0x18
call fcn.0044a5dd
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x421f02
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push ecx
mov ecx, eax
call fcn.0041e700
mov dword [esp + 0x20], eax
jmp 0x421f08
mov dword [esp + 0x20], ebp
mov eax, ebp
mov cl, byte [esp + 0x2c]
test cl, cl
mov ecx, eax
jns 0x421f19
call fcn.0041e7e0
jmp 0x421f1e
call fcn.0041e7c0
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
je 0x421feb
push 0x18
call fcn.0044a5dd
mov ebx, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
je 0x421f52
mov edx, dword [esp + 0x10]
push ebx
push edx
push ebp
mov ecx, eax
call fcn.0041e700
mov dword [esp + 0x18], eax
jmp 0x421f56
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x18]
call fcn.0041e7c0
cmp ebx, ebp
jbe 0x421fef
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x10]
xor esi, esi
test ecx, ecx
jbe 0x421fd4
mov ecx, dword [esp + 0x4c]
add ecx, eax
sar ecx, 8
mov dword [esp + 0x54], ecx
lea ebx, [ebx]
test ecx, ecx
jle 0x421fb8
mov edx, eax
sar edx, 8
cmp edx, dword [esp + 0x14]
jge 0x421fb8
mov edx, dword [esp + 0x50]
add edx, edi
test edx, 0xffffff00
jle 0x421fb8
mov edx, edi
sar edx, 8
cmp edx, dword [esp + 0x38]
jl 0x421fcb
mov ecx, dword [esp + 0x18]
push ebp
push esi
call fcn.0041e6c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x421f90
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
inc ebp
add eax, esi
add edi, edx
cmp ebp, ebx
mov dword [esp + 0x2c], eax
jb 0x421f73
jmp 0x421fef
mov ebx, dword [esp + 0x1c]
mov esi, ebx
imul esi, dword [esp + 0x10]
shl esi, 2
push esi
call fcn.004492c0
mov ebp, eax
xor eax, eax
mov ecx, esi
mov esi, dword [esp + 0x44]
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep stosd dword es:[edi], eax
xor ecx, ecx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 1
add esp, 4
cmp eax, esi
sbb ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, 0xfffffffe
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
add ecx, 3
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 0xfffffffd
mov dword [esp + 0x88], 2
js 0x42212e
inc eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push 0xffffffffffffffff
lea edx, [esp + 0x74]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x6c]
push 0
push eax
push ebx
push ecx
push edx
mov ecx, edi
call fcn.0041ede0
xor esi, esi
test ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], esi
jbe 0x422116
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jbe 0x422105
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ebp + esi*4]
push eax
push edi
call fcn.0041e670
mov ecx, ebx
and ecx, 1
xor eax, ecx
lea edx, [ebx + ebx]
or eax, edx
mov dword [ebp + esi*4], eax
mov eax, dword [esp + 0x10]
inc esi
inc edi
cmp edi, eax
jb 0x4220d0
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, ebx
mov dword [esp + 0x14], ecx
jb 0x4220c0
mov edi, dword [esp + 0x24]
test eax, eax
je 0x422122
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
dec dword [esp + 0x2c]
jne 0x422076
jmp 0x422132
mov edi, dword [esp + 0x24]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
jbe 0x4221fb
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jbe 0x4221ce
mov edi, edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42217b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0041e670
test eax, eax
jne 0x4221a8
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x30]
mov edx, ebx
sar edx, 8
push edx
mov edx, dword [ebp + ecx*4]
mov eax, edi
sar eax, 8
push eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x2c]
push edx
call fcn.0041e8e0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
sub ebx, eax
mov eax, dword [esp + 0x10]
add edi, ecx
inc edx
inc esi
cmp esi, eax
mov dword [esp + 0x2c], edx
jb 0x422160
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc eax
add edi, esi
add ebx, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
jb 0x422154
mov edi, dword [esp + 0x24]
push ebp
call fcn.00449350
mov eax, dword [esp + 0x9c]
add esp, 4
test eax, eax
je 0x422268
cmp dword [edi + 0x10], 0xffffffff
mov esi, dword [esp + 0x64]
jne 0x422233
mov eax, dword [esp + 0x38]
mov ecx, dword [edi + 0x14]
add eax, esi
cmp eax, ecx
jbe 0x422233
mov ecx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x1c]
push eax
call fcn.0041e740
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [edi + 0x1c]
push edx
push esi
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.0041e8e0
test esi, esi
je 0x421e7b
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x24]
push eax
call fcn.00449a00
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18
mov edx, dword [esi]
push str.Unexpected_EOF_in_JBIG2_stream
mov ecx, esi
call dword [edx + 0x20]
push eax
call fcn.004058b0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x80
ret 0x18