Function at 0x4081f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x4720bc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x34]
xor ecx, ecx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0xcdc8cfd2
mov dword [esp + 0x28], 0xeeef85cd
mov word [esp + 0x2c], 0x100
lea eax, [ecx - 0x46]
xor byte [esp + ecx + 0x24], al
inc ecx
cmp ecx, 8
jb 0x408233
lea ebp, [esp + 0x24]
mov byte [esp + 0x2d], 0
lea ecx, [ebp + 1]
nop dword [eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x408250
sub ebp, ecx
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408260
sub ecx, edx
je 0x40827b
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x408270
sub edx, ecx
jmp 0x40827d
xor edx, edx
mov ecx, esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408282
sub ecx, esi
je 0x4082ab
lea ecx, [esp + 0x10]
mov word [esp + 0x10], 0x2e
mov byte [esp + 0x12], al
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4082a0
sub ecx, esi
jmp 0x4082ad
xor ecx, ecx
lea esi, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4082b0
sub edi, esi
test ebx, ebx
je 0x4082f2
lea esi, [esp + 0x10]
mov byte [esp + 0x12], al
lea eax, [esi + 1]
mov word [esp + 0x10], 0x2f
mov dword [esp + 0x14], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x4082d3
sub esi, dword [esp + 0x14]
lea eax, [ebx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4082e5
sub ebx, dword [esp + 0x14]
jmp 0x4082f6
xor esi, esi
xor ebx, ebx
lea eax, [ebx + esi]
inc ebp
add eax, edi
add eax, ecx
add eax, edx
add eax, ebp
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4084ab
mov dword [esp + 0x24], 0xcdc8cfd2
xor ecx, ecx
mov dword [esp + 0x28], 0xeeef85cd
mov word [esp + 0x2c], 0x100
lea eax, [ecx - 0x46]
xor byte [esp + ecx + 0x24], al
inc ecx
cmp ecx, 8
jb 0x408333
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d], 0
mov edx, ebp
mov eax, ecx
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x408350
mov edx, dword [esp + 0x18]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408366
sub ecx, esi
je 0x4083c9
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x408373
sub edx, esi
lea edi, [ebp - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408380
mov ecx, edx
mov word [esp + 0x10], 0x2e
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [esp + 0x12], al
and ecx, 3
lea edx, [esp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4083a7
sub edx, esi
lea edi, [ebp - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4083b3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x20]
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4083d0
sub edx, esi
lea edi, [ebp - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4083e0
mov ecx, edx
mov ebx, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408400
sub ecx, edx
je 0x40846a
lea edx, [esp + 0x10]
mov word [esp + 0x10], 0x2f
mov byte [esp + 0x12], al
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x408420
sub edx, esi
lea edi, [ebp - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408430
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x408448
sub ebx, esi
lea edi, [ebp - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408454
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x4723c8], eax
mov edx, ebp
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x408480
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00459a78
add esp, 0x24
ret
push str.Memory_allocation_failed
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00401ea0
add esp, 8
mov ecx, eax
push 0x4022b0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov byte [0x47249d], 1
call fcn.00459a78
add esp, 0x24
ret