Function at 0x405324
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 0x4052d5
mov ecx, dword [edi]
mov cl, byte [eax + ecx]
mov byte [ebp - 0x49], cl
cmp cl, 0x22
je 0x405730
cmp cl, 0x5c
jne 0x40558c
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 0x405300
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.0x40531d.35
movzx eax, byte [eax + 0x4058e0]
jmp dword [eax*4 + 0x4058b8]
cmp edx, esi
jae 0x405343
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 0x4055c0
mov byte [ebp - 0x74], 0
push 0x22
push dword [ebp - 0x74]
jmp 0x4055b4
cmp edx, esi
jae 0x405370
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 0x4055c0
mov byte [ebp - 0x78], 0
push 0x5c
push dword [ebp - 0x78]
jmp 0x4055b4
cmp edx, esi
jae 0x40539d
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 0x4055c0
mov byte [ebp - 0x7c], 0
push 0x2f
push dword [ebp - 0x7c]
jmp 0x4055b4
cmp edx, esi
jae 0x4053ca
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 0x4055c0
mov byte [ebp - 0x80], 0
push 8
push dword [ebp - 0x80]
jmp 0x4055b4
cmp edx, esi
jae 0x4053f7
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 0x4055c0
mov byte [ebp - 0x84], 0
push 0xc
push dword [ebp - 0x84]
jmp 0x4055b4
cmp edx, esi
jae 0x40542a
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 0x4055c0
mov byte [ebp - 0x88], 0
push 0xa
push dword [ebp - 0x88]
jmp 0x4055b4
cmp edx, esi
jae 0x40545d
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 0x4055c0
mov byte [ebp - 0x8c], 0
push 0xd
push dword [ebp - 0x8c]
jmp 0x4055b4
cmp edx, esi
jae 0x405490
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 0x4055c0
mov byte [ebp - 0x90], 0
push 9
push dword [ebp - 0x90]
jmp 0x4055b4
mov eax, esi
lea ecx, [ebp - 0x2c]
sub eax, edx
cmp eax, 2
jb 0x4054ce
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 0x4054e9
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 0x4054fa
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 0x405514
cmp cl, 0x39
jle 0x405529
cmp cl, 0x61
jl 0x40551e
cmp cl, 0x66
jle 0x405529
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x4055ee
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x18]
jae 0x40554c
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 0x405565
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 0x4054f0
mov ecx, dword [ebp - 0x44]
add dword [ecx], 4
jmp 0x4055c0
cmp edx, esi
jb 0x405355
mov byte [ebp - 0x9c], 0
push 0x5c
push dword [ebp - 0x9c]
jmp 0x4055b4
cmp edx, esi
jae 0x4055aa
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 0x4055bd
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 0x4055d1
mov eax, dword [edi]
mov cl, byte [ecx + eax]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x49], cl
cmp cl, 0x22
je 0x405730
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x4052e4
movaps xmm0, xmmword [0x46f9c0]
xor ecx, ecx
movups xmmword [ebp - 0xe8], xmm0
mov word [ebp - 0xa8], 0x5d
movaps xmm0, xmmword [0x46ebe0]
movups xmmword [ebp - 0xd8], xmm0
movaps xmm0, xmmword [0x46ec70]
movups xmmword [ebp - 0xc8], xmm0
movaps xmm0, xmmword [0x46f9b0]
movups xmmword [ebp - 0xb8], xmm0
mov al, byte [ebp - 0xe8]
xor byte [ebp + ecx - 0xe7], al
inc ecx
cmp ecx, 0x40
jb 0x405631
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 0x4056f6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4058af
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 0x4057eb
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4057b9
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x4057af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405817
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 0x405827
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40581d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40581d
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 0x40585d
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405853
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405853
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 0x4056f6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4056ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop dword [eax]
and al, 0x53
inc eax
add byte [esi + 0x53], bh
inc eax
add byte [ecx + 0x53], dl
inc eax
add byte [ebx - 0x27ffbfad], ch
push ebx
inc eax
add byte [ebx], cl
push esp
inc eax
add byte [esi], bh
push esp
inc eax
add byte [ecx + 0x54], dh
inc eax
add byte [esp + edx*2 + 0x55730040], ah
inc eax
add byte [eax], 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