Function at 0x401e32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edx, dword [ebx + 0x2ec]
cmp edx, eax
jne 0x4022fc
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebx + 0x2e8]
jne 0x4022fc
mov esi, dword [ebx + 0x2e4]
cmp eax, 3
jl 0x4022fc
cmp eax, 4
jle 0x401ea0
cmp eax, 5
je 0x401e90
cmp eax, 6
jne 0x4022fc
mov dword [ebp + 0x10], 0x4011ea
mov dword [ebp + 8], 0x40122f
jmp 0x401eae
mov dword [ebp + 0x10], 0x4011d3
mov dword [ebp + 8], 0x401218
jmp 0x401eae
mov dword [ebp + 0x10], 0x4011bc
mov dword [ebp + 8], 0x401201
cmp ecx, 0xc
ja case.default.0x401eb7
jmp dword [ecx*4 + 0x402304]
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
test eax, eax
jbe case.default.0x401eb7
mov edi, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [ebp + 0x10]
add dword [ebp + 0x14], esi
add dword [ebp + 0x18], esi
add esp, 0xc
dec edi
jne 0x401ed7
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
test eax, eax
jbe case.default.0x401eb7
mov edi, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [ebp + 8]
add dword [ebp + 0x14], esi
add dword [ebp + 0x18], esi
add esp, 0xc
dec edi
jne 0x401f0b
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
lea ecx, [ebx + 0x2d0]
test eax, eax
mov dword [ebp + 0xc], ecx
jbe 0x401f82
mov edi, dword [ebp + 0x18]
mov dword [ebp + 8], eax
test esi, esi
jbe 0x401f6d
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], ecx
sub dword [ebp + 0x18], eax
mov ecx, edi
sub ecx, eax
mov dword [ebp + 0x1c], esi
mov edx, dword [ebp + 0x18]
mov dl, byte [edx + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp + 0x1c]
jne 0x401f5c
push edi
push edi
push ebx
call dword [ebp + 0x10]
add dword [ebp + 0x14], esi
mov ecx, edi
add esp, 0xc
add edi, esi
dec dword [ebp + 8]
jne 0x401f48
push esi
push ecx
push dword [ebp + 0xc]
call fcn.004074b0
add esp, 0xc
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
test eax, eax
jbe case.default.0x401eb7
mov ecx, esi
lea edi, [ebx + 0x2d0]
neg ecx
sub edi, dword [ebp + 0x18]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x1c], eax
push esi
lea eax, [ebp - 0x10]
push dword [ebp + 0x14]
push eax
call fcn.004074b0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [ebp + 8]
add esp, 0x18
test esi, esi
jbe 0x401fea
mov eax, dword [ebp + 0x18]
mov ecx, esi
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x401fe1
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebx + 0x2d0]
push eax
call fcn.004074b0
add dword [ebp + 0x14], esi
add dword [ebp + 0x18], esi
add edi, dword [ebp + 0x10]
add esp, 0xc
dec dword [ebp + 0x1c]
jne 0x401fbe
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
test eax, eax
jbe case.default.0x401eb7
lea ecx, [esi - 1]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x1c], ecx
lea ecx, [esi + ebx + 0x2cf]
mov dword [ebp + 8], ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x2d0]
push eax
push ebx
call dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov al, byte [eax]
xor al, byte [ebp - 0x10]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov byte [ecx], al
jbe 0x402068
mov ecx, dword [ebp + 0x1c]
lea esi, [ebx + 0x2d1]
lea edi, [ebx + 0x2d0]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
inc dword [ebp + 0x18]
dec dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ecx], al
jne 0x40202f
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
test eax, eax
jbe case.default.0x401eb7
lea ecx, [esi - 1]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x1c], ecx
lea ecx, [esi + ebx + 0x2cf]
mov dword [ebp + 8], ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x2d0]
push eax
push ebx
call dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jbe 0x4020c6
mov ecx, dword [ebp + 0x1c]
lea esi, [ebx + 0x2d1]
lea edi, [ebx + 0x2d0]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov cl, byte [eax]
mov byte [edx], cl
mov cl, byte [eax]
xor cl, byte [ebp - 0x10]
mov edx, dword [ebp + 0x18]
inc dword [ebp + 0x18]
inc eax
dec dword [ebp + 0xc]
mov byte [edx], cl
mov dword [ebp + 0x14], eax
jne 0x40209d
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
test eax, eax
jbe case.default.0x401eb7
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x2d0]
push eax
push ebx
call dword [ebp + 0x10]
add esp, 0xc
xor edi, edi
test esi, esi
jbe 0x40214c
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x10]
mov dword [ebp + 0x1c], ecx
sub eax, edx
mov dword [ebp + 8], eax
jmp 0x402138
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
lea eax, [ebp + edi - 0x10]
mov cl, byte [ecx + eax]
xor cl, byte [eax]
inc edi
cmp edi, esi
mov byte [edx + eax], cl
jb 0x402135
add dword [ebp + 0x14], esi
push esi
push dword [ebp + 0x18]
lea eax, [ebx + 0x2d0]
push eax
call fcn.004074b0
add dword [ebp + 0x18], esi
add esp, 0xc
dec dword [ebp + 0xc]
jne 0x402105
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
test eax, eax
jbe case.default.0x401eb7
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
lea edi, [ebx + 0x2d0]
push eax
push edi
push ebx
call dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
push edi
call fcn.004074b0
add esp, 0x18
xor edi, edi
test esi, esi
jbe 0x4021da
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x10]
mov dword [ebp + 0x1c], ecx
sub eax, edx
mov dword [ebp + 8], eax
jmp 0x4021c6
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
lea eax, [ebp + edi - 0x10]
mov cl, byte [ecx + eax]
xor cl, byte [eax]
inc edi
cmp edi, esi
mov byte [edx + eax], cl
jb 0x4021c3
add dword [ebp + 0x18], esi
add dword [ebp + 0x14], esi
dec dword [ebp + 0xc]
jne 0x402189
jmp case.default.0x401eb7
mov eax, dword [ebp + 0x1c]
test eax, eax
jbe case.default.0x401eb7
mov edi, dword [ebp + 0x18]
lea esi, [ebx + 0x2d0]
mov dword [ebp + 0x1c], eax
push esi
push esi
push ebx
call dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov al, byte [eax]
xor al, byte [esi]
mov byte [edi], al
inc edi
inc dword [ebp + 0x14]
dec dword [ebp + 0x1c]
jne 0x402201
jmp case.default.0x401eb7
test edx, edx
jne 0x4022fc
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
mov dword [ebp + 0x18], eax
jne 0x4022fc
mov eax, dword [ebp + 0x1c]
and dword [ebp + 0x18], edx
div esi
lea edi, [ebx + 0x2d0]
test eax, eax
jbe case.default.0x401eb7
test esi, esi
jbe 0x40226a
mov ecx, dword [ebp + 0x14]
mov eax, edi
sub ecx, edi
mov dword [ebp + 8], esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp + 8]
jne 0x40225f
add dword [ebp + 0x14], esi
push edi
push edi
push ebx
call dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
xor edx, edx
div dword [ebx + 0x2e4]
add esp, 0xc
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], eax
jb 0x402251
jmp case.default.0x401eb7
test edx, edx
je 0x402294
cmp edx, 1
jne 0x4022fc
mov eax, dword [ebp + 0x1c]
xor edx, edx
div esi
test edx, edx
jne 0x4022fc
test eax, eax
lea edi, [ebx + 0x2d0]
jbe 0x4022ef
mov dword [ebp + 8], eax
test esi, esi
jbe 0x4022c5
mov ecx, dword [ebp + 0x14]
mov eax, edi
sub ecx, edi
mov dword [ebp + 0x18], esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec dword [ebp + 0x18]
jne 0x4022ba
push edi
push edi
push ebx
call dword [ebp + 0x10]
add esp, 0xc
test esi, esi
jbe 0x4022e7
mov ecx, dword [ebp + 0x14]
mov eax, edi
sub ecx, edi
mov dword [ebp + 0x18], esi
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec dword [ebp + 0x18]
jne 0x4022dc
add dword [ebp + 0x14], esi
dec dword [ebp + 8]
jne 0x4022ac
mov eax, dword [ebp + 0x1c]
add dword [ebx + 0x2e0], eax
xor eax, eax
jmp 0x4022ff
push 0x20
pop eax
pop edi
pop esi
pop ebx
leave
ret