Function at 0x400182b0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x40025d24]
xor eax, esp
mov dword [esp + 0x1a0], eax
and dword [esp + 0x28], 0
mov eax, edx
and dword [esp + 0x14], 0
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], esi
push edi
push 0x14
pop edx
test eax, eax
je 0x40018a47
test ecx, ecx
je 0x40018a47
test esi, esi
je 0x40018a47
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0xa8], 0x123174bb
mov esi, section..data
mov dword [esp + 0xac], 0x86521ff8
lea edi, [esp + 0x120]
mov dword [esp + 0xb0], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xb4], 0x7966ce12
xor ecx, ecx
mov dword [esp + 0xb8], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0xa8]
xor dword [esp + ecx*4 + 0x120], eax
inc ecx
cmp ecx, ebx
jb 0x40018356
mov ecx, ebx
mov dword [esp + 0xbc], 0x123174bb
lea esi, [esp + 0x120]
mov dword [esp + 0xc0], 0x86521ff8
lea edi, [esp + 0x198]
mov dword [esp + 0xc4], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [esp + 0xc8], 0x7966ce12
mov esi, 0x4002503c
mov dword [esp + 0xcc], 0xc5d92014
lea edi, [esp + 0x134]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0xbc]
xor dword [esp + ecx*4 + 0x134], eax
inc ecx
cmp ecx, ebx
jb 0x400183ca
mov ecx, ebx
lea esi, [esp + 0x134]
lea edi, [esp + 0x10c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x104
call fcn.40015bca
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x40018413
mov esi, 0x8007000e
jmp 0x40018a84
lea eax, [ebx + 0x34]
mov dword [esp + 0xd0], 0x123174bb
lea edx, [eax + 0x58]
mov dword [esp + 0xd4], 0x86521ff8
push 0xd
lea ecx, [edx + 0x3c]
mov dword [esp + 0xdc], 0x98d2438b
mov dword [esp + 0x28], ecx
mov esi, 0x40025a40
add ecx, 0x14
mov dword [esp + 0xe0], 0x7966ce12
mov dword [esp + 0x18], ecx
mov edi, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
mov edi, eax
mov esi, dword [0x40025a40]
push 0x16
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
push 0xf
pop ecx
push 5
mov dword [eax + 0x30], edx
mov edi, dword [ebx]
mov esi, dword [0x40025a40]
mov dword [esp + 0xe4], 0xc5d92014
mov edi, dword [edi + 0x30]
mov esi, dword [esi + 0x30]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
lea edi, [esp + 0x14c]
mov ecx, dword [esp + 0x18]
add ecx, 0x14
mov eax, dword [eax + 0x30]
mov dword [eax + 0x20], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x30], eax
pop eax
mov ecx, eax
mov eax, dword [0x40025a40]
push 5
mov esi, dword [eax + 0x30]
mov esi, dword [esi + 0x20]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [esp + edx*4 + 0xd0]
xor dword [esp + ecx*4 + 0x148], eax
inc ecx
cmp ecx, esi
jb 0x400184ca
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x148]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], eax
lea edi, [esp + 0x15c]
mov esi, dword [0x40025a44]
push 5
pop ebx
mov ecx, ebx
mov dword [esp + 0xe4], 0x123174bb
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xe8], 0x86521ff8
xor ecx, ecx
mov dword [esp + 0xec], 0x98d2438b
mov dword [esp + 0xf0], 0x7966ce12
mov dword [esp + 0xf4], 0xc5d92014
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [esp + edx*4 + 0xe4]
xor dword [esp + ecx*4 + 0x15c], eax
inc ecx
cmp ecx, ebx
jb 0x40018546
mov edi, dword [esp + 0x24]
lea esi, [esp + 0x15c]
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push 5
mov dword [ebx + 8], eax
lea edi, [esp + 0x174]
mov esi, dword [0x40025a48]
pop eax
mov ecx, eax
mov dword [esp + 0xf8], 0x123174bb
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x100], 0x86521ff8
xor ecx, ecx
mov dword [esp + 0x104], 0x98d2438b
mov dword [esp + 0x108], 0x7966ce12
mov dword [esp + 0x10c], 0xc5d92014
pop esi
xor edx, edx
mov eax, ecx
div esi
mov eax, dword [esp + edx*4 + 0xf8]
xor dword [esp + ecx*4 + 0x170], eax
inc ecx
cmp ecx, esi
jb 0x400185c8
mov edi, dword [esp + 0x14]
mov ecx, esi
lea esi, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
and dword [esp + 0x44], 0
mov ecx, 0x550
call fcn.40015bca
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
jne 0x40018616
mov esi, 0x8007000e
push 0x14
pop edx
jmp 0x40018a4c
mov esi, dword [esp + 0x10]
lea eax, [edi + 0x100]
mov dword [esp + 0x14], eax
add eax, 0x214
mov dword [esp + 0x24], eax
push 5
lea edx, [eax + 0x14]
lea ebx, [eax + 0x28]
mov dword [esp + 0x34], edx
lea eax, [esp + 0x188]
cmp eax, esi
pop eax
je 0x40018650
mov ecx, eax
lea edi, [esp + 0x184]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea esi, [esp + 0x184]
mov edi, edx
lea eax, [esp + 0x184]
push 0x14
rep movsd dword es:[edi], dword [esi]
pop edx
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x40018667
lea esi, [ebx + 0x200]
xor eax, eax
mov edi, esi
lea ecx, [esp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.40020080
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push 8
call fcn.40020140
mov edx, esi
lea ecx, [esp + 0x48]
call fcn.40020270
push 0x5c
pop ecx
lea eax, [esp + 0x48]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x400186a9
and dword [esp + 0x2c], ecx
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
sub esp, 0xc
lea edx, [edi + 0x100]
lea ecx, [esp + 0x1a4]
call fcn.4001c5fa
push ecx
push esi
push ebx
push 5
pop eax
push eax
lea eax, [edi + 0x100]
mov ecx, 0x4002507c
push eax
push 0x3c
call fcn.4001c66d
test eax, eax
je 0x40018a39
push 0
mov edx, esi
mov ecx, ebx
call fcn.4001ab90
test eax, eax
jne 0x400189b4
mov edx, dword [esi]
lea eax, [edi + 0x300]
push ecx
push eax
push 0x40025acc
push dword [0x40025050]
lea eax, [esp + 0x11c]
mov ecx, ebx
push eax
call fcn.400181cc
test eax, eax
je 0x400189b4
mov edx, dword [0x40025050]
lea eax, [esp + 0x34]
push ecx
push 0
push eax
push ecx
push edi
push ecx
lea ecx, [edi + 0x100]
lea eax, [ecx + 0x100]
push eax
push edx
lea eax, [esp + 0x12c]
push eax
call 0x40045edc
xor ecx, ecx
mov edx, eax
inc ecx
push ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.4001961e
test eax, eax
jne 0x400189b4
mov ecx, dword [esp + 0x14]
mov eax, dword [0x40025050]
add ecx, 0x200
mov edi, dword [esp + 0x20]
mov dword [esp + 0x28], eax
cmp ecx, ebx
je 0x4001882e
cmp dword [esp + 0x30], ebx
je 0x4001882e
mov edx, eax
shl edx, 2
mov dword [esp + 0x10], edx
test eax, eax
jne 0x400187c1
push edx
push eax
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x4001882e
mov edx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x34]
push eax
push ebx
call fcn.4001a43c
mov ecx, dword [esp + 0x10]
mov dword [ecx + ebx], eax
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x28], eax
je 0x4001882e
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [esp + 0x28]
add eax, 0x200
sub ecx, eax
mov dword [esp + 0x10], ecx
lea esi, [eax + 4]
mov edx, dword [esi]
lea eax, [ecx + esi]
push ecx
mov ecx, dword [esp + 0x34]
push edi
push eax
call fcn.4001a274
mov edx, dword [esp + 0x18]
lea esi, [esi + 4]
lea ecx, [edi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
cmp edx, edi
jne 0x400187fb
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push ecx
mov edx, edi
lea ecx, [ebx + 0x200]
call fcn.400180ce
test eax, eax
je 0x400189b4
mov edx, dword [0x40025050]
push ecx
push 0
push ebx
push edx
push edi
add edx, edx
mov ecx, ebx
call fcn.4001938b
mov edx, dword [0x40025050]
lea eax, [esp + 0x10c]
push ecx
push edi
push 0
push 0x40025acc
push edx
push eax
add edx, edx
mov ecx, ebx
call fcn.4001bfad
mov eax, dword [0x40025050]
lea ecx, [edi + 0x100]
lea edx, [ecx + 0x100]
mov dword [esp + 0x18], eax
cmp edx, ebx
je 0x40018925
cmp edi, ebx
je 0x40018925
mov ecx, eax
shl ecx, 2
mov dword [esp + 0x10], ecx
push ecx
test eax, eax
jne 0x400188b9
push eax
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x40018925
mov edx, dword [edx]
mov ecx, edi
push eax
push ebx
call fcn.4001a43c
mov ecx, dword [esp + 0x10]
mov dword [ecx + ebx], eax
xor eax, eax
inc eax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x18], eax
je 0x40018925
mov esi, dword [esp + 0x18]
lea edx, [edi + 0x200]
mov eax, ebx
lea ecx, [edx + 4]
sub eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [ecx]
add eax, ecx
push ecx
push esi
push eax
mov ecx, edi
call fcn.4001a274
mov edx, dword [esp + 0x28]
lea ecx, [esi + edx]
inc edx
mov dword [ebx + ecx*4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
add ecx, 4
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
cmp edx, esi
jne 0x400188f1
mov esi, dword [esp + 0x1c]
mov edx, dword [0x40025050]
lea eax, [esp + 0x10c]
push ecx
push dword [esp + 0x28]
mov ecx, ebx
push 0
push 0x40025acc
push edx
push eax
add edx, edx
call fcn.4001bfad
mov edx, dword [0x40025050]
mov eax, edx
test eax, eax
je 0x4001899e
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
add ecx, 0x100
lea ecx, [ecx + eax*4]
add ecx, 0xfc
cmp dword [ecx], 0
jne 0x40018979
sub ecx, 4
sub eax, 1
jne 0x4001896c
test eax, eax
je 0x4001899e
mov eax, edx
test eax, eax
je 0x4001899e
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + eax*4]
add ecx, 0xfffffffc
cmp dword [ecx], 0
jne 0x4001899a
sub ecx, 4
sub eax, 1
jne 0x4001898d
test eax, eax
jne 0x400189ba
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, 0x3e8
jb 0x400186be
jmp 0x400189ba
mov edx, dword [0x40025050]
mov edi, dword [esp + 0x14]
mov eax, edx
shl eax, 2
push eax
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [0x40025050]
lea esi, [edi + 0x100]
add esp, 0xc
shl eax, 2
push eax
push 0
push esi
call sub.msvcrt.dll_memset
mov eax, dword [0x40025a40]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x40025050]
add ecx, ecx
add eax, eax
cmp eax, ecx
ja 0x400189ff
mov eax, ecx
shl eax, 2
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov ebx, dword [esp + 0x1c]
add esi, 0x100
mov edi, eax
push 5
pop edx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
lea edi, [eax + 0x14]
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x44]
push 0x14
pop edx
jmp 0x40018a4c
mov ebx, dword [esp + 0x1c]
mov esi, 0x800480d5
jmp 0x4001860e
mov esi, 0x80070057
test ebx, ebx
je 0x40018a84
mov eax, dword [ebx]
mov ecx, edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40018a5a
mov eax, dword [ebx + 4]
mov ecx, edx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40018a68
mov eax, dword [ebx + 8]
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x40018a74
mov ecx, ebx
call fcn.40015bdd
push 0x14
pop edx
mov ecx, edx
lea eax, [esp + 0x198]
xor ebx, ebx
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x40018a92
lea eax, [esp + 0x10c]
mov byte [eax], bl
inc eax
sub edx, 1
jne 0x40018aa1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40018ac7
mov ecx, eax
mov edx, 0x550
mov byte [ecx], bl
inc ecx
sub edx, 1
jne 0x40018ab8
mov ecx, eax
call fcn.40015bdd
mov ecx, dword [esp + 0x1ac]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.40020a80
mov esp, ebp
pop ebp
ret