Function at 0x10057fa5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
movzx edx, byte [ebx]
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x1c], edx
movzx eax, byte [ebx]
push edx
mov dword [esi + 0x18], eax
lea eax, [esi + 4]
push edi
push eax
mov dword [ebp - 0x54], ecx
mov dword [esi], edi
call fcn.100e1b00
add esp, 0xc
cmp byte [edi], 0xff
jne 0x10058224
mov al, byte [edi + 1]
cmp al, 0x15
je 0x10057ff8
cmp al, 0x25
jne 0x10058224
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebx + 0x14]
je 0x10058012
mov eax, dword [ebp - 0x54]
push ebx
mov eax, dword [eax + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edi, eax
jmp 0x10058014
mov edi, ebx
mov eax, dword [ebp - 0x54]
push 0x20
pop edx
push 0x3d
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xc8bd
mov eax, dword [ebp - 0x50]
xor eax, 0x78
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x50]
inc eax
xor eax, 0x62
mov word [ebp - 0x4a], ax
mov eax, dword [ebp - 0x50]
add eax, 2
xor eax, 0x61
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x50]
add eax, 3
xor eax, 0x73
mov word [ebp - 0x46], ax
mov eax, dword [ebp - 0x50]
add eax, 4
xor eax, 0x65
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x50]
add eax, 5
xor eax, 0x3a
mov word [ebp - 0x42], ax
mov eax, dword [ebp - 0x50]
add eax, 6
xor eax, 0x3a
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x50]
add eax, 7
xor eax, edx
mov word [ebp - 0x3e], ax
mov eax, dword [ebp - 0x50]
add eax, 8
xor eax, 0x30
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x50]
add eax, 9
xor eax, 0x78
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x50]
add eax, 0xa
xor eax, 0x66
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x50]
add eax, 0xb
xor eax, 0x66
mov word [ebp - 0x36], ax
mov eax, dword [ebp - 0x50]
add eax, 0xc
xor eax, 0x32
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x50]
add eax, 0xd
xor eax, 0x35
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 0x50]
add eax, 0xe
xor eax, edx
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x50]
add eax, 0xf
xor eax, 0x64
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x50]
add eax, 0x10
pop ecx
xor eax, ecx
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x50]
add eax, 0x11
xor eax, 0x25
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x50]
add eax, 0x12
xor eax, 0x70
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x50]
add eax, 0x13
xor eax, edx
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x50]
add eax, 0x14
xor eax, ecx
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x50]
add eax, 0x15
xor eax, 0x3e
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x50]
add eax, 0x16
xor eax, edx
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x50]
add eax, 0x17
xor eax, 0x76
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x50]
add eax, 0x18
xor eax, ecx
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x50]
add eax, 0x19
xor eax, 0x25
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x50]
add eax, 0x1a
xor eax, 0x70
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x50]
add eax, 0x1b
xor eax, edx
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x50]
add eax, 0x1c
xor eax, 0x64
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x50]
add eax, 0x1d
xor eax, 0x73
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x50]
add eax, 0x1e
xor eax, 0x74
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x50]
add eax, 0x1f
xor eax, ecx
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x50]
add eax, edx
xor eax, 0x25
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x50]
add eax, 0x21
xor eax, 0x70
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
xor edx, edx
mov ax, word [ebp - 0x4c]
mov ax, word [ebp + edx*2 - 0x4c]
mov ecx, dword [ebp - 0x50]
add ecx, edx
movzx eax, ax
xor ecx, eax
mov word [ebp + edx*2 - 0x4c], cx
inc edx
cmp edx, 0x22
jb 0x100581e1
push dword [edi]
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x4c]
push edi
xor eax, eax
push ebx
push edx
mov word [ebp - 8], ax
mov eax, dword [ecx]
push 2
push ecx
call dword [eax + 0x18]
mov ecx, dword [esi + 0x1c]
add esp, 0x18
mov eax, dword [edi]
mov dword [ecx + esi + 4], eax
add dword [esi + 0x18], 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e04a9
leave
ret 0x10