Function at 0x402c86
Capabilities:
Encode data using xor

Disassembly:
push 0x164
mov eax, 0x4348c3
call fcn.0041c69a
mov dword [ebp - 4], 2
xor ecx, ecx
mov eax, dword [str.WZFN8]
mov dword [ebp - 0x104], eax
mov al, byte [0x43f200]
push 0x37
mov byte [ebp - 0x100], al
pop edi
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0x104], dl
inc ecx
cmp ecx, 5
jl 0x402cb7
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0xf8]
call fcn.00404325
pop ecx
push 0x48
mov byte [ebp - 4], 3
call fcn.0041be08
mov esi, eax
pop ecx
mov dword [ebp - 0x104], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 4
call fcn.0041dab0
sub esp, 0xc
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004040f6
lea eax, [ebp - 0xf9]
mov ecx, esi
push eax
call fcn.0040282f
mov ebx, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0xf9], 0
mov dword [ebp - 0x104], ebx
je 0x4030e9
mov ecx, dword [0x43f24c]
mov edx, dword [0x43f250]
mov dword [ebp - 0x110], ecx
xor ecx, ecx
mov dword [ebp - 0x10c], edx
xor edx, edx
mov eax, ecx
div edi
add dl, 0x34
xor byte [ebp + ecx - 0x110], dl
inc ecx
cmp ecx, 8
jl 0x402d54
sub esp, 0x18
lea eax, [ebp - 0x110]
mov ecx, esp
push eax
call fcn.004040bd
mov ecx, ebx
call fcn.00412f19
test al, al
je 0x4030e9
inc dword [0x4487f8]
lea edi, [ebp - 0x50]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 5
xor edi, edi
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
push 0xc
cdq
pop ecx
idiv ecx
test eax, eax
jle 0x4030e1
inc dword [0x4487f0]
lea eax, [ebp - 0x2c]
push 5
push edi
push eax
mov ecx, ebx
call fcn.0041325a
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
cmova eax, dword [ebp - 0x2c]
seta cl
cmp byte [eax], 0x76
jne 0x402e11
test cl, cl
lea eax, [ebp - 0x2c]
cmovne eax, dword [ebp - 0x2c]
cmp byte [eax + 1], 0x31
jne 0x402e11
lea eax, [ebp + 0x38]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x128]
call fcn.00402202
pop ecx
jmp 0x402e2d
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.004040f6
lea ecx, [ebp - 0x128]
call fcn.004028f1
add esp, 0x18
push eax
lea ecx, [ebp - 0x50]
call fcn.0040404f
lea ecx, [ebp - 0x128]
call fcn.00402636
push 1
push edi
lea eax, [ebp - 0x80]
mov ecx, ebx
push eax
call fcn.0041325a
push 6
push edi
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.0041325a
push 7
push edi
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.0041325a
push 3
push edi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 9
push eax
mov ecx, ebx
call fcn.0041325a
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x140]
mov edx, dword [0x4487f8]
call fcn.004027c8
mov esi, eax
push 0x43f13c
lea edx, [ebp + 8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x170]
call fcn.00404325
pop ecx
push esi
push eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x128]
push dword [ebp - 0x103]
call fcn.0040466e
push 1
push 0x43f138
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xd
call fcn.004042c1
push eax
lea ecx, [ebp - 0x68]
call fcn.00404084
mov byte [ebp - 4], 0xe
xor ecx, ecx
mov eax, dword [0x43f404]
mov dword [ebp - 0x110], eax
mov al, byte [0x43f408]
push 0x37
mov byte [ebp - 0x10c], al
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x34
xor byte [ebp + ecx - 0x110], dl
inc ecx
cmp ecx, 5
jl 0x402f12
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040464d
push eax
lea ecx, [ebp - 0x98]
call fcn.00404084
lea ecx, [ebp - 0x68]
call fcn.00402636
lea ecx, [ebp - 0x128]
call fcn.00402636
lea ecx, [ebp - 0x170]
call fcn.00402636
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x13
call fcn.00402636
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xe0]
push eax
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x158]
call fcn.0040487b
add esp, 0x10
push eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x14
push eax
mov ecx, 0x4488ec
call fcn.0040e615
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x13
call fcn.00402636
sub esp, 0x18
mov ecx, esp
push 0x448e30
call fcn.004040f6
push 0x7e
pop edx
lea ecx, [ebp - 0x158]
call fcn.0040798d
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x38]
call fcn.00406fca
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x17
call fcn.00402636
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp esi, eax
je 0x403084
mov ebx, eax
push esi
lea ecx, [ebp - 0x68]
call fcn.004040f6
push 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x80]
call fcn.0040401b
cmp eax, 0xffffffff
je 0x40306b
push 0
lea eax, [ebp - 0x68]
mov ecx, 0x447900
push eax
call fcn.0040401b
cmp eax, 0xffffffff
jne 0x40306b
push 0x43f140
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x140]
call fcn.00404325
pop ecx
push eax
mov ecx, 0x447900
mov byte [ebp - 4], 0x19
call fcn.00404245
lea ecx, [ebp - 0x140]
call fcn.00402636
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x17
call fcn.00402636
add esi, 0x18
cmp esi, ebx
jne 0x403008
mov ebx, dword [ebp - 0x104]
lea ecx, [ebp - 0x38]
call fcn.004041b7
lea ecx, [ebp - 0x98]
call fcn.00402636
lea ecx, [ebp - 0xb0]
call fcn.00402636
lea ecx, [ebp - 0xc8]
call fcn.00402636
lea ecx, [ebp - 0xe0]
call fcn.00402636
lea ecx, [ebp - 0x80]
call fcn.00402636
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00402636
mov eax, dword [ebx + 0x3c]
inc edi
sub eax, dword [ebx + 0x38]
push 0xc
cdq
pop ecx
idiv ecx
cmp edi, eax
jl 0x402dc2
lea ecx, [ebp - 0x50]
call fcn.00402636
test ebx, ebx
je 0x4030fe
mov ecx, ebx
call fcn.00403127
push 0x48
push ebx
call fcn.0041be38
pop ecx
pop ecx
lea ecx, [ebp - 0xf8]
call fcn.00402636
lea ecx, [ebp + 8]
call fcn.00402636
lea ecx, [ebp + 0x20]
call fcn.00402636
lea ecx, [ebp + 0x38]
call fcn.00402636
call fcn.0041c649
ret