Function at 0x402280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423733
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x431064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
cmp eax, 2
jge 0x4022fc
mov edx, 0x42db8c
mov ecx, 0x432110
call fcn.00405330
mov edx, dword [esi]
mov ecx, eax
call fcn.00405330
mov edx, 0x42db68
mov ecx, eax
call fcn.00405330
push eax
call fcn.004052f0
add esp, 4
jmp 0x402c89
mov edi, dword [esi + 4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 4], 0
cmp eax, 3
jne 0x40234a
mov edx, dword [esi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402332
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00404ee0
jmp 0x4025f8
mov ecx, edi
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402361
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00405820
mov byte [ebp - 4], 1
lea edx, [ebp - 0x5c]
mov edi, dword [ebp - 0x48]
cmp edi, 0x10
mov esi, dword [ebp - 0x4c]
cmovae edx, dword [ebp - 0x5c]
setae byte [ebp - 0x119]
mov dword [ebp - 0x114], esi
test esi, esi
je 0x4023be
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2e
je 0x4023ba
nop dword [eax + eax]
cmp ecx, edx
je 0x4023be
dec ecx
cmp byte [ecx], 0x2e
jne 0x4023b0
sub ecx, edx
jmp 0x4023c1
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x402467
cmp esi, ecx
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x128], 0
cmovb ecx, esi
xorps xmm0, xmm0
cmp byte [ebp - 0x119], 0
push ecx
cmovne eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x13c]
push eax
movups xmmword [ebp - 0x13c], xmm0
call fcn.00405820
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x124], 2
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404050
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x40245b
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402451
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cb4
push ecx
push edx
call fcn.0040b5f3
add esp, 8
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x114], esi
mov eax, 0x7fffffff
sub eax, esi
cmp eax, 3
jb 0x402caa
cmp edi, 0x10
lea ecx, [esi + 3]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x118], ecx
cmovae edx, dword [ebp - 0x5c]
lea edi, [ebp - 0x13c]
mov esi, 0xf
mov dword [ebp - 0x110], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x13c], xmm0
cmp ecx, esi
jbe 0x402535
mov esi, ecx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4024ef
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.0040b5c3
add esp, 4
test eax, eax
je 0x402cb4
mov ecx, dword [ebp - 0x118]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x110]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40252f
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x402510
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x402caf
jmp 0x4024c7
test eax, eax
je 0x40252d
push eax
call fcn.0040b5c3
mov ecx, dword [ebp - 0x118]
add esp, 4
mov edx, dword [ebp - 0x110]
mov edi, eax
jmp 0x40252f
xor edi, edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x128], esi
mov esi, dword [ebp - 0x114]
push esi
push edx
push edi
mov dword [ebp - 0x12c], ecx
call fcn.0040c9b0
mov ax, word [0x42db94]
lea ecx, [ebp - 0x44]
or dword [ebp - 0x124], 1
add esp, 0xc
mov word [edi + esi], ax
mov al, byte [0x42db96]
mov byte [edi + esi + 2], al
lea eax, [ebp - 0x13c]
push eax
mov byte [edi + esi + 3], 0
call fcn.00404050
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x4025ba
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cb4
push ecx
push edx
call fcn.0040b5f3
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x4025f2
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cb4
push ecx
push edx
call fcn.0040b5f3
add esp, 8
mov edi, dword [ebp - 0x120]
mov byte [ebp - 4], 2
mov ecx, edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x13c], xmm0
mov dword [ebp - 0x12c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x128], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402630
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x13c]
call fcn.00405820
lea edx, [ebp - 0x13c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00401f60
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x402696
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40268c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cb9
push ecx
push edx
call fcn.0040b5f3
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0xf
mov byte [ebp - 0x13c], 0
cmp eax, dword [ebp - 0x1c]
jne 0x4026d6
mov edx, 0x42db98
mov ecx, 0x432110
call fcn.00405330
push eax
call fcn.004052f0
add esp, 4
jmp 0x40293b
push 0x1f4
lea eax, [ebp - 0x33c]
push 0
push eax
call fcn.0040cf50
push 0
call fcn.00410c26
mov esi, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x348], eax
add esp, 0x10
xor eax, eax
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x344], 0x75bcd15
mov dword [ebp - 0x340], 1
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
add esi, 0x200
je 0x4027b0
cmp esi, 0x7fffffff
ja 0x402cbe
cmp esi, 0x1000
jb 0x40277e
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x402cc3
push eax
call fcn.0040b5c3
add esp, 4
test eax, eax
je 0x402cc8
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x402789
push esi
call fcn.0040b5c3
add esp, 4
mov edi, eax
push esi
lea eax, [edi + esi]
mov dword [ebp - 0x110], edi
push 0
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x24], eax
call fcn.0040cf50
lea eax, [edi + esi]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 6
lea esi, [ebp - 0x348]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x110]
sub ecx, eax
push ecx
push eax
lea eax, [edi + 0x200]
push eax
call fcn.0040c9b0
mov eax, dword [ebp - 0x114]
sub eax, edi
push eax
mov dword [ebp - 0x114], eax
call fcn.00407050
push eax
mov dword [ebp - 0x110], eax
call fcn.0040b601
add esp, 0x14
mov esi, eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], esi
push eax
push edi
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.00406f80
add esp, 0x10
test eax, eax
je 0x402832
push esi
call fcn.0040b5be
add esp, 4
jmp 0x4028f6
push 0
call fcn.00410c26
mov esi, eax
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x114]
xor edx, 0xffffffff
add eax, 0xff878ad4
mov dword [ebp - 0x140], edx
xor eax, 0xfffea4c8
add esp, 4
mov dword [ebp - 0x114], eax
xor esi, 0xfffea4c8
mov eax, dword [ebp - 0x110]
xor ecx, ecx
test eax, eax
je 0x40289c
mov edx, dword [ebp - 0x118]
nop dword [eax + eax]
lea eax, [ecx + edx]
mov edx, dword [ebp - 0x120]
xor byte [eax], dl
inc ecx
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x118]
cmp ecx, eax
jb 0x402880
add eax, 0xc
push eax
call fcn.0040b601
add esp, 4
mov dword [ebp - 0x140], eax
mov dword [eax], esi
mov ecx, dword [ebp - 0x110]
mov esi, dword [ebp - 0x118]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x114]
mov dword [eax + 8], ecx
add eax, 0xc
push dword [ebp - 0x110]
push esi
push eax
call fcn.0040c9b0
push esi
call fcn.0040b5be
mov eax, dword [ebp - 0x110]
add esp, 0x10
add eax, 0xc
mov dword [ebp - 0x118], eax
jne 0x4029c1
mov edx, 0x42dba8
mov ecx, 0x432110
call fcn.00405330
push eax
call fcn.004052f0
mov ecx, dword [ebp - 0x24]
add esp, 4
sub ecx, edi
mov eax, edi
cmp ecx, 0x1000
jb 0x402931
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc8
push ecx
push edi
call fcn.0040b5f3
add esp, 8
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x402984
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x402965
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc8
push edx
push ecx
call fcn.0040b5f3
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x402c89
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc8
push ecx
push edx
call fcn.0040b5f3
add esp, 8
jmp 0x402c89
push 0xb0
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0040cf50
add esp, 0xc
mov dword [ebp - 0x10c], 0x42dbfc
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov dword [ebp - 0x9c], 0
cmovae esi, dword [ebp - 0x44]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa4]
mov eax, dword [ebp - 0x124]
or eax, 4
mov dword [ebp - 0xa4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0xa8], 0x60
call fcn.00405090
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0x108]
call fcn.00404b10
push ecx
push 0x22
push esi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xa
call fcn.00404990
test eax, eax
jne 0x402abf
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x10c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401e20
mov ecx, dword [ebp - 0x10c]
mov ecx, dword [ecx + 4]
mov dword [ebp + ecx - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0x110], ecx
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov esi, dword [ebp - 0x140]
cdq
push edx
push eax
push esi
mov byte [ebp - 4], 0xb
call fcn.00403ae0
push esi
call fcn.0040b5be
mov eax, dword [ebp - 0x10c]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0x108]
call fcn.00403990
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x110], eax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0xa4], vtable.std::ios_base.0
call fcn.004068b5
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x24]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x402bab
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc8
push ecx
push edi
call fcn.0040b5f3
mov byte [ebp - 4], 2
add esp, 8
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x402bed
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x402be3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402cc8
push edx
push ecx
call fcn.0040b5f3
add esp, 8
mov edx, 0x42dbb4
mov dword [ebp - 4], 0
mov ecx, 0x432028
call fcn.00405330
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x44]
mov ecx, eax
call fcn.00405f10
push eax
call fcn.004052f0
mov ecx, dword [ebp - 0x30]
add esp, 8
cmp ecx, 0x10
jb 0x402c55
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ccd
push ecx
push edx
call fcn.0040b5f3
add esp, 8
xor eax, eax
jmp 0x402c8e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b5b0
mov esp, ebp
pop ebp
ret
call fcn.004012f0
call fcn.00401250
call fcn.004116f1
call fcn.004116f1
call fcn.00405db0
call fcn.00401250
call fcn.004116f1
call fcn.004116f1
int3