Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca2e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x44e0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x50]
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x7d], 0
call fcn.00402adc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0
call fcn.00402907
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x401723
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401719
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a38
push edx
push ecx
call fcn.0040f9bd
add esp, 8
cmp byte [ebp - 0x78], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
je 0x4019a8
mov eax, dword [0x4383b4]
mov dword [ebp - 0x28], eax
mov ax, word [0x4383b8]
mov word [ebp - 0x24], ax
mov al, byte [0x4383ba]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 7
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x7c]
call fcn.00402615
mov edx, dword [ebp - 0x14]
mov esi, eax
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4017b5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4017ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a3d
push edx
push ecx
call fcn.0040f9bd
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x4019a8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 4
push eax
push 0
push esi
lea ecx, [ebp - 0x7c]
call fcn.004023c1
test al, al
je 0x40196e
mov esi, dword [ebp - 0x98]
lea ecx, [ebp - 0x84]
xorps xmm0, xmm0
mov dword [ebp - 0x8c], esi
push 0
movups xmmword [ebp - 0x38], xmm0
call fcn.00403f39
push dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.004040cc
push 0x10
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.004040e9
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040409f
lea ecx, [ebp - 0xa0]
call fcn.00403f2f
mov eax, dword [edi + 4]
mov ecx, eax
mov esi, dword [esi + 0xc]
mov edx, dword [edi]
inc esi
sub ecx, edx
mov byte [ebp - 4], 6
mov dword [ebp - 0x88], eax
cmp esi, ecx
jae 0x40188b
lea eax, [edx + esi]
jmp 0x4018bf
jbe 0x4018c2
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4018a4
lea eax, [ebp - 0x7d]
mov ecx, edi
push eax
push esi
call fcn.00401140
jmp 0x4018c2
sub esi, ecx
push esi
push 0
push dword [ebp - 0x88]
call fcn.00412370
mov eax, dword [ebp - 0x88]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004040fd
push dword [edi]
mov esi, dword [ebp - 0x8c]
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0x98]
add eax, 0x28
push dword [esi + 0xc]
push eax
call fcn.00403f75
mov byte [ebp - 0x7d], al
lea ecx, [ebp - 0x38]
mov edx, 0x10
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x401900
mov ecx, dword [esi + 8]
mov eax, dword [edi]
mov byte [ecx + eax], dl
cmp byte [ebp - 0x7d], dl
je 0x401958
mov eax, dword [esi + 0x10]
or edx, 0xffffffff
mov esi, dword [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0x8c], eax
test esi, esi
je 0x401950
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x44ec18]
sub esi, 1
jne 0x401930
mov eax, dword [ebp - 0x8c]
not edx
cmp edx, eax
sete byte [ebp - 0x7d]
lea ecx, [ebp - 0xa0]
call fcn.00403f5a
lea ecx, [ebp - 0x84]
call fcn.00403f69
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x4019a8
mov edx, dword [ebp - 0x90]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40199e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a42
push edx
push ecx
call fcn.0040f9bd
add esp, 8
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x4019d8
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a47
push edx
push ecx
call fcn.0040f9bd
add esp, 8
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
test ecx, ecx
je 0x401a1a
mov edx, dword [ebp - 0x6c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x401a10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a47
push edx
push ecx
call fcn.0040f9bd
add esp, 8
mov al, byte [ebp - 0x7d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f9cb
mov esp, ebp
pop ebp
ret
call fcn.0041521a
call fcn.0041521a
call fcn.0041521a
call fcn.0041521a
int3