Function at 0x402ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4224a6
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x431048]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb0
lea eax, [ebp - 0x1c4]
push 0
push eax
call fcn.0040aef0
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.004045c0
sub esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c4]
call fcn.004043f0
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x214], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x210], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403090
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00406520
mov byte [ebp - 4], 1
lea edx, [ebp - 0x224]
cmp dword [ebp - 0x210], 0x10
lea ecx, [ebp - 0x1c4]
push dword [ebp - 0x214]
cmovae edx, dword [ebp - 0x224]
call fcn.004070b0
push eax
call fcn.00405e30
mov byte [ebp - 4], 0
add esp, 8
mov ecx, dword [ebp - 0x210]
cmp ecx, 0x10
jb 0x40311c
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403112
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4033e2
push ecx
push edx
call fcn.00409561
add esp, 8
lea ecx, [ebp - 0x1c0]
call fcn.00404d20
test eax, eax
jne 0x403154
mov eax, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1c4]
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.00402560
mov ch, 0x2c
mov dword [ebp - 0x208], 0
mov al, ch
mov byte [ebp - 0x1fc], ch
xor al, 0x48
mov dword [ebp - 0x204], 0
mov byte [ebp - 0x1d4], al
mov dl, ch
mov al, ch
mov dword [ebp - 0x200], 0
xor al, 0x65
mov dword [ebp - 0x20c], 0x42d924
mov byte [ebp - 0x1d3], al
xor dl, 0x6f
mov al, ch
mov byte [ebp - 0x1d0], dl
xor al, 0x20
mov byte [ebp - 0x1cc], dl
mov byte [ebp - 0x1ce], al
mov ah, ch
xor ah, 0x6c
mov byte [ebp - 0x1c8], 0
mov cl, ch
mov byte [ebp - 0x1d2], ah
mov al, ch
mov byte [ebp - 0x1d1], ah
xor cl, 0x77
mov byte [ebp - 0x1ca], ah
xorps xmm0, xmm0
mov byte [ebp - 0x1cf], cl
xor al, 0x72
mov byte [ebp - 0x1cd], cl
xor ch, 0x64
mov byte [ebp - 0x1cb], al
xor edx, edx
mov byte [ebp - 0x1c9], ch
movups xmmword [ebp - 0x1f8], xmm0
xor esi, esi
movups xmmword [ebp - 0x1e8], xmm0
nop word [eax + eax]
mov eax, esi
add esi, 0x5bd1e995
xor eax, 0xa03eb6d1
imul ecx, eax, 0x286a90b9
xor ecx, 0xaa2a7357
mov eax, ecx
sar eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
sar eax, 0xf
xor eax, ecx
mov dword [ebp + edx*4 - 0x1f8], eax
inc edx
cmp edx, 8
jb 0x403210
push 0xc
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x20c]
call fcn.004029a0
mov dword [ebp - 0x1d8], eax
xor edx, edx
mov byte [ebp - 4], 2
xor esi, esi
mov eax, esi
add esi, 0x5bd1e995
xor eax, 0xa03eb6d1
imul ecx, eax, 0x286a90b9
xor ecx, 0xaa2a7357
mov eax, ecx
sar eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
sar eax, 0xf
xor eax, ecx
mov dword [ebp + edx*4 - 0x1f8], eax
inc edx
cmp edx, 8
jb 0x403273
push dword [ebp - 0x204]
lea eax, [ebp - 0x1f8]
push eax
push dword [ebp - 0x1d8]
lea ecx, [ebp - 0x20c]
call fcn.00402b00
mov esi, eax
test esi, esi
je 0x4032f0
mov dl, byte [ebp - 0x1fc]
xor ecx, ecx
nop dword [eax]
xor byte [ecx + esi], dl
lea eax, [ecx + esi]
inc ecx
cmp ecx, 0xc
jb 0x4032e0
mov byte [esi + 0xc], 0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4032f5
sub ecx, edx
mov edx, 2
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040956f
mov edi, eax
add esp, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403321
sub eax, edx
inc eax
push eax
push esi
push edi
call fcn.0040e09c
mov edx, edi
mov byte [ebp - 4], 0
call fcn.00405e70
push eax
call fcn.00406140
add esp, 0x10
call fcn.00402e30
mov eax, dword [ebp - 0x1c4]
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 - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1c8], eax
lea ecx, [ebp - 0x1c0]
call fcn.00404080
mov eax, dword [ebp - 0x1c4]
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 - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1c8], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00408c0c
add esp, 4
xor eax, eax
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.0040951e
mov esp, ebp
pop ebp
ret
call fcn.0040f626
int3