Function at 0x422e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa08
mov dword [esp + 0xc0], 0xf330935
mov dword [esp + 0xc4], 0x3f60df9
mov dword [esp + 0xc8], 0x7fa01f9
mov dword [esp + 0xcc], 0x1bee05fd
mov dword [esp + 0xd0], 0x1f231991
mov dword [esp + 0xd4], 0x13e71deb
mov dword [esp + 0xd8], 0x172b11f6
mov dword [esp + 0xdc], 0x2ba315e0
mov dword [esp + 0xe0], 0x2fcb29d8
mov dword [esp + 0xe4], 0x23d02de1
mov dword [esp + 0xe8], 0x27d221c5
mov dword [esp + 0xec], 0x3bc925af
mov dword [esp + 0xf0], 0x3fc139ce
mov dword [esp + 0xf4], 0x33cf3d0e
mov dword [esp + 0xf8], 0x37c831c3
mov dword [esp + 0xfc], 0xcb3735c7
mov dword [esp + 0x100], 0xcf1cc9fa
mov dword [esp + 0x104], 0xc336cd29
mov dword [esp + 0x108], 0xc735c14b
mov dword [esp + 0x10c], 0xdb25c532
mov dword [esp + 0x110], 0xdf3bd90f
mov dword [esp + 0x114], 0xd358dd2a
mov dword [esp + 0x118], 0xd731d129
mov dword [esp + 0x11c], 0xebead531
mov ebx, dword [ebp + 8]
mov eax, 0x84e66242
nop
movzx esi, byte [esp + eax + 0x7b199e7e]
mov edx, eax
and edx, esi
mov edi, edx
and edi, 0xfffffffd
mov ecx, edx
or ecx, 0xfffffffd
inc ecx
imul ecx, edi
mov edi, edx
and edi, 2
or edx, 2
imul edx, edi
add ecx, esi
sub ecx, edx
add ecx, eax
mov edx, ecx
xor edx, 0xf0
and ecx, 0xf
add ecx, ecx
sub ecx, edx
add cl, 0xa6
mov byte [esp + eax + 0x7b199e7e], cl
inc eax
cmp eax, 0x84e662a2
jne 0x422f50
lea edi, [esp + 0x60]
lea eax, [esp + 0xc0]
mov ecx, 0x18
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0xc0]
lea edx, [esp + 0x120]
xor eax, eax
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0xc0], 0x54554a4b
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0xc0]
lea esi, [eax - 0x7bc7c892]
mov edx, 0x91
sub edx, eax
xor edx, esi
and edx, ecx
xor edx, esi
not edx
and edx, esi
add ecx, eax
add edx, edx
sub ecx, edx
add cl, 0x48
mov byte [esp + eax + 0xc0], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x422fe0
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x452d58]
test ecx, ecx
je 0x423074
xor edx, edx
mov esi, dword [0x452d5c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x423050
inc edx
cmp ecx, edx
jne 0x423040
jmp 0x423074
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x423074
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 5
push 4
push dword [0x452d60]
push ecx
call fcn.004427e0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x423110
push dword [esp + 0x28]
call fcn.0043f540
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc0], 0x54554a4b
xor eax, eax
movzx edx, byte [esp + eax + 0xc0]
lea edi, [eax - 0x7bc7c892]
mov esi, 0x91
sub esi, eax
xor esi, edi
and esi, edx
xor esi, edi
not esi
and esi, edi
add edx, eax
add esi, esi
sub edx, esi
add dl, 0x48
mov byte [esp + eax + 0xc0], dl
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
cmp eax, 4
jb 0x4230a0
mov eax, dword [esp + 0xc0]
mov edx, dword [0x452d58]
test edx, edx
je 0x423140
xor esi, esi
mov edi, dword [0x452d5c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42311e
inc esi
cmp edx, esi
jne 0x423100
jmp 0x423140
xor edx, edx
xor esi, esi
xor edi, edi
mov ecx, dword [ebp + 0x14]
jmp 0x4236a1
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x423140
push 0
push ecx
push dword [esp + 0x28]
push 5
push 4
push dword [0x452d60]
push edx
call fcn.004427e0
add esp, 0x1c
test eax, eax
js 0x42366e
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
jmp 0x423182
mov ecx, dword [ebp + 0x14]
call fcn.0043faa0
mov eax, dword [esi]
test eax, eax
je 0x423686
mov ecx, dword [esi + eax + 0x3c]
add esi, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
movzx edx, word [ecx + eax]
movzx edi, word [ebx + eax]
test dx, dx
je 0x4231a5
add eax, 2
cmp dx, di
je 0x423190
cmp dx, di
jne 0x423178
mov eax, dword [esi + 0x44]
mov edi, dword [ebp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xdc]
mov dword [edi + 0xc], eax
mov ecx, edi
push 0x410
call fcn.0043f8e0
test eax, eax
js 0x423178
mov dword [esp + 0x24], 0
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc0], 0x54554a4b
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0xc0]
lea ecx, [eax - 0x7bc7c892]
mov edi, 0x91
sub edi, eax
xor edi, ecx
and edi, edx
xor edi, ecx
not edi
and edi, ecx
add edx, eax
add edi, edi
sub edx, edi
add dl, 0x48
mov byte [esp + eax + 0xc0], dl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x4231f0
mov eax, dword [esp + 0xc0]
mov edx, dword [0x452d58]
test edx, edx
je 0x423290
xor edi, edi
mov ecx, dword [0x452d5c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0x62429966
je 0x423260
inc edi
cmp edx, edi
jne 0x423250
jmp 0x423290
mov ecx, dword [ecx + edi*8 + 4]
cmp ecx, eax
je 0x423290
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x2b
push dword [esp + 0x20]
push 5
push dword [0x452d60]
push ecx
call fcn.004427e0
add esp, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xc0000004
jne 0x423653
mov eax, dword [esp + 0x24]
add eax, 2
push eax
call fcn.0043f540
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp + 0xc0], 0x54554a4b
xor eax, eax
nop
nop
nop
movzx ecx, byte [esp + eax + 0xc0]
lea edx, [eax - 0x7bc7c892]
mov edi, 0x91
sub edi, eax
xor edi, edx
and edi, ecx
xor edi, edx
not edi
and edi, edx
add ecx, eax
add edi, edi
sub ecx, edi
add cl, 0x48
mov byte [esp + eax + 0xc0], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 4
jb 0x4232d0
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x452d58]
test ecx, ecx
je 0x423369
add dword [esp + 8], 2
xor edi, edi
mov edx, dword [0x452d5c]
nop
nop
nop
cmp dword [edx + edi*8], 0x62429966
je 0x423340
inc edi
cmp ecx, edi
jne 0x423330
jmp 0x423369
mov ecx, dword [edx + edi*8 + 4]
cmp ecx, eax
je 0x423369
push 0
push dword [esp + 0xc]
push dword [esp + 0x18]
push 0x2b
push dword [esp + 0x14]
push 5
push dword [0x452d60]
push ecx
call fcn.004427e0
add esp, 0x20
test eax, eax
js 0x423647
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx]
shr eax, 1
mov ecx, dword [ecx + 4]
xor edx, edx
nop
cmp eax, edx
je 0x42339b
mov edi, dword [ebp + 0xc]
movzx edi, word [edi + edx*2]
cmp di, word [ecx + edx*2]
jne 0x423647
inc edx
test di, di
jne 0x423380
mov edi, dword [ebp + 0x14]
mov ecx, edi
call fcn.00440040
cmp eax, 2
jne 0x423647
mov ecx, edi
push 0
push 0x30
lea eax, [esp + 0x38]
push eax
push 0
call fcn.0043fe10
test eax, eax
js 0x423647
mov ecx, edi
push 0
push 0
push 0x28
lea eax, [esp + 0x684]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.004403c0
test eax, eax
js 0x423647
mov ecx, edi
push 0
push 0
push 0x80
lea eax, [esp + 0xcc]
push eax
push dword [esp + 0x6ac]
push dword [esp + 0x6ac]
call fcn.004403c0
test eax, eax
js 0x423647
movzx eax, word [esp + 0x132]
push eax
call fcn.0043f540
add esp, 4
movzx edx, word [esp + 0x132]
mov ecx, edi
push 0
push 0
push edx
mov dword [esp + 0x18], eax
push eax
push dword [esp + 0x14c]
push dword [esp + 0x14c]
call fcn.004403c0
test eax, eax
js 0x42363a
movzx edi, word [esp + 0x60]
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
test di, di
je 0x4234bc
lea edx, [esp + 0x60]
mov eax, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 4], eax
jmp 0x423488
movzx edi, word [edx]
test di, di
je 0x4234bc
movzx eax, word [ecx]
test ax, ax
je 0x42363a
add ecx, 2
add edx, 2
mov dword [esp + 8], edx
mov edx, dword [esp + 4]
add edx, 2
cmp ax, di
je 0x4234b0
mov dword [esp + 4], edx
mov ecx, edx
mov edx, dword [esp + 8]
je 0x423480
lea edx, [esp + 0x60]
jmp 0x423480
cmp dword [esp + 4], 0
je 0x42363a
mov ecx, dword [ebp + 0x14]
push 0
push 0
push 0x20
lea eax, [esp + 0x62c]
push eax
push dword [esp + 0x6a4]
push dword [esp + 0x6a4]
call fcn.004403c0
test eax, eax
js 0x42363a
mov eax, dword [esp + 0x690]
mov ecx, dword [esp + 0x694]
add eax, 0x10
mov dword [esp + 4], eax
adc ecx, 0
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x630]
mov edx, dword [esp + 0x634]
mov dword [esp + 0x504], edx
mov dword [esp + 0x500], eax
jmp 0x423564
cmp cx, dx
je 0x42360d
push dword [esp + 8]
call fcn.0043f5b0
add esp, 4
mov eax, dword [esp + 0x500]
mov edx, dword [esp + 0x504]
mov ecx, edx
xor ecx, dword [esp + 0x2c]
mov edi, eax
xor edi, dword [esp + 4]
or edi, ecx
je 0x42363a
mov ecx, dword [ebp + 0x14]
push 0
push 0
push 0x68
lea edi, [esp + 0x50c]
push edi
push edx
push eax
call fcn.004403c0
test eax, eax
js 0x42363a
movzx eax, word [esp + 0x55a]
push eax
call fcn.0043f540
add esp, 4
movzx edx, word [esp + 0x55a]
mov ecx, dword [ebp + 0x14]
push 0
push 0
push edx
mov dword [esp + 0x14], eax
push eax
push dword [esp + 0x574]
push dword [esp + 0x574]
call fcn.004403c0
test eax, eax
js 0x423536
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + eax]
lea edx, [ecx - 0x41]
cmp dx, 0x1a
jae 0x4235e3
or ecx, 0x20
mov edx, dword [esp + 8]
movzx edx, word [edx + eax]
lea edi, [edx - 0x41]
cmp di, 0x1a
jae 0x4235f7
or edx, 0x20
test cx, cx
je 0x42352d
add eax, 2
cmp cx, dx
je 0x4235d0
jmp 0x42352d
mov eax, dword [esp + 0x530]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x534]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x540]
mov dword [esp + 0x14], eax
push dword [esp + 8]
call fcn.0043f5b0
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call fcn.0043f5b0
add esp, 4
push dword [esp + 0x10]
call fcn.0043f5b0
add esp, 4
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x18]
je 0x423170
cmp dword [esp + 0x14], 0
je 0x423170
jmp 0x423686
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
call fcn.0043f5b0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
call fcn.0043fa90
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret