Function at 0x45cdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d47d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x3c], 0
mov esi, 4
nop dword [eax]
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
mov bl, byte [edi + 0x30]
cmp ecx, eax
ja 0x45ce3a
add eax, eax
cmovne esi, eax
push esi
push ecx
push dword [edi + 0x38]
call fcn.0043da80
mov dword [edi + 0x40], esi
add esp, 0xc
mov dword [edi + 0x38], eax
mov esi, 4
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
add ecx, eax
inc eax
mov dword [edi + 0x3c], eax
mov byte [ecx], bl
push dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
call eax
mov ebx, eax
add esp, 4
cmp ebx, 0xff
jle 0x45ce6f
mov ecx, dword [edi + 0x44]
push str.Invalid_character
push dword [edi + 0x48]
call ecx
add esp, 8
jmp 0x45ce7c
test ebx, ebx
jne 0x45ce7c
mov dword [edi + 8], 1
xor bl, bl
movzx eax, bl
mov byte [edi + 0x30], bl
inc dword [edi + 0x18]
push eax
call fcn.0046ec70
add esp, 4
test eax, eax
jne 0x45ce10
cmp byte [edi + 0x30], 0x5f
je 0x45ce10
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x3c]
cmp ecx, eax
ja 0x45cec2
add eax, eax
cmovne esi, eax
push esi
push ecx
push dword [edi + 0x38]
call fcn.0043da80
add esp, 0xc
mov dword [edi + 0x38], eax
mov dword [edi + 0x40], esi
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
add ecx, eax
inc eax
mov dword [edi + 0x3c], eax
mov byte [ecx], 0
mov esi, dword [edi + 0x3c]
dec esi
mov ebx, dword [edi + 0x38]
mov eax, esi
or eax, 0x20
mov dword [ebp - 4], 0
shr eax, 5
mov edx, esi
cmp esi, eax
jb 0x45cf14
mov edi, eax
nop
mov ecx, edx
lea ebx, [ebx + 1]
mov eax, edx
shl ecx, 5
shr eax, 2
sub esi, edi
add ecx, eax
movsx ax, byte [ebx - 1]
movzx eax, ax
add ecx, eax
xor edx, ecx
cmp esi, edi
jae 0x45cef0
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 4]
mov ebx, dword [edi + 0x38]
mov eax, dword [esi + 0x24]
dec eax
and eax, edx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x20]
lea esi, [eax + ecx*4]
nop dword [eax]
cmp dword [esi + 8], 0x8000010
jne 0x45cf6a
mov eax, dword [esi + 0xc]
mov ecx, ebx
add eax, 0x1c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x45cf61
test dl, dl
je 0x45cf5d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x45cf61
add eax, 2
add ecx, 2
test dl, dl
jne 0x45cf41
xor eax, eax
jmp 0x45cf66
sbb eax, eax
or eax, 1
test eax, eax
je 0x45cf90
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x45cf30
mov ecx, 0x102
mov eax, dword [edi + 0x38]
mov dword [edi + 0x1c], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0x8010000
mov dword [ebp - 0x14], 0
je 0x45cfa6
mov eax, dword [esi]
mov esi, dword [esi + 4]
jmp 0x45cfaf
mov esi, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
test eax, 0x8000000
je 0x45cfb9
inc dword [esi + 4]
mov dword [ebp - 4], 1
test eax, 0x8000000
je 0x45cfd4
add dword [esi + 4], 0xffffffff
jne 0x45cfd4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, esi
cmp esi, 0x102
je 0x45cf76
cmp esi, 0x136
je 0x45cf76
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret