Function at 0x408800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x12c
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
mov esi, dword [0x427f0c]
mov eax, dword [esi + 0x9c]
push edi
mov edi, dword [esp + 0x140]
push 0x428362
lea edx, [esp + 0x2c]
push edx
mov dword [0x42824c], eax
mov eax, dword [esi + 0x98]
xor ecx, ecx
push 0x428244
xor ebp, ebp
push eax
mov dword [0x428244], ebp
mov word [0x428362], cx
call fcn.00402fe0
mov ebx, dword [esi + 0xe0]
add esp, 0x10
mov dword [esp + 0x30], ebx
cmp dword [esi + 0xe4], ebp
jne 0x408875
cmp ebx, ebp
je 0x408897
mov eax, dword [esp + 0x144]
push eax
push 0x1c1
push ebp
push 0x7e2
push edi
call fcn.004062d0
mov esi, dword [0x427f0c]
add esp, 0x14
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
mov dword [esp + 0x3c], ebp
call fcn.00402fe0
mov eax, dword [esi + 0xb8]
add esp, 0x10
mov dword [esp + 0x28], eax
cmp eax, ebp
je 0x408977
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], ebp
call fcn.00402fe0
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, ebp
jne 0x408913
mov edx, dword [0x42808c]
push edx
push 0x1b7
push 0x428260
push 0x7d4
push edi
call fcn.004062d0
add esp, 0x14
xor eax, eax
jmp 0x408bcd
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4290cc]
add edx, ecx
mov eax, dword [edx + eax + 0x10]
sub eax, dword [esi + 0x18]
push 0x429278
push 0x4281c0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [0x4281a8], ebp
mov dword [0x4281c0], ebp
mov dword [0x429278], ebp
call fcn.00402fe0
add esp, 0x10
mov dword [0x4281a8], eax
cmp eax, ebp
jne 0x408967
mov edx, dword [0x42808c]
push edx
push 0x1b8
jmp 0x4088f9
cmp byte [0x427461], 0
je 0x408977
or byte [0x427461], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x428370]
mov dword [ecx + 0x30], ebp
movsx edx, byte [0x427461]
mov ecx, dword [0x428370]
mov dword [ecx + 0x38], edx
mov ecx, dword [0x428370]
movzx edx, al
mov byte [esp + 0x23], al
mov byte [esp + 0x12], al
mov dword [ecx + 0x34], edx
xor eax, eax
lea esp, [esp]
mov ecx, eax
and ecx, 7
mov dl, al
shl dl, cl
inc eax
mov byte [esp + eax + 0x37], dl
cmp eax, 0x100
jb 0x4089b0
mov byte [esp + 0x13], 0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x38]
mov dl, byte [esp + 0x13]
mov bl, cl
add bl, byte [esp + 0x12]
inc eax
add dl, bl
movzx esi, dl
lea esi, [esp + esi + 0x38]
mov byte [esp + 0x13], dl
movzx edx, byte [esi]
xor dl, 0x13
mov byte [esp + eax + 0x37], dl
mov byte [esi], cl
movzx ecx, byte [esp + 0x38]
xor cl, 0x25
add byte [esp + 0x12], cl
cmp eax, 0x100
jb 0x4089d0
mov edx, dword [0x427f0c]
mov eax, dword [edx + 0x9c]
mov ecx, dword [0x429d8c]
mov dword [0x42824c], eax
movzx edx, word [ecx + 2]
xor eax, eax
sub edx, 5
mov dword [esp + 0x18], eax
je 0x408bc8
mov ecx, dword [0x4292e4]
xor edi, edi
lea ecx, [ecx]
test byte [edi + ecx + 0x24], 0x20
je 0x408bab
mov edx, dword [edi + ecx + 0xc]
mov esi, dword [0x427f0c]
cmp edx, dword [esi + 0x80]
je 0x408bab
cmp dword [edi + ecx + 0x10], ebp
je 0x408bab
cmp dword [edi + ecx + 0x14], ebp
je 0x408bab
cmp eax, dword [esp + 0x2c]
jne 0x408a85
cmp dword [esp + 0x30], ebp
jne 0x408bab
cmp eax, dword [esp + 0x24]
jne 0x408a95
cmp dword [esp + 0x28], ebp
jne 0x408bab
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00402d20
mov ebp, dword [0x4292e4]
mov ecx, dword [edi + ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + ebp + 0x10]
add esp, 8
xor bl, bl
mov dword [esp + 0x1c], eax
cmp eax, ecx
jbe 0x408ac9
test ecx, ecx
je 0x408ac9
mov dword [esp + 0x1c], ecx
mov eax, ecx
cmp eax, 0x7fffffff
jbe 0x408adc
mov dword [esp + 0x1c], 0x7fffffff
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jbe 0x408b36
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
call fcn.00402cc0
add esp, 0xc
test eax, eax
jne 0x408b26
mov ecx, dword [edi + ebp + 0x14]
add ecx, dword [0x4290cc]
mov al, byte [ecx + esi]
add ecx, esi
mov dl, al
add al, bl
xor al, byte [esp + 0x23]
mov bl, al
not bl
shr bl, 4
shl al, 4
xor bl, al
mov byte [ecx], bl
mov ebp, dword [0x4292e4]
mov bl, dl
add esi, dword [0x4290d0]
cmp esi, dword [esp + 0x1c]
jb 0x408ae2
mov eax, dword [esp + 0x1c]
xor ebx, ebx
test eax, eax
jbe 0x408b81
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push ebx
push eax
call fcn.00402cc0
add esp, 0xc
test eax, eax
jne 0x408b7a
mov ecx, dword [edi + ebp + 0x14]
add ecx, dword [0x4290cc]
mov edx, ebx
lea eax, [ecx + ebx]
and edx, 0xff
mov cl, byte [esp + edx + 0x38]
add cl, bl
xor byte [eax], cl
mov ebp, dword [0x4292e4]
inc ebx
cmp ebx, dword [esp + 0x1c]
jb 0x408b40
mov ecx, dword [esp + 0x18]
mov eax, dword [0x428370]
mov edx, 1
shl edx, cl
or dword [eax + 0x30], edx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [0x4292e4]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, dword [0x429d8c]
movzx edx, word [edx + 2]
inc eax
sub edx, 5
add edi, 0x28
mov dword [esp + 0x18], eax
cmp eax, edx
jb 0x408a40
mov eax, 1
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0x12c
ret