Function at 0x40ec34
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46858c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
mov eax, dword [0x47400c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
xor edx, edx
mov esi, 0xf
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x2c], dl
mov byte [ebp - 4], 1
inc dword [ecx]
cmp dword [edi + 0x14], 0x10
mov eax, dword [ecx]
mov ecx, edi
jb 0x40ebe5
mov ecx, dword [edi]
mov cl, byte [eax + ecx]
mov byte [ebp - 0x49], cl
cmp cl, 0x22
je 0x40f040
cmp cl, 0x5c
jne 0x40ee9c
mov ecx, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x50], eax
mov dword [ecx], eax
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x40ec10
mov eax, dword [edi]
mov ecx, dword [ebp - 0x50]
movsx eax, byte [ecx + eax]
mov ecx, dword [ebp - 0x44]
add eax, 0xffffffde
cmp eax, 0x53
ja case.0x40ec2d.35
movzx eax, byte [eax + 0x40f1f0]
jmp dword [eax*4 + 0x40f1c8]
cmp edx, esi
jae 0x40ec53
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 0x22
jmp 0x40eed0
mov byte [ebp - 0x74], 0
push 0x22
push dword [ebp - 0x74]
jmp 0x40eec4
cmp edx, esi
jae 0x40ec80
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 0x5c
jmp 0x40eed0
mov byte [ebp - 0x78], 0
push 0x5c
push dword [ebp - 0x78]
jmp 0x40eec4
cmp edx, esi
jae 0x40ecad
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 0x2f
jmp 0x40eed0
mov byte [ebp - 0x7c], 0
push 0x2f
push dword [ebp - 0x7c]
jmp 0x40eec4
cmp edx, esi
jae 0x40ecda
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 8
jmp 0x40eed0
mov byte [ebp - 0x80], 0
push 8
push dword [ebp - 0x80]
jmp 0x40eec4
cmp edx, esi
jae 0x40ed07
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 0xc
jmp 0x40eed0
mov byte [ebp - 0x84], 0
push 0xc
push dword [ebp - 0x84]
jmp 0x40eec4
cmp edx, esi
jae 0x40ed3a
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 0xa
jmp 0x40eed0
mov byte [ebp - 0x88], 0
push 0xa
push dword [ebp - 0x88]
jmp 0x40eec4
cmp edx, esi
jae 0x40ed6d
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 0xd
jmp 0x40eed0
mov byte [ebp - 0x8c], 0
push 0xd
push dword [ebp - 0x8c]
jmp 0x40eec4
cmp edx, esi
jae 0x40eda0
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edx], 9
jmp 0x40eed0
mov byte [ebp - 0x90], 0
push 9
push dword [ebp - 0x90]
jmp 0x40eec4
mov eax, esi
lea ecx, [ebp - 0x2c]
sub eax, edx
cmp eax, 2
jb 0x40edde
cmp esi, 0x10
lea eax, [edx + 2]
mov dword [ebp - 0x1c], eax
cmovae ecx, dword [ebp - 0x2c]
mov ax, word [0x46e068]
mov word [ecx + edx], ax
mov byte [ecx + edx + 2], 0
jmp 0x40edf9
push 2
push 0x46e068
mov byte [ebp - 0x94], 0
push dword [ebp - 0x94]
push 2
call fcn.00403260
mov esi, 1
nop
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x40ee0a
mov ecx, dword [edi]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add eax, ecx
mov cl, byte [eax + esi]
mov byte [ebp - 0x45], cl
mov byte [ebp - 0x49], cl
cmp cl, 0x30
jl 0x40ee24
cmp cl, 0x39
jle 0x40ee39
cmp cl, 0x61
jl 0x40ee2e
cmp cl, 0x66
jle 0x40ee39
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x40eefe
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jae 0x40ee5c
cmp dword [ebp - 0x18], 0x10
lea eax, [edx + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x40ee75
push dword [ebp - 0x49]
mov byte [ebp - 0x98], 0
push dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004033c0
inc esi
cmp esi, 4
jbe 0x40ee00
mov ecx, dword [ebp - 0x44]
add dword [ecx], 4
jmp 0x40eed0
cmp edx, esi
jb 0x40ec65
mov byte [ebp - 0x9c], 0
push 0x5c
push dword [ebp - 0x9c]
jmp 0x40eec4
cmp edx, esi
jae 0x40eeba
lea eax, [edx + 1]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x40eecd
push dword [ebp - 0x49]
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004033c0
mov ecx, dword [ebp - 0x44]
inc dword [ecx]
mov eax, edi
cmp dword [edi + 0x14], 0x10
mov ecx, dword [ecx]
mov dword [ebp - 0x50], ecx
jb 0x40eee1
mov eax, dword [edi]
mov cl, byte [ecx + eax]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x49], cl
cmp cl, 0x22
je 0x40f040
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x40ebf4
movaps xmm0, xmmword [0x46f740]
xor ecx, ecx
movups xmmword [ebp - 0xe8], xmm0
mov word [ebp - 0xa8], 0x4d
movaps xmm0, xmmword [0x46e990]
movups xmmword [ebp - 0xd8], xmm0
movaps xmm0, xmmword [0x46e9e0]
movups xmmword [ebp - 0xc8], xmm0
movaps xmm0, xmmword [0x46f730]
movups xmmword [ebp - 0xb8], xmm0
mov al, byte [ebp - 0xe8]
xor byte [ebp + ecx - 0xe7], al
inc ecx
cmp ecx, 0x40
jb 0x40ef41
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea edx, [ebp - 0xe7]
mov byte [ebp - 0xa7], 0
call fcn.00402d70
mov dl, byte [ebp - 0x45]
mov ecx, eax
call fcn.00402fb0
mov edx, 0x46e064
mov ecx, eax
call fcn.00402d70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
push 3
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0xa0], 2
call fcn.00404a40
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x60]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x68]
mov dword [edi + 8], eax
mov dword [ebp - 0x60], 0
call fcn.004043a0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40f006
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40effc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f1bf
push edx
push ecx
call fcn.00466a5c
add esp, 8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004043a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466a4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0x44]
inc eax
mov dword [ecx], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402a90
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004043a0
push 0x18
call fcn.00466a92
mov esi, eax
mov dword [ebp - 0x38], 3
add esp, 4
mov dword [ebp - 0x40], esi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x100]
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00402a90
mov edi, eax
cmp esi, edi
je 0x40f0fb
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x40f0c9
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x40f0bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f127
mov eax, edx
push ecx
push eax
call fcn.00466a5c
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0xec]
cmp edx, 0x10
jb 0x40f137
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f12d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f12d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00466a5c
add esp, 8
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x40f16d
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f163
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40f163
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00466a5c
add esp, 8
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], 0
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 8], 3
mov dword [ebp - 0x40], 0
cmp edx, 0x10
jb 0x40f006
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40effc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40effc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop dword [eax]
xor al, 0xec
inc eax
add byte [esi + 0x610040ec], cl
in al, dx
inc eax
add byte [ebx - 0x17ffbf14], bh
in al, dx
inc eax
add byte [ebx], bl
in eax, dx
inc eax
add byte [esi - 0x13], cl
inc eax
add byte [ecx - 0x4bffbf13], al
in eax, dx
inc eax
add byte [ebx + 0x40ee], al
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
add dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [edx], eax
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ebx], eax
or dword [ecx], ecx
or dword [ecx + ecx], eax
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
add eax, 101255433
or dword [edi], eax
or ah, cl
int3