Function at 0x422630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0x5c5d5e5f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, 0x55ddc7cd
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x55ddc7bd]
lea edx, [eax - 1]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
dec ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x6c
mov byte [esp + eax - 0x55ddc7bd], cl
movzx ecx, byte [esp + eax - 0x55ddc7bc]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x6c
mov byte [esp + eax - 0x55ddc7bc], cl
add eax, 2
cmp eax, 0x55ddc7dd
jne 0x422670
mov eax, dword [esp + 0x10]
mov ecx, dword [0x44bf38]
test ecx, ecx
je 0x422714
xor edx, edx
mov esi, dword [0x44bf3c]
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x4226f0
inc edx
cmp ecx, edx
jne 0x4226e0
jmp 0x422714
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x422714
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 5
push 4
push dword [0x44bf40]
push ecx
call fcn.0043bff0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x4227e0
push dword [esp + 0x30]
call fcn.00439da0
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], 0x5c5d5e5f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, 0x55ddc7cd
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x55ddc7bd]
lea esi, [eax - 1]
and esi, edx
add esi, esi
sub edx, esi
add edx, eax
dec edx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x6c
mov byte [esp + eax - 0x55ddc7bd], dl
movzx edx, byte [esp + eax - 0x55ddc7bc]
mov esi, eax
and esi, edx
add esi, esi
sub edx, esi
add edx, eax
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x6c
mov byte [esp + eax - 0x55ddc7bc], dl
add eax, 2
cmp eax, 0x55ddc7dd
jne 0x422760
mov eax, dword [esp + 0x10]
mov edx, dword [0x44bf38]
test edx, edx
je 0x422809
xor esi, esi
mov edi, dword [0x44bf3c]
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x10def2fc
je 0x4227e7
inc esi
cmp edx, esi
jne 0x4227d0
jmp 0x422809
xor ebx, ebx
jmp 0x422ae9
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x422809
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x44bf40]
push edx
call fcn.0043bff0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x422add
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov esi, ebx
and esi, 1
xor ebx, 1
lea ebx, [ebx + esi*2]
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x422820
lea eax, [ebx*4]
mov ecx, ebx
shl ecx, 8
add ecx, eax
jns 0x42284e
mov eax, 0xffffffff
jmp 0x422856
mov eax, ebx
shl eax, 9
lea eax, [eax + ebx*8]
push eax
call fcn.00408d80
add esp, 4
mov esi, eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x2c], esi
jmp 0x42287e
mov word [esi], 0xa
add esi, 2
mov edx, dword [eax]
test edx, edx
je 0x4228a3
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x422870
add ecx, 2
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422890
jmp 0x422870
mov eax, dword [esp + 0x2c]
cmp esi, eax
je 0x422a0e
mov word [esi], 0
movzx ecx, word [eax]
xor ebx, ebx
test cx, cx
jne 0x4228f0
push 1
call fcn.00408d80
add esp, 4
mov dword [esp + 0x34], eax
jmp 0x422a15
mov ebx, edx
add ebx, edi
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x422921
cmp eax, esi
jae 0x422921
mov edx, ebx
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 8]
mov edi, 1
cmp ebx, 0x80
jb 0x4228e0
movzx ebx, byte [esp + 8]
mov cl, bl
xor ecx, 3
mov edi, ecx
jmp 0x4228e0
lea edi, [ebx + 1]
push edi
call fcn.00408d80
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], eax
jle 0x422a15
lea ecx, [eax + ebx]
mov dword [esp + 0x40], ecx
add edi, eax
mov dword [esp + 0x3c], edi
mov edi, eax
mov edx, dword [esp + 0x2c]
jmp 0x422966
mov byte [edi], cl
mov eax, 1
add edx, 2
add edi, eax
cmp edi, dword [esp + 0x40]
jae 0x422a17
cmp edx, esi
jae 0x422a17
movzx ecx, word [edx]
test cx, cx
je 0x422a17
cmp cx, 0x7f
jbe 0x422950
mov dword [esp + 0x38], edi
mov eax, edi
not eax
add eax, dword [esp + 0x3c]
movzx edi, cx
mov dword [esp + 8], edi
cmp dword [esp + 8], 0x7ff
ja 0x4229d0
cmp eax, 2
mov eax, 0
mov edi, dword [esp + 0x38]
jb 0x422957
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edi], al
and cl, 0x3f
or cl, 0x80
mov byte [edi + 1], cl
mov eax, 2
jmp 0x422957
cmp eax, 3
mov eax, 0
mov edi, dword [esp + 0x38]
jb 0x422957
mov eax, dword [esp + 8]
shr eax, 0xc
or al, 0xe0
mov byte [edi], al
mov eax, dword [esp + 8]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edi + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [edi + 2], cl
mov eax, 3
jmp 0x422957
xor ebx, ebx
jmp 0x422ad4
mov edi, eax
mov byte [edi], 0
mov dword [esp + 0x10], 0xf4f9e31c
mov dword [esp + 0x14], 0xfae9e6f5
mov dword [esp + 0x18], 0xebee37eb
mov word [esp + 0x1c], 0x61ec
mov dword [esp + 0x1e], 0
mov dword [esp + 0x21], 0
mov eax, 0x7e7557f2
mov esi, dword [esp + 0x34]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x7e7557e2]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x62
mov byte [esp + eax - 0x7e7557e2], cl
cmp eax, 0x7e755806
je 0x422ab6
movzx ecx, byte [esp + eax - 0x7e7557e1]
lea edx, [eax + 1]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
inc ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x62
mov byte [esp + eax - 0x7e7557e1], cl
add eax, 2
jmp 0x422a60
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push eax
call fcn.00409730
mov ebx, eax
push esi
call fcn.00408d90
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
call fcn.00408d90
add esp, 4
push dword [esp + 0xc]
call fcn.0043a0b0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret