Function at 0x635c18a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3bc
mov eax, dword [0x635f021c]
test eax, eax
jne 0x635c19d9
mov byte [esp + 0x137], 1
mov byte [esp + 0x38], 1
mov byte [esp + 0x239], 0
xor edx, edx
mov eax, 3
lea ebx, [esp + 0x38]
nop
inc edx
cmp edx, 0xff
je 0x635c1910
mov byte [esp + edx + 0x137], al
mov byte [ebx + edx], al
mov byte [esp + eax + 0x238], dl
lea ecx, [eax + eax]
xor eax, ecx
cmp eax, 0xff
jle 0x635c18dc
xor eax, 0x11b
inc edx
cmp edx, 0xff
jne 0x635c18e5
xor ecx, ecx
xor dl, dl
mov ebp, 0xff
lea esi, [esi]
mov esi, edx
shl esi, 4
lea eax, [edx + edx]
lea edi, [edx*4]
xor eax, edi
xor eax, edx
shl edx, 3
xor eax, edx
xor eax, esi
mov edx, eax
xor edx, 0x63
sar eax, 8
xor edx, eax
and edx, 0xff
mov byte [edx + 0x635ee020], cl
mov byte [ecx + 0x635ef120], dl
inc ecx
cmp ecx, 0x100
je 0x635c196e
movzx eax, byte [esp + ecx + 0x238]
mov edx, ebp
sub edx, eax
movzx edx, byte [esp + edx + 0x38]
jmp 0x635c191c
lea edi, [esp + 0x398]
mov esi, section..data
mov cx, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 0x635ee020
mov dword [esp], ebx
lea ecx, [esp + 0x238]
lea edx, [esp + 0x398]
mov eax, 0x635ee120
call fcn.635c1380
lea edi, [esp + 0x3a8]
mov esi, 0x635df010
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 0x635ef120
mov dword [esp], ebx
lea ecx, [esp + 0x238]
lea edx, [esp + 0x3a8]
mov eax, 0x635ef220
call fcn.635c1380
cmp dword [esp + 0x3d8], 0x80
je 0x635c1a04
cmp dword [esp + 0x3d8], 0xc0
je 0x635c1a04
cmp dword [esp + 0x3d8], 0x100
jne 0x635c1e32
mov ebx, dword [esp + 0x3d8]
sar ebx, 5
mov dword [esp + 0x24], ebx
add ebx, 6
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x3d0]
mov dword [edi + 0x110], ebx
mov ebp, dword [esp + 0x24]
shl ebp, 2
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x368]
mov dword [esp + 0x10], eax
mov edi, eax
mov esi, dword [esp + 0x3d4]
mov ecx, ebp
rep movsb byte es:[edi], byte [esi]
mov edx, edi
mov edi, dword [esp + 0x3d0]
mov esi, dword [esp + 0x3d4]
mov ecx, ebp
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x24]
add eax, 7
mov dword [esp + 0x34], eax
shl eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebp
movzx ecx, byte [esp + eax*4 + 0x369]
mov bl, byte [ecx + 0x635ef120]
xor ebx, dword [esp + 0x368]
mov byte [esp + 0x368], bl
movzx ecx, byte [esp + eax*4 + 0x36a]
mov cl, byte [ecx + 0x635ef120]
xor byte [esp + 0x369], cl
movzx ecx, byte [esp + eax*4 + 0x36b]
mov cl, byte [ecx + 0x635ef120]
xor byte [esp + 0x36a], cl
movzx ecx, byte [esp + eax*4 + 0x368]
mov cl, byte [ecx + 0x635ef120]
xor byte [esp + 0x36b], cl
mov ecx, dword [esp + 0x1c]
xor bl, byte [ecx + 0x635e0068]
mov byte [esp + 0x368], bl
inc ecx
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x24], 1
jle 0x635c1b69
cmp dword [esp + 0x24], 8
je 0x635c1ba0
movzx ebp, byte [esp + 0x36b]
movzx edi, byte [esp + 0x36a]
movzx esi, byte [esp + 0x369]
lea ecx, [esp + 0x36c]
mov dword [esp + 0x28], edx
mov edx, esi
mov byte [esp + 0xf], dl
mov esi, ebx
mov ebx, ebp
mov ebp, eax
mov eax, edi
mov edi, dword [esp + 0x28]
mov dl, byte [ecx]
xor esi, edx
mov edx, esi
mov byte [ecx], dl
mov dl, byte [ecx + 1]
xor byte [esp + 0xf], dl
mov dl, byte [esp + 0xf]
mov byte [ecx + 1], dl
xor al, byte [ecx + 2]
mov byte [ecx + 2], al
xor bl, byte [ecx + 3]
mov byte [ecx + 3], bl
add ecx, 4
cmp ecx, edi
jne 0x635c1b3c
mov eax, ebp
mov edx, edi
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ecx
jle 0x635c1c34
mov edi, dword [esp + 0x3d0]
add edi, ecx
mov dword [esp + 0x20], edi
jmp 0x635c1a84
lea ecx, [esp + 0x36c]
mov ebx, 2
mov esi, eax
jmp 0x635c1bd0
mov al, byte [ecx - 4]
xor byte [ecx], al
mov al, byte [ecx - 3]
xor byte [ecx + 1], al
mov al, byte [ecx - 2]
xor byte [ecx + 2], al
mov al, byte [ecx - 1]
xor byte [ecx + 3], al
cmp ebx, 7
jg 0x635c1c2c
inc ebx
add ecx, 4
cmp ebx, 5
jne 0x635c1bb0
movzx eax, byte [esp + 0x374]
mov al, byte [eax + 0x635ef120]
xor byte [esp + 0x378], al
movzx eax, byte [esp + 0x375]
mov al, byte [eax + 0x635ef120]
xor byte [esp + 0x379], al
movzx eax, byte [esp + 0x376]
mov al, byte [eax + 0x635ef120]
xor byte [esp + 0x37a], al
movzx eax, byte [esp + 0x377]
mov al, byte [eax + 0x635ef120]
xor byte [esp + 0x37b], al
jmp 0x635c1bcc
mov eax, esi
jmp 0x635c1b69
mov eax, dword [esp + 0x3dc]
test eax, eax
jne 0x635c1cb8
mov eax, dword [esp + 0x34]
sar eax, 1
test eax, eax
jle 0x635c1cab
mov ebp, dword [esp + 0x30]
shl ebp, 4
add ebp, dword [esp + 0x3d0]
shl eax, 4
mov dword [esp + 0x14], eax
xor eax, eax
lea ebx, [esp + 0x388]
mov edx, 4
mov dword [esp + 0x18], ebx
mov edi, ebx
mov esi, ebp
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3d0]
add esi, eax
mov edi, ebp
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x3d0]
add edi, eax
lea ebx, [esp + 0x388]
mov esi, dword [esp + 0x18]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
sub ebp, 0x10
add eax, 0x10
cmp eax, dword [esp + 0x14]
jne 0x635c1c70
xor eax, eax
add esp, 0x3bc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x30], 1
jle 0x635c1cab
mov ebx, dword [esp + 0x3d0]
mov ebp, 1
lea edi, [esp + 0x358]
mov dword [esp + 0x18], edi
lea eax, [esp + 0x338]
mov dword [esp + 0x14], eax
lea esi, [esi]
lea esi, [ebx + 0x10]
mov edi, dword [esp + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x635ef120
xor edx, edx
lea eax, [esp + 0x348]
call fcn.635c12d0
movzx eax, byte [esp + 0x34d]
movzx edx, byte [esp + 0x348]
mov eax, dword [eax*4 + 0x635ee520]
xor eax, dword [edx*4 + 0x635ee120]
movzx edx, byte [esp + 0x352]
xor eax, dword [edx*4 + 0x635ee920]
movzx edx, byte [esp + 0x357]
xor eax, dword [edx*4 + 0x635eed20]
mov dword [esp + 0x338], eax
movzx eax, byte [esp + 0x351]
movzx edx, byte [esp + 0x34c]
mov eax, dword [eax*4 + 0x635ee520]
xor eax, dword [edx*4 + 0x635ee120]
movzx edx, byte [esp + 0x356]
xor eax, dword [edx*4 + 0x635ee920]
movzx edx, byte [esp + 0x34b]
xor eax, dword [edx*4 + 0x635eed20]
mov dword [esp + 0x33c], eax
movzx eax, byte [esp + 0x355]
movzx edx, byte [esp + 0x350]
mov eax, dword [eax*4 + 0x635ee520]
xor eax, dword [edx*4 + 0x635ee120]
movzx edx, byte [esp + 0x34a]
xor eax, dword [edx*4 + 0x635ee920]
movzx edx, byte [esp + 0x34f]
xor eax, dword [edx*4 + 0x635eed20]
mov dword [esp + 0x340], eax
movzx eax, byte [esp + 0x349]
movzx edx, byte [esp + 0x354]
mov eax, dword [eax*4 + 0x635ee520]
xor eax, dword [edx*4 + 0x635ee120]
movzx edx, byte [esp + 0x34e]
xor eax, dword [edx*4 + 0x635ee920]
movzx edx, byte [esp + 0x353]
xor eax, dword [edx*4 + 0x635eed20]
mov dword [esp + 0x344], eax
lea edi, [ebx + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
inc ebp
add ebx, 0x10
cmp ebp, dword [esp + 0x30]
jne 0x635c1ce4
jmp 0x635c1cab
mov eax, 0xffffffff
jmp 0x635c1cad