Function at 0x422344
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push edi
push esi
push ebx
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x40], 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
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd0], edx
lea edx, [ebp - 0x40]
lea esi, [esi]
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebx]
shl eax, 2
add ebx, 4
inc dword [eax + edx]
mov dword [ebp - 0xdc], ebx
dec dword [ebp - 0xd0]
jne 0x4223dc
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x40], eax
jne 0x42241c
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
mov dword [ecx], 0
xor eax, eax
jmp 0x422a5e
mov ebx, dword [ecx]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xd8], ebx
mov ebx, 1
cmp dword [ebp - 0x3c], 0
jne 0x422448
lea eax, [ebp - 0x40]
lea esi, [esi]
inc ebx
cmp ebx, 0xf
ja 0x422448
cmp dword [eax + ebx*4], 0
je 0x42243c
mov dword [ebp - 0xd4], ebx
cmp dword [ebp - 0xd8], ebx
jae 0x42245c
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd0], 0xf
test edx, edx
jne 0x422481
lea eax, [ebp - 0x40]
dec dword [ebp - 0xd0]
je 0x422481
mov edx, dword [ebp - 0xd0]
cmp dword [eax + edx*4], 0
je 0x42246d
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xd8], eax
jbe 0x42249b
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd8]
mov dword [ecx], edx
mov dword [ebp - 0xe8], 1
mov ecx, ebx
shl dword [ebp - 0xe8], cl
cmp ebx, dword [ebp - 0xc8]
jae 0x4224e2
lea eax, [ebp - 0x40]
mov edx, dword [eax + ebx*4]
sub dword [ebp - 0xe8], edx
js 0x4224f7
mov ecx, dword [ebp - 0xe8]
inc ebx
add ecx, ecx
mov dword [ebp - 0xe8], ecx
cmp ebx, dword [ebp - 0xd0]
jb 0x4224c0
mov edx, dword [ebp - 0xd0]
shl edx, 2
mov eax, dword [edx + ebp - 0x40]
sub dword [ebp - 0xe8], eax
jns 0x422501
mov eax, 0xfffffffd
jmp 0x422a5e
add eax, dword [ebp - 0xe8]
mov dword [edx + ebp - 0x40], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0xc0]
mov dword [ebp - 0x100], edx
mov edx, dword [ebp - 0xd8]
xor ebx, ebx
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xb8]
shl eax, 2
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], edx
neg dword [ebp - 0x108]
dec dword [ebp - 0xd0]
je 0x42257a
nop
mov eax, dword [ebp - 0xdc]
add ebx, dword [eax]
mov dword [ecx], ebx
add eax, 4
mov dword [ebp - 0xdc], eax
add ecx, 4
dec dword [ebp - 0xd0]
jne 0x42255c
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x12c], ecx
lea esi, [esi]
mov eax, dword [ebp - 0xdc]
mov ebx, dword [eax]
add eax, 4
mov dword [ebp - 0xdc], eax
test ebx, ebx
je 0x4225d6
mov edx, dword [ebp - 0x12c]
lea eax, [ebx*4]
mov ebx, dword [ebp - 0xd0]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [eax + edx]
mov dword [ecx + edx*4], ebx
mov edx, dword [ebp - 0x12c]
inc dword [eax + edx]
mov ecx, dword [ebp + 0xc]
inc dword [ebp - 0xd0]
cmp dword [ebp - 0xd0], ecx
jb 0x42259c
mov ebx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp - 0x108]
mov ebx, dword [eax + ebx]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xcc], 0xffffffff
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xec], 0
cmp dword [ebp - 0xd4], ebx
jg 0x422a45
lea eax, [ebp - 0x40]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xf0]
shl eax, 2
mov ecx, dword [eax + edx]
dec ecx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x114], eax
cmp ecx, 0xffffffff
je 0x422a2d
mov ebx, dword [ebp - 0x100]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xf8], ebx
lea eax, [eax*4 - 4]
mov dword [ebp - 0x120], eax
lea esi, [esi]
mov edx, dword [ebp - 0xe4]
add edx, dword [ebp - 0xd8]
mov dword [ebp - 0xf4], edx
cmp dword [ebp - 0xd4], edx
jle 0x42289a
mov ebx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xcc]
xor ecx, ecx
mov cl, byte [ebp - 0xd8]
shl ecx, 8
mov dword [ebp - 0xfc], ecx
lea ebx, [ebx*4 - 4]
mov dword [ebp - 0x118], ebx
shl eax, 2
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xc8]
mov ebx, dword [ebp - 0xd8]
add dword [ebp - 0x118], 4
add dword [ebp - 0x11c], 4
add dword [ebp - 0x120], 4
inc dword [ebp - 0xcc]
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xec], ecx
sub dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], ebx
jbe 0x42274a
mov dword [ebp - 0xec], ebx
mov ebx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xc4]
sub ebx, dword [ebp - 0xe4]
mov edx, 1
mov ecx, ebx
shl edx, cl
mov ecx, dword [ebp + 0x28]
inc eax
mov ecx, dword [ecx]
mov dword [ebp - 0x104], ecx
cmp edx, eax
jbe 0x4227a8
mov ecx, dword [ebp - 0xf0]
dec edx
sub edx, dword [ebp - 0xc4]
add ecx, dword [ebp - 0x114]
cmp ebx, dword [ebp - 0xec]
jae 0x4227a8
jmp 0x422794
sub edx, eax
inc ebx
cmp ebx, dword [ebp - 0xec]
jae 0x4227a8
add ecx, 4
add edx, edx
mov eax, dword [ecx]
cmp edx, eax
ja 0x422792
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xec], 1
mov ecx, ebx
shl dword [ebp - 0xec], cl
add eax, dword [ebp - 0xec]
mov dword [ebp - 0x128], eax
cmp eax, 0x5a0
ja 0x4224f7
mov ecx, dword [ebp - 0x104]
mov eax, dword [ebp + 0x24]
lea ecx, [eax + ecx*8]
mov eax, dword [ebp - 0x11c]
lea edx, [ebp - 0x80]
mov dword [ebp - 0x124], edx
mov dword [ebp - 0xe0], ecx
mov dword [eax + edx], ecx
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp + 0x28]
mov dword [edx], ecx
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0xcc], 0
je 0x422871
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xf8]
mov dword [eax + edx], ecx
mov eax, esi
mov esi, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xf4]
xor ah, ah
or esi, eax
mov eax, esi
mov al, bl
mov ebx, dword [ebp - 0xd0]
sub ecx, dword [ebp - 0xd8]
shr ebx, cl
mov ecx, dword [ebp - 0x124]
mov esi, eax
mov eax, dword [ebp - 0x118]
mov edx, dword [eax + ecx]
mov eax, dword [ebp - 0xe0]
sub eax, edx
sar eax, 3
mov edi, eax
sub edi, ebx
mov dword [edx + ebx*8], esi
mov dword [edx + ebx*8 + 4], edi
jmp 0x42287c
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
mov ebx, dword [ebp - 0xd8]
add dword [ebp - 0xf4], ebx
mov eax, dword [ebp - 0xf4]
cmp dword [ebp - 0xd4], eax
jg 0x4226fd
mov edx, esi
xor dh, dh
mov esi, edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x2c]
mov al, byte [ebp - 0xd4]
sub al, byte [ebp - 0xe4]
and eax, 0xff
shl eax, 8
or esi, eax
lea eax, [ecx + edx*4]
cmp dword [ebp - 0xdc], eax
jb 0x4228d1
mov eax, esi
mov edx, edi
mov al, 0xc0
mov esi, eax
jmp 0x422913
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx]
cmp eax, dword [ebp + 0x10]
jae 0x4228f3
mov dl, 0
cmp eax, 0xff
jbe 0x4228e9
mov dl, 0x60
mov ecx, esi
mov cl, dl
mov esi, ecx
mov edi, eax
jmp 0x42290c
mov ebx, dword [ebp + 0x18]
mov edx, eax
sub edx, dword [ebp + 0x10]
mov ecx, esi
mov al, byte [ebx + edx*4]
mov ebx, dword [ebp + 0x14]
add al, 0x50
mov cl, al
mov esi, ecx
mov edi, dword [ebx + edx*4]
add dword [ebp - 0xdc], 4
mov ecx, dword [ebp - 0xd4]
mov ebx, dword [ebp - 0xd0]
sub ecx, dword [ebp - 0xe4]
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xc4]
shr ebx, cl
mov ecx, dword [ebp - 0xcc]
dec eax
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xd4]
shl ecx, 2
mov dword [ebp - 0x12c], ecx
dec eax
mov dword [ebp - 0x128], eax
cmp ebx, dword [ebp - 0xec]
jae 0x422983
lea esi, [esi]
mov ecx, dword [ebp - 0xe0]
mov dword [ecx + ebx*8], esi
mov dword [ecx + ebx*8 + 4], edi
add ebx, edx
cmp ebx, dword [ebp - 0xec]
jb 0x42296c
mov ecx, dword [ebp - 0x128]
mov ebx, 1
shl ebx, cl
test dword [ebp - 0xd0], ebx
je 0x4229ac
lea esi, [esi]
xor dword [ebp - 0xd0], ebx
shr ebx, 1
test dword [ebp - 0xd0], ebx
jne 0x42299c
mov ecx, dword [ebp - 0xe4]
xor dword [ebp - 0xd0], ebx
mov ebx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0x12c]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [ebp - 0xd0]
cmp eax, dword [edx + ebx]
je 0x422a18
mov edx, 1
mov ecx, dword [ebp - 0xd8]
sub dword [ebp - 0xe4], ecx
mov ecx, dword [ebp - 0xe4]
add dword [ebp - 0x120], 0xfffffffc
mov ebx, dword [ebp - 0x120]
mov eax, edx
shl eax, cl
mov ecx, dword [ebp - 0x100]
dec dword [ebp - 0xcc]
dec eax
and eax, dword [ebp - 0xd0]
cmp eax, dword [ecx + ebx + 4]
jne 0x4229dc
mov ebx, dword [ebp - 0x10c]
mov dword [ebp - 0xc4], ebx
cmp ebx, 0xffffffff
jne 0x4226ac
mov eax, dword [ebp - 0xc8]
inc dword [ebp - 0xd4]
cmp dword [ebp - 0xd4], eax
jle 0x422662
xor eax, eax
cmp dword [ebp - 0xe8], 0
je 0x422a5e
cmp dword [ebp - 0xc8], 1
je 0x422a5e
mov eax, 0xfffffffb
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret