Function at 0x404df0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x134
push ebx
mov ebx, dword [esp + 0x154]
mov eax, dword [ebx]
push ebp
push esi
add eax, 0x44
push edi
push eax
call fcn.004397e0
mov edx, dword [esp + 0x168]
mov ebp, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], ebp
mov edi, ebp
je 0x404e62
mov eax, dword [edx]
cmp eax, 0x20
jge 0x404e5b
mov esi, dword [edx + 4]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x20
sub ecx, eax
lea edi, [eax + ebp]
mov eax, ecx
shr ecx, 2
mov esi, 0x465588
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404e6e
mov edx, dword [edx + 4]
mov esi, edx
jmp 0x404e67
mov esi, 0x465588
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x154]
mov esi, dword [ecx + 4]
mov eax, dword [esp + 0x15c]
mov edx, eax
lea edi, [ebp + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + 0x40], al
mov ecx, eax
sar ecx, 0x10
mov byte [ebp + 0x42], cl
sar eax, 0x18
mov byte [ebp + 0x43], al
sar edx, 8
mov byte [ebp + 0x41], dl
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov esi, dword [esp + 0x168]
push esi
add eax, 0x44
push eax
push ebp
call fcn.00404170
mov eax, dword [esp + 0x158]
add esp, 0xc
cmp eax, 3
jne 0x404f18
mov edi, 0x32
mov ecx, dword [esp + 0x150]
push esi
push ecx
push esi
call fcn.00404170
add esp, 0xc
dec edi
jne 0x404ee0
mov ecx, dword [esp + 0x158]
mov esi, dword [ecx + 4]
mov ecx, 8
lea edi, [esp + 0x14]
mov edx, 0x13
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], edx
jmp 0x405112
cmp eax, 2
jne 0x405349
mov ebx, dword [esp + 0x150]
push esi
lea esi, [esp + 0x38]
call fcn.00403fb0
mov eax, dword [esp + 0x15c]
mov eax, dword [eax + 4]
add esp, 4
xor edi, edi
xor esi, esi
xor edx, edx
add eax, 2
jmp 0x404f50
lea ecx, [esi + 1]
and ecx, 0x800000ff
jns 0x404f63
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x34]
add ecx, edx
and ecx, 0x800000ff
jns 0x404f7d
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [esp + esi + 0x34]
movzx ebp, cl
mov cl, byte [esp + ebp + 0x34]
mov byte [esp + esi + 0x34], cl
mov byte [esp + ebp + 0x34], dl
movzx ecx, cl
movzx edx, dl
add ecx, edx
and ecx, 0x800000ff
jns 0x404fa8
dec ecx
or ecx, 0xffffff00
inc ecx
mov cl, byte [esp + ecx + 0x34]
xor cl, byte [eax - 2]
mov byte [esp + edi + 0x14], cl
lea ecx, [esi + 1]
and ecx, 0x800000ff
jns 0x404fc6
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x34]
add ecx, ebp
and ecx, 0x800000ff
jns 0x404fe0
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [esp + esi + 0x34]
movzx ebp, cl
mov cl, byte [esp + ebp + 0x34]
mov byte [esp + esi + 0x34], cl
mov byte [esp + ebp + 0x34], dl
movzx ecx, cl
movzx edx, dl
add ecx, edx
and ecx, 0x800000ff
jns 0x40500b
dec ecx
or ecx, 0xffffff00
inc ecx
mov cl, byte [esp + ecx + 0x34]
xor cl, byte [eax - 1]
mov byte [esp + edi + 0x15], cl
lea ecx, [esi + 1]
and ecx, 0x800000ff
jns 0x405029
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x34]
add ecx, ebp
and ecx, 0x800000ff
jns 0x405043
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [esp + esi + 0x34]
movzx ebp, cl
mov cl, byte [esp + ebp + 0x34]
mov byte [esp + esi + 0x34], cl
mov byte [esp + ebp + 0x34], dl
movzx ecx, cl
movzx edx, dl
add ecx, edx
and ecx, 0x800000ff
jns 0x40506e
dec ecx
or ecx, 0xffffff00
inc ecx
mov cl, byte [esp + ecx + 0x34]
xor cl, byte [eax]
mov byte [esp + edi + 0x16], cl
lea ecx, [esi + 1]
and ecx, 0x800000ff
jns 0x40508b
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
movzx ecx, byte [esp + esi + 0x34]
add ecx, ebp
and ecx, 0x800000ff
jns 0x4050a5
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + esi + 0x34]
movzx edx, cl
mov cl, byte [esp + edx + 0x34]
mov byte [esp + esi + 0x34], cl
mov byte [esp + edx + 0x34], bl
movzx ecx, cl
movzx ebx, bl
add ecx, ebx
and ecx, 0x800000ff
jns 0x4050d0
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [eax + 1]
mov cl, byte [esp + ecx + 0x34]
xor cl, bl
mov byte [esp + edi + 0x17], cl
add edi, 4
add eax, 4
cmp edi, 0x20
jl 0x404f50
mov ebp, dword [esp + 0x10]
xor edx, edx
mov ecx, 8
mov edi, 0x465588
lea esi, [esp + 0x14]
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
mov esi, eax
jmp 0x40534b
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x150]
xor eax, eax
test edi, edi
jle 0x405143
mov ecx, dword [esp + 0x168]
lea esi, [esp + 0x134]
sub ecx, esi
nop
lea esi, [esp + eax + 0x134]
mov bl, byte [ecx + esi]
xor bl, dl
inc eax
cmp eax, edi
mov byte [esi], bl
jl 0x405130
lea edx, [esp + 0x134]
push edx
lea esi, [esp + 0x38]
mov ebx, edi
call fcn.00403fb0
add esp, 4
xor esi, esi
xor ecx, ecx
xor edx, edx
nop
lea eax, [ecx + 1]
and eax, 0x800000ff
jns 0x405171
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
movzx eax, byte [esp + ecx + 0x34]
add eax, edx
and eax, 0x800000ff
jns 0x405189
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + ecx + 0x34]
movzx edi, al
mov al, byte [esp + edi + 0x34]
mov byte [esp + ecx + 0x34], al
mov byte [esp + edi + 0x34], dl
movzx eax, al
movzx edx, dl
add eax, edx
and eax, 0x800000ff
jns 0x4051b2
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [esp + eax + 0x34]
mov bl, byte [esp + esi + 0x14]
xor bl, al
lea eax, [ecx + 1]
and eax, 0x800000ff
mov byte [esp + esi + 0x14], bl
jns 0x4051d1
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
movzx eax, byte [esp + ecx + 0x34]
add eax, edi
and eax, 0x800000ff
jns 0x4051e9
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + ecx + 0x34]
movzx edi, al
mov al, byte [esp + edi + 0x34]
mov byte [esp + ecx + 0x34], al
mov byte [esp + edi + 0x34], dl
movzx eax, al
movzx edx, dl
add eax, edx
and eax, 0x800000ff
jns 0x405212
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [esp + eax + 0x34]
mov bl, byte [esp + esi + 0x15]
xor bl, al
lea eax, [ecx + 1]
and eax, 0x800000ff
mov byte [esp + esi + 0x15], bl
jns 0x405231
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
movzx eax, byte [esp + ecx + 0x34]
add eax, edi
and eax, 0x800000ff
jns 0x405249
dec eax
or eax, 0xffffff00
inc eax
mov dl, byte [esp + ecx + 0x34]
movzx edi, al
mov al, byte [esp + edi + 0x34]
mov byte [esp + ecx + 0x34], al
mov byte [esp + edi + 0x34], dl
movzx eax, al
movzx edx, dl
add eax, edx
and eax, 0x800000ff
jns 0x405272
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [esp + eax + 0x34]
mov bl, byte [esp + esi + 0x16]
xor bl, al
lea eax, [ecx + 1]
and eax, 0x800000ff
mov byte [esp + esi + 0x16], bl
jns 0x405291
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
movzx eax, byte [esp + ecx + 0x34]
add eax, edi
and eax, 0x800000ff
jns 0x4052a9
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [esp + ecx + 0x34]
movzx edx, al
mov al, byte [esp + edx + 0x34]
mov byte [esp + ecx + 0x34], al
movzx eax, al
movzx edi, bl
add eax, edi
and eax, 0x800000ff
mov byte [esp + edx + 0x34], bl
jns 0x4052d2
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [esp + esi + 0x17]
mov al, byte [esp + eax + 0x34]
xor bl, al
mov byte [esp + esi + 0x17], bl
add esi, 4
cmp esi, 0x20
jl 0x405160
dec dword [esp + 0x10]
jns 0x40510e
mov eax, dword [esp + 0x160]
mov ecx, 8
mov esi, 0x465588
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
push ebp
add eax, 0x20
push eax
push ebp
call fcn.00404170
add esp, 0xc
xor edx, edx
mov ecx, 4
mov edi, ebp
lea esi, [esp + 0x14]
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
mov esi, eax
jmp 0x40534b
xor esi, esi
push ebp
call fcn.00439870
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret