Function at 0x422ae5
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], 0xc999cb9f
mov dword [esp + 0xc4], 0xc54ac743
mov dword [esp + 0xc8], 0xc156c353
mov dword [esp + 0xcc], 0xfd72ff57
mov dword [esp + 0xd0], 0xf9a9fb7b
mov dword [esp + 0xd4], 0xf57df775
mov dword [esp + 0xd8], 0xf1a1f36a
mov dword [esp + 0xdc], 0xed69ef7c
mov dword [esp + 0xe0], 0xe971eb7c
mov dword [esp + 0xe4], 0xe574e7ab
mov dword [esp + 0xe8], 0xe16ee37f
mov dword [esp + 0xec], 0x1d8f1f69
mov dword [esp + 0xf0], 0x198f1b92
mov dword [esp + 0xf4], 0x1585174a
mov dword [esp + 0xf8], 0x11841385
mov dword [esp + 0xfc], 0xd9d0f81
mov dword [esp + 0x100], 0x9780b5e
mov dword [esp + 0x104], 0x58a0793
mov dword [esp + 0x108], 0x193038d
mov dword [esp + 0x10c], 0x3dab3f8e
mov dword [esp + 0x110], 0x39a13b51
mov dword [esp + 0x114], 0x35bc37b6
mov dword [esp + 0x118], 0x31af33a3
mov dword [esp + 0x11c], 0x2d2e2fab
mov byte [esp + 0x122], 0
mov word [esp + 0x120], 0
mov ebx, dword [ebp + 8]
lea esi, [esp + 0x120]
mov ecx, 0x571277d3
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ecx - 0x57127713]
mov edx, eax
and edx, ecx
add dl, dl
sub al, dl
movzx eax, al
add eax, ecx
add al, 0xe1
mov byte [esp + ecx - 0x57127713], al
inc ecx
cmp ecx, 0x57127836
jne 0x422780
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]
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0xc0], 0x20272625
mov byte [esp + 0xc4], 0
mov eax, 0xad097a49
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x52f68677]
xor ecx, eax
mov edx, 1
sub edx, ecx
mov esi, 0x6d
sub esi, ecx
and ecx, 1
and edx, 1
and esi, 0xfe
or esi, edx
xor esi, 0xfe
lea ecx, [esi + ecx*2]
mov byte [esp + eax + 0x52f68677], cl
inc eax
cmp eax, 0xad097a4e
jne 0x4227f0
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x451b4c]
test ecx, ecx
je 0x422884
xor edx, edx
mov esi, dword [0x451b50]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x422860
inc edx
cmp ecx, edx
jne 0x422850
jmp 0x422884
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x422884
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 5
push 4
push dword [0x451b54]
push ecx
call fcn.00441b10
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x422930
push dword [esp + 0x28]
call fcn.0043f270
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc0], 0x20272625
mov byte [esp + 0xc4], 0
mov eax, 0xad097a49
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x52f68677]
xor edx, eax
mov esi, 1
sub esi, edx
mov edi, 0x6d
sub edi, edx
and edx, 1
and esi, 1
and edi, 0xfe
or edi, esi
xor edi, 0xfe
lea edx, [edi + edx*2]
mov byte [esp + eax + 0x52f68677], dl
inc eax
cmp eax, 0xad097a4e
jne 0x4228c0
mov eax, dword [esp + 0xc0]
mov edx, dword [0x451b4c]
test edx, edx
je 0x422960
xor esi, esi
mov edi, dword [0x451b50]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42293e
inc esi
cmp edx, esi
jne 0x422920
jmp 0x422960
xor edx, edx
xor esi, esi
xor edi, edi
mov ecx, dword [ebp + 0x14]
jmp 0x422ee1
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x422960
push 0
push ecx
push dword [esp + 0x28]
push 5
push 4
push dword [0x451b54]
push edx
call fcn.00441b10
add esp, 0x1c
test eax, eax
js 0x422eae
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 0x4229a2
mov ecx, dword [ebp + 0x14]
call fcn.0043f720
mov eax, dword [esi]
test eax, eax
je 0x422ec6
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 0x4229c5
add eax, 2
cmp dx, di
je 0x4229b0
cmp dx, di
jne 0x422998
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.0043f5a0
test eax, eax
js 0x422998
mov dword [esp + 0x24], 0
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc0], 0x20272625
mov byte [esp + 0xc4], 0
mov eax, 0xad097a49
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x52f68677]
xor ecx, eax
mov edx, 1
sub edx, ecx
mov edi, 0x6d
sub edi, ecx
and ecx, 1
and edx, 1
and edi, 0xfe
or edi, edx
xor edi, 0xfe
lea ecx, [edi + ecx*2]
mov byte [esp + eax + 0x52f68677], cl
inc eax
cmp eax, 0xad097a4e
jne 0x422a20
mov eax, dword [esp + 0xc0]
mov edx, dword [0x451b4c]
test edx, edx
je 0x422ac0
xor edi, edi
mov ecx, dword [0x451b50]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + edi*8], 0x62429966
je 0x422a90
inc edi
cmp edx, edi
jne 0x422a80
jmp 0x422ac0
mov ecx, dword [ecx + edi*8 + 4]
cmp ecx, eax
je 0x422ac0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x2b
push dword [esp + 0x20]
push 5
push dword [0x451b54]
push ecx
call fcn.00441b10
add esp, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xc0000004
jne 0x422e93
mov eax, dword [esp + 0x24]
add eax, 2
push eax
call fcn.0043f270
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], 0x20272625
mov byte [esp + 0xc4], 0
mov eax, 0xad097a49
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x52f68677]
xor ecx, eax
mov edx, 1
sub edx, ecx
mov edi, 0x6d
sub edi, ecx
and ecx, 1
and edx, 1
and edi, 0xfe
or edi, edx
xor edi, 0xfe
lea ecx, [edi + ecx*2]
mov byte [esp + eax + 0x52f68677], cl
inc eax
cmp eax, 0xad097a4e
jne 0x422b10
mov eax, dword [esp + 0xc0]
mov edi, dword [0x451b4c]
test edi, edi
je 0x422ba9
add dword [esp + 8], 2
xor ecx, ecx
mov edx, dword [0x451b50]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x62429966
je 0x422b80
inc ecx
cmp edi, ecx
jne 0x422b70
jmp 0x422ba9
mov ecx, dword [edx + ecx*8 + 4]
cmp ecx, eax
je 0x422ba9
push 0
push dword [esp + 0xc]
push dword [esp + 0x18]
push 0x2b
push dword [esp + 0x14]
push 5
push dword [0x451b54]
push ecx
call fcn.00441b10
add esp, 0x20
test eax, eax
js 0x422e87
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 0x422bdb
mov edi, dword [ebp + 0xc]
movzx edi, word [edi + edx*2]
cmp di, word [ecx + edx*2]
jne 0x422e87
inc edx
test di, di
jne 0x422bc0
mov edi, dword [ebp + 0x14]
mov ecx, edi
call fcn.0043fc90
cmp eax, 2
jne 0x422e87
mov ecx, edi
push 0
push 0x30
lea eax, [esp + 0x38]
push eax
push 0
call fcn.0043fab0
test eax, eax
js 0x422e87
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.0043ffa0
test eax, eax
js 0x422e87
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.0043ffa0
test eax, eax
js 0x422e87
movzx eax, word [esp + 0x132]
push eax
call fcn.0043f270
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.0043ffa0
test eax, eax
js 0x422e7a
movzx edi, word [esp + 0x60]
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
test di, di
je 0x422cfc
lea edx, [esp + 0x60]
mov eax, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 4], eax
jmp 0x422cc8
movzx edi, word [edx]
test di, di
je 0x422cfc
movzx eax, word [ecx]
test ax, ax
je 0x422e7a
add ecx, 2
add edx, 2
mov dword [esp + 8], edx
mov edx, dword [esp + 4]
add edx, 2
cmp ax, di
je 0x422cf0
mov dword [esp + 4], edx
mov ecx, edx
mov edx, dword [esp + 8]
je 0x422cc0
lea edx, [esp + 0x60]
jmp 0x422cc0
cmp dword [esp + 4], 0
je 0x422e7a
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.0043ffa0
test eax, eax
js 0x422e7a
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 0x422da4
cmp cx, dx
je 0x422e4d
push dword [esp + 8]
call fcn.0043f300
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 0x422e7a
mov ecx, dword [ebp + 0x14]
push 0
push 0
push 0x68
lea edi, [esp + 0x50c]
push edi
push edx
push eax
call fcn.0043ffa0
test eax, eax
js 0x422e7a
movzx eax, word [esp + 0x55a]
push eax
call fcn.0043f270
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.0043ffa0
test eax, eax
js 0x422d76
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 0x422e23
or ecx, 0x20
mov edx, dword [esp + 8]
movzx edx, word [edx + eax]
lea edi, [edx - 0x41]
cmp di, 0x1a
jae 0x422e37
or edx, 0x20
test cx, cx
je 0x422d6d
add eax, 2
cmp cx, dx
je 0x422e10
jmp 0x422d6d
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.0043f300
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call fcn.0043f300
add esp, 4
push dword [esp + 0x10]
call fcn.0043f300
add esp, 4
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x18]
je 0x422990
cmp dword [esp + 0x14], 0
je 0x422990
jmp 0x422ec6
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
call fcn.0043f300
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.0043f710
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret