Function at 0x421050
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], 0x73877185
mov dword [esp + 0xc4], 0x7fc27dc1
mov dword [esp + 0xc8], 0x7bce79d1
mov dword [esp + 0xcc], 0x47fa45ed
mov dword [esp + 0xd0], 0x43b741f9
mov dword [esp + 0xd4], 0x4ff34dff
mov dword [esp + 0xd8], 0x4bbf49ea
mov dword [esp + 0xdc], 0x57ef55e8
mov dword [esp + 0xe0], 0x53ff51e0
mov dword [esp + 0xe4], 0x5fe85d99
mov dword [esp + 0xe8], 0x5be659f5
mov dword [esp + 0xec], 0x2791259b
mov dword [esp + 0xf0], 0x23892192
mov dword [esp + 0xf4], 0x2f9b2dda
mov dword [esp + 0xf8], 0x2b80299f
mov dword [esp + 0xfc], 0x37833583
mov dword [esp + 0x100], 0x33e431c6
mov dword [esp + 0x104], 0x3f823d91
mov dword [esp + 0x108], 0x3b8d3987
mov dword [esp + 0x10c], 0x7ad05b6
mov dword [esp + 0x110], 0x3af01d3
mov dword [esp + 0x114], 0xfb00dbe
mov dword [esp + 0x118], 0xba909a1
mov dword [esp + 0x11c], 0x171615b9
mov byte [esp + 0x120], 0
lea esi, [esp + 0x120]
mov ecx, 0x94
mov edx, 0x6b
movzx eax, byte [esp + ecx + 0x2c]
mov edi, eax
not edi
or edi, edx
or eax, ecx
and eax, edi
add al, 0x1c
mov byte [esp + ecx + 0x2c], al
inc ecx
dec edx
cmp ecx, 0xf5
jne 0x421180
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 + 0x2c], 0
mov dword [esp + 0xc0], 0x14151a1b
mov dword [esp + 0xc4], 0
mov ebx, 6
mov ecx, 0x39
nop
nop
nop
nop
nop
movzx esi, byte [esp + ebx + 0xba]
mov edx, esi
mov edi, esi
xor edi, 0x78
or esi, 0x87
and esi, edi
mov edi, ecx
and edi, 0x38
mov eax, ebx
and eax, 7
or eax, edi
not edx
and edx, 0x78
or edx, esi
xor edx, eax
add dl, 0xa2
mov byte [esp + ebx + 0xba], dl
inc ebx
dec ecx
cmp ebx, 0xe
jne 0x4211f0
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x4506dc]
test ecx, ecx
je 0x421260
xor edx, edx
mov esi, dword [0x4506e0]
mov ebx, dword [ebp + 0x14]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x421265
inc edx
cmp ecx, edx
jne 0x421250
jmp 0x421289
mov ebx, dword [ebp + 0x14]
jmp 0x421289
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x421289
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 5
push 4
push dword [0x4506e4]
push ecx
call fcn.00440b10
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x421340
push dword [esp + 0x2c]
call fcn.0043e490
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 0xc0], 0x14151a1b
mov dword [esp + 0xc4], 0
mov esi, 6
mov edx, 0x39
nop
nop
nop
nop
movzx edi, byte [esp + esi + 0xba]
mov ecx, edi
mov ebx, edi
xor ebx, 0x78
or edi, 0x87
and edi, ebx
mov ebx, edx
and ebx, 0x38
mov eax, esi
and eax, 7
or eax, ebx
not ecx
and ecx, 0x78
or ecx, edi
xor ecx, eax
add cl, 0xa2
mov byte [esp + esi + 0xba], cl
inc esi
dec edx
cmp esi, 0xe
jne 0x4212d0
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x4506dc]
test ecx, ecx
je 0x421370
xor edx, edx
mov edi, dword [0x4506e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xc85f7986
je 0x42134b
inc edx
cmp ecx, edx
jne 0x421330
jmp 0x421370
xor ecx, ecx
xor edx, edx
xor esi, esi
jmp 0x4218f9
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x421370
push 0
push dword [esp + 8]
push dword [esp + 0x2c]
push 5
push 4
push dword [0x4506e4]
push ecx
call fcn.00440b10
add esp, 0x1c
test eax, eax
mov ebx, dword [ebp + 0x14]
js 0x4218c9
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov dword [esp + 0x1c], 0
mov edi, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jmp 0x4213ae
mov edi, dword [esp + 4]
mov eax, dword [edi]
test eax, eax
je 0x4218e1
mov esi, edi
mov ecx, dword [edi + eax + 0x3c]
add eax, edi
mov dword [esp + 4], eax
xor eax, eax
mov esi, dword [ebp + 8]
nop
movzx edx, word [ecx + eax]
movzx edi, word [esi + eax]
test dx, dx
je 0x4213d5
add eax, 2
cmp dx, di
je 0x4213c0
cmp dx, di
jne 0x4213a0
mov edi, dword [esp + 4]
mov eax, dword [edi + 0x44]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xdc]
mov dword [ebx + 0xc], eax
mov ecx, ebx
push 0x410
call fcn.0043e760
test eax, eax
js 0x4213a4
mov dword [esp + 0x28], 0
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc0], 0x14151a1b
mov dword [esp + 0xc4], 0
mov edx, 6
mov esi, 0x39
nop
nop
nop
nop
nop
movzx edi, byte [esp + edx + 0xba]
mov ecx, edi
mov ebx, edi
xor ebx, 0x78
or edi, 0x87
and edi, ebx
mov ebx, esi
and ebx, 0x38
mov eax, edx
and eax, 7
or eax, ebx
not ecx
and ecx, 0x78
or ecx, edi
xor ecx, eax
add cl, 0xa2
mov byte [esp + edx + 0xba], cl
inc edx
dec esi
cmp edx, 0xe
jne 0x421430
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x4506dc]
test ecx, ecx
je 0x4214d0
xor edx, edx
mov edi, dword [0x4506e0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x62429966
je 0x4214a0
inc edx
cmp ecx, edx
jne 0x421490
jmp 0x4214d0
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x4214d0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x2b
push dword [esp + 0x20]
push 5
push dword [0x4506e4]
push ecx
call fcn.00440b10
add esp, 0x20
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xc0000004
mov ebx, dword [ebp + 0x14]
jne 0x421590
mov eax, dword [esp + 0x28]
add eax, 2
push eax
call fcn.0043e490
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc0], 0x14151a1b
mov dword [esp + 0xc4], 0
mov eax, 6
mov edi, 0x39
movzx edx, byte [esp + eax + 0xba]
mov ecx, edx
mov esi, edx
xor esi, 0x78
or edx, 0x87
and edx, esi
mov esi, edi
and esi, 0x38
mov ebx, eax
and ebx, 7
or ebx, esi
not ecx
and ecx, 0x78
or ecx, edx
xor ecx, ebx
add cl, 0xa2
mov byte [esp + eax + 0xba], cl
inc eax
dec edi
cmp eax, 0xe
jne 0x421520
mov eax, dword [esp + 0xc0]
mov ecx, dword [0x4506dc]
test ecx, ecx
je 0x4215bf
mov esi, dword [esp + 8]
add esi, 2
xor edx, edx
mov edi, dword [0x4506e0]
nop
nop
nop
cmp dword [edi + edx*8], 0x62429966
je 0x421599
inc edx
cmp ecx, edx
jne 0x421580
jmp 0x4215bf
mov edi, dword [esp + 4]
jmp 0x4216e8
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x4215bf
push 0
push esi
push dword [esp + 0x18]
push 0x2b
push dword [esp + 0x30]
push 5
push dword [0x4506e4]
push ecx
call fcn.00440b10
add esp, 0x20
test eax, eax
mov ebx, dword [ebp + 0x14]
js 0x4216d8
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx]
shr eax, 1
mov ecx, dword [ecx + 4]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, edx
je 0x4215fb
mov esi, dword [ebp + 0xc]
movzx edi, word [esi + edx*2]
cmp di, word [ecx + edx*2]
jne 0x4216d8
inc edx
test di, di
jne 0x4215e0
mov ecx, ebx
call fcn.0043ede0
cmp eax, 2
mov edi, dword [esp + 4]
jne 0x4216dc
mov ecx, ebx
push 0
push 0x30
lea eax, [esp + 0x38]
push eax
push 0
call fcn.0043ec30
test eax, eax
js 0x4216dc
mov ecx, ebx
push 0
push 0
push 0x28
lea eax, [esp + 0x684]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.0043f100
test eax, eax
js 0x4216dc
mov ecx, ebx
push 0
push 0
push 0x80
lea eax, [esp + 0xcc]
push eax
push dword [esp + 0x6ac]
push dword [esp + 0x6ac]
call fcn.0043f100
test eax, eax
js 0x4216dc
movzx eax, word [esp + 0x132]
push eax
call fcn.0043e490
add esp, 4
mov esi, eax
movzx eax, word [esp + 0x132]
mov ecx, ebx
push 0
push 0
push eax
push esi
push dword [esp + 0x14c]
push dword [esp + 0x14c]
call fcn.0043f100
test eax, eax
js 0x4218bb
movzx edi, word [esp + 0x60]
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
test di, di
je 0x421744
lea esi, [esp + 0x60]
mov eax, dword [esp + 0xc]
mov ecx, eax
mov dword [esp + 8], eax
jmp 0x421718
mov edi, dword [esp + 4]
push dword [esp + 0x10]
call fcn.0043e4f0
add esp, 4
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
je 0x4216fe
test eax, eax
jne 0x4218e1
mov ecx, ebx
call fcn.0043e8b0
jmp 0x4213a4
movzx edi, word [esi]
test di, di
je 0x421744
movzx eax, word [ecx]
test ax, ax
je 0x4218b3
add ecx, 2
add esi, 2
mov edx, dword [esp + 8]
add edx, 2
cmp ax, di
je 0x42173c
mov dword [esp + 8], edx
mov ecx, edx
je 0x421710
lea esi, [esp + 0x60]
jmp 0x421710
cmp dword [esp + 8], 0
mov edi, dword [esp + 4]
je 0x4218b7
mov ecx, ebx
push 0
push 0
push 0x20
lea eax, [esp + 0x62c]
push eax
push dword [esp + 0x6a4]
push dword [esp + 0x6a4]
call fcn.0043f100
test eax, eax
js 0x4218b7
mov eax, dword [esp + 0x690]
mov ecx, dword [esp + 0x694]
add eax, 0x10
mov dword [esp + 8], eax
adc ecx, 0
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x630]
mov edx, dword [esp + 0x634]
mov dword [esp + 0x504], edx
mov dword [esp + 0x500], eax
jmp 0x4217f0
cmp cx, dx
je 0x421889
push edi
call fcn.0043e4f0
add esp, 4
mov eax, dword [esp + 0x500]
mov edx, dword [esp + 0x504]
mov ecx, edx
xor ecx, dword [esp + 0x20]
mov esi, eax
xor esi, dword [esp + 8]
or esi, ecx
mov edi, dword [esp + 4]
je 0x4218b7
mov ecx, ebx
push 0
push 0
push 0x68
lea esi, [esp + 0x50c]
push esi
push edx
push eax
call fcn.0043f100
test eax, eax
js 0x4218b7
movzx eax, word [esp + 0x55a]
push eax
call fcn.0043e490
add esp, 4
mov edi, eax
movzx eax, word [esp + 0x55a]
mov ecx, ebx
push 0
push 0
push eax
push edi
push dword [esp + 0x574]
push dword [esp + 0x574]
call fcn.0043f100
test eax, eax
js 0x4217c1
xor eax, eax
nop
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + eax]
lea edx, [ecx - 0x41]
cmp dx, 0x1a
jae 0x421863
or ecx, 0x20
movzx edx, word [edi + eax]
lea esi, [edx - 0x41]
cmp si, 0x1a
jae 0x421873
or edx, 0x20
test cx, cx
je 0x4217b8
add eax, 2
cmp cx, dx
je 0x421850
jmp 0x4217b8
mov eax, dword [esp + 0x530]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x534]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x540]
mov dword [esp + 0x1c], eax
push edi
call fcn.0043e4f0
add esp, 4
mov edi, dword [esp + 4]
mov esi, dword [esp + 0xc]
push esi
call fcn.0043e4f0
add esp, 4
jmp 0x4216dc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
push dword [esp + 0x24]
call fcn.0043e4f0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov ecx, ebx
call fcn.0043e8a0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret