Function at 0x421840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x44e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x104], esi
mov esi, dword [ebp + 0x10]
push eax
mov dword [ebp - 0xf0], ebx
call fcn.0041f550
lea eax, [ebp - 0xfc]
push eax
call fcn.0041f550
lea eax, [ebx + 0x34]
push 0
push eax
mov dword [ebp - 0xf4], eax
call fcn.0041f4b0
add esp, 0x10
cmp eax, 1
je 0x4218cb
pop esi
mov eax, 0xffffb080
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.0041f4b0
test eax, eax
lea eax, [ebp - 0x118]
push esi
push eax
sete byte [ebp - 0x108]
call fcn.0041e620
mov edi, dword [ebp + 0x20]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x421a5c
push esi
push dword [ebp - 0xf4]
lea eax, [ebp - 0xfc]
push eax
call fcn.00420aa0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x421a5c
push dword [ebp - 0x108]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004203b0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x124], ebx
test ebx, ebx
jne 0x421a5c
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0xc8]
push ebx
push eax
call fcn.00429110
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0xf4], ecx
test edi, edi
je 0x4219de
movzx eax, byte [ebp + 0x1c]
mov dword [ebp - 0x11c], eax
xor esi, esi
test eax, eax
je 0x4219cd
lea eax, [ebp - 0xc8]
mov ebx, ecx
add eax, ecx
mov dword [ebp - 0x120], eax
mov al, byte [eax]
mov byte [ebp - 0xe9], al
nop
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0041f4b0
mov ecx, esi
add esp, 8
shl al, cl
inc esi
mov cl, byte [ebp - 0xe9]
add ebx, edi
or cl, al
mov eax, dword [ebp - 0x11c]
mov byte [ebp - 0xe9], cl
cmp esi, eax
jb 0x421990
mov edx, dword [ebp - 0x120]
mov byte [edx], cl
mov ecx, dword [ebp - 0xf4]
inc ecx
mov dword [ebp - 0xf4], ecx
cmp ecx, edi
jb 0x421970
mov ebx, dword [ebp - 0x124]
xor al, al
mov esi, 1
mov byte [ebp - 0xe9], al
cmp edi, esi
jb 0x421a5c
nop
mov bl, byte [ebp + esi - 0xc8]
mov bh, 1
mov dl, byte [ebp + esi - 0xc9]
mov dh, bl
and bl, byte [ebp - 0xe9]
xor dh, al
mov al, dh
movzx ecx, dl
and al, 1
sub bh, al
movzx eax, bh
imul ecx, eax
shl bh, 7
or bh, dl
mov byte [ebp + esi - 0xc9], bh
mov al, cl
xor cl, dh
and al, dh
mov byte [ebp + esi - 0xc8], cl
or al, bl
inc esi
mov byte [ebp - 0xe9], al
cmp esi, edi
jbe 0x4219f0
lea eax, [ebp - 0xfc]
push eax
call fcn.0041f1b0
lea eax, [ebp - 0x118]
push eax
call fcn.0041f1b0
add esp, 8
jmp 0x421a7f
lea eax, [ebp - 0xfc]
push eax
call fcn.0041f1b0
lea eax, [ebp - 0x118]
push eax
call fcn.0041f1b0
add esp, 8
test ebx, ebx
jne 0x421cc7
lea eax, [ebp - 0x13c]
push eax
call fcn.0041f550
lea eax, [ebp - 0x134]
push eax
call fcn.0041f550
lea eax, [ebp - 0x12c]
push eax
call fcn.0041f550
add esp, 0xc
lea esi, [ebp - 0xe8]
mov ebx, 4
push esi
call fcn.0041f550
add esp, 4
add esi, 8
sub ebx, 1
jne 0x421ab1
movzx eax, byte [ebp + edi - 0xc8]
mov ebx, dword [ebp - 0x104]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x100]
push ebx
push dword [ebp - 0xf0]
call fcn.00423400
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x421b98
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x421b1d
push dword [ebp - 0x110]
push eax
push ebx
push dword [ebp - 0xf0]
call fcn.00422e80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x421b98
test edi, edi
je 0x421b98
lea eax, [ebp - 0xe8]
dec edi
push eax
push ebx
push ebx
push dword [ebp - 0xf0]
call fcn.004210d0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x421b98
movzx eax, byte [ebp + edi - 0xc8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x13c]
push dword [ebp - 0x100]
push eax
push dword [ebp - 0xf0]
call fcn.00423400
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x421b98
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push dword [ebp - 0xf0]
call fcn.00420b00
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x421b98
test edi, edi
jne 0x421b25
lea eax, [ebp - 0x13c]
push eax
call fcn.0041f1b0
lea eax, [ebp - 0x134]
push eax
call fcn.0041f1b0
lea eax, [ebp - 0x12c]
push eax
call fcn.0041f1b0
add esp, 0xc
lea edi, [ebp - 0xe8]
mov ebx, 4
nop word [eax + eax]
push edi
call fcn.0041f1b0
add esp, 4
add edi, 8
sub ebx, 1
jne 0x421bd0
test esi, esi
jne 0x421cb4
lea eax, [ebp - 0xfc]
push eax
call fcn.0041f550
mov esi, dword [ebp - 0x104]
push 0
lea ebx, [esi + 8]
push ebx
call fcn.0041e4f0
push ebx
mov ebx, dword [ebp - 0xf0]
test eax, eax
setne byte [ebp - 0xe9]
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00420aa0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x421c54
mov al, byte [ebp - 0xe9]
and al, byte [ebp - 0x108]
movzx eax, al
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [esi + 8]
push eax
call fcn.004203b0
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0041f1b0
add esp, 4
test edi, edi
jne 0x421ca1
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x421c86
push dword [ebp - 0x110]
push eax
push esi
push ebx
call fcn.00422e80
add esp, 0x10
test eax, eax
jne 0x421cc9
push esi
push ebx
call fcn.00422120
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427ca1
mov esp, ebp
pop ebp
ret