Function at 0x41398a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48ae36
call fcn.0048a6f8
mov eax, 0x10310
call fcn.00477520
push ebx
push esi
push edi
push 0x31
xor ebx, ebx
pop ecx
inc ebx
mov dword [ebp - 4], ebx
mov esi, 0x493b08
mov edi, 0x4c3e80
push 0x493c38
rep movsd dword es:[edi], dword [esi]
call fcn.0044afe0
pop ecx
cmp eax, 0xffffffff
jne 0x4139ef
call fcn.00413d62
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x78]
call fcn.00464415
mov dword [ebp - 0x78], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0x78]
push eax
call fcn.0046e335
push 0x493d40
call fcn.00449a50
pop ecx
cmp eax, 0xffffffff
jne 0x413a2d
call fcn.00413dc7
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00464415
mov dword [ebp - 0x9c], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0x9c]
jmp 0x4139e9
xor eax, eax
lea edi, [ebp - 0x14]
stosb byte es:[edi], al
lea edi, [ebp - 0x12]
stosb byte es:[edi], al
test byte [0x4c3ad8], bl
jne 0x413a56
or dword [0x4c3ad8], ebx
mov dword [0x4bf7e8], 0xc5959c87
mov byte [0x4bf7ec], 0xf4
xor eax, eax
mov cl, byte [eax + 0x4bf7e8]
xor cl, 0xf4
mov byte [eax + 0x4bf8fc], cl
inc eax
cmp eax, 5
jb 0x413a58
push 0x4bf8fc
call fcn.0044b100
pop ecx
test eax, eax
jns 0x413aa4
call fcn.00413e2c
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
call fcn.00464415
mov dword [ebp - 0x60], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0x60]
jmp 0x4139e9
xor eax, eax
lea edi, [ebp - 0x13]
stosb byte es:[edi], al
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
test byte [0x4c3ad0], bl
jne 0x413ac6
or dword [0x4c3ad0], ebx
mov dword [0x4bf804], 0xf4879195
xor eax, eax
mov cl, byte [eax + 0x4bf804]
xor cl, 0xf4
mov byte [eax + 0x4bf918], cl
inc eax
cmp eax, 4
jb 0x413ac8
push 0x4bf918
call fcn.0044b050
mov ebx, eax
pop ecx
test ebx, ebx
jns 0x413b1f
call fcn.00413e91
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00464415
mov dword [ebp - 0xa8], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0xa8]
jmp 0x4139e9
push 0x10258
lea eax, [ebp - 0x1031c]
push 0
push eax
call fcn.004679d0
mov eax, dword [0x4b9914]
mov dword [ebp - 0x2e], eax
mov al, byte [0x4b98f3]
mov esi, 0x4b9900
lea edi, [ebp - 0x34]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x4b98f4
lea edi, [ebp - 0x31]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x2c], al
mov eax, dword [0x4b9904]
mov esi, 0x4b990c
lea edi, [ebp - 0x2b]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x28], eax
push 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1031c]
push ebx
push eax
call fcn.0044ae70
add esp, 0x1c
push 0x10
test eax, eax
pop ecx
lea eax, [ebp - 0x34]
je 0x413bc2
mov byte [eax], 0
inc eax
dec ecx
jne 0x413b8a
call fcn.00413ef6
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x90]
call fcn.00464415
mov dword [ebp - 0x90], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0x90]
jmp 0x4139e9
mov byte [eax], 0
inc eax
dec ecx
jne 0x413bc2
mov ax, word [0x4b9924]
mov word [ebp - 0x24], ax
mov ax, word [0x4b9910]
mov esi, 0x4b9918
lea edi, [ebp - 0x22]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov word [ebp - 0x1d], ax
mov esi, 0x4b9920
lea edi, [ebp - 0x1b]
push 0xc
lea eax, [ebp - 0x24]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x1031c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0044a890
add esp, 0xc
push 0xc
test eax, eax
pop ecx
lea eax, [ebp - 0x24]
je 0x413c49
mov byte [eax], 0
inc eax
dec ecx
jne 0x413c11
call fcn.00413f4a
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00464415
mov dword [ebp - 0xb4], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0xb4]
jmp 0x4139e9
mov byte [eax], 0
inc eax
dec ecx
jne 0x413c49
push 9
call fcn.00413f9e
push eax
lea eax, [ebp - 0x1031c]
push eax
call fcn.0044a340
add esp, 0xc
test eax, eax
je 0x413c93
call fcn.00413fe8
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00464415
mov dword [ebp - 0x6c], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0x6c]
jmp 0x4139e9
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x413c9f
call fcn.00464088
mov eax, dword [ecx]
lea edx, [ebp - 0x1031c]
push edx
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x1031c]
push eax
mov dword [ebp - 0x18], 0x10
call fcn.0044a620
add esp, 0xc
test eax, eax
je 0x413d01
call fcn.0041403c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x84]
call fcn.00464415
mov dword [ebp - 0x84], vtable.std::runtime_error.0
push 0x4afcc0
lea eax, [ebp - 0x84]
jmp 0x4139e9
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x413c9a
push dword [ebp - 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x413d37
mov eax, dword [ecx]
lea edx, [ebp + 8]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call dword [eax + 0xc]
and dword [ebp + 0x18], 0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x413d53
mov eax, dword [ecx]
lea edx, [ebp + 0x20]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret