Function at 0x429620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push ebx
push esi
push edi
test ecx, ecx
je 0x429909
mov esi, dword [ecx + 0xe0]
test esi, esi
je 0x429909
cmp dword [esi], 0
jne 0x42965a
mov eax, 0xffffff9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x84], 0
mov ecx, 0x2800
mov eax, dword [esi + 0x80]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0x2800
ja 0x42968c
jb 0x42967e
cmp eax, ecx
jae 0x42968c
cmp dword [esi + 0xc8], 0
jne 0x42968c
mov dword [esi + 0x14], eax
mov ecx, eax
mov edi, dword [esi + 8]
xor eax, eax
mov ebx, dword [esi + 0x78]
mov edx, edi
add edx, ebx
adc eax, dword [esi + 0x7c]
test eax, eax
ja 0x4296b8
jb 0x4296a9
cmp edx, 0x2800
jae 0x4296b8
cmp dword [esi + 0xc8], 0
je 0x4296b8
lea ecx, [edi + ebx]
mov dword [esi + 0x14], ecx
test ecx, ecx
je 0x4298e3
mov edi, dword [esi + 8]
mov ebx, 0xfffffffd
test edi, edi
jne 0x4297d0
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
test ecx, ecx
jne 0x4296e2
test eax, eax
je 0x4297d0
mov edi, 0x4000
test ecx, ecx
ja 0x4296fb
jb 0x4296f1
cmp eax, edi
jae 0x4296fb
mov edi, eax
test edi, edi
je 0x4298ed
mov ecx, dword [esi + 0xc0]
add ecx, dword [esi + 0x40]
mov eax, dword [esi + 0xc4]
adc eax, dword [esi + 0x44]
mov edx, dword [esi + 0xb4]
push 0
push eax
push ecx
lea ecx, [esi + 0x88]
call fcn.00426720
add esp, 0xc
test eax, eax
jne 0x4298f6
mov eax, dword [esi + 0x8c]
push edi
push dword [esi]
push dword [esi + 0xb4]
push dword [esi + 0xa4]
call eax
add esp, 0x10
cmp eax, edi
jne 0x4298f6
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xe4], 0
je 0x4297ba
xor ebx, ebx
test edi, edi
je 0x4297b5
lea eax, [ecx + 0xec]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov edx, dword [ecx + 0xf4]
mov ecx, dword [esi]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov edx, dword [ebp - 8]
shr eax, 8
xor byte [ecx + ebx], al
movsx eax, byte [ecx + ebx]
mov edx, dword [edx + 0xf8]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00427170
mov ecx, dword [esi]
add esp, 4
mov byte [ebx + ecx], al
inc ebx
mov ecx, dword [ebp - 8]
cmp ebx, edi
jb 0x429770
mov ebx, 0xfffffffd
add dword [esi + 0x40], edi
mov eax, dword [esi]
adc dword [esi + 0x44], 0
sub dword [esi + 0x78], edi
mov dword [esi + 4], eax
sbb dword [esi + 0x7c], 0
mov dword [esi + 8], edi
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x429874
cmp dword [esi + 0xc8], 0
jne 0x429874
cmp eax, 0xc
je 0x4298d9
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.0062d1cd
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
js 0x42981f
cmp dword [esi + 0x1c], 0
cmovne eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [esi + 0x18]
xor ebx, ebx
mov dword [ebp - 0x18], edi
sub edi, dword [ebp - 0xc]
push edi
push dword [ebp - 0x14]
sbb ebx, ebx
add dword [esi + 0x68], edi
push dword [esi + 0x70]
adc dword [esi + 0x6c], ebx
call fcn.0062eda7
mov ecx, dword [ebp - 4]
add esp, 0xc
sub dword [esi + 0x80], edi
mov dword [esi + 0x70], eax
sbb dword [esi + 0x84], ebx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp eax, 1
je 0x429900
test eax, eax
jne 0x42990e
jmp 0x4298d9
test edi, edi
jne 0x429880
mov eax, dword [esi + 0x78]
or eax, dword [esi + 0x7c]
je 0x4298e3
mov ebx, dword [esi + 0x14]
cmp ebx, edi
cmovae ebx, edi
xor edx, edx
test ebx, ebx
je 0x4298a1
nop
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
cmp edx, ebx
jb 0x429890
add dword [esi + 0x68], ebx
push ebx
push dword [esi + 0x10]
adc dword [esi + 0x6c], 0
push dword [esi + 0x70]
call fcn.0062eda7
add esp, 0xc
mov dword [esi + 0x70], eax
sub dword [esi + 0x80], ebx
sbb dword [esi + 0x84], 0
sub dword [esi + 8], ebx
sub dword [esi + 0x14], ebx
add dword [esi + 0x10], ebx
add dword [esi + 4], ebx
add dword [esi + 0x18], ebx
add dword [ebp - 4], ebx
cmp dword [esi + 0x14], 0
ja 0x4296c0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff9a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret