Function at 0x348ad9f2
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x120
mov eax, dword [0x34893850]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x128]
push ebx
push esi
xor ebx, ebx
cmp dword [esp + 0x134], ebx
push edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x13c]
mov edi, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
lea esi, [esp + 0x24]
mov dword [esp + 0xc], ebx
je 0x348adc76
cmp eax, ebx
je 0x348adc76
movzx eax, word [edi + 0x28]
cmp ax, 0xff
push ebp
je case.0x348adb43.8
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [edi + 0x10]
push eax
call fcn.348ace92
cmp eax, ebx
jl 0x348adb09
mov eax, dword [esp + 0x20]
lea ebp, [eax + 0x18]
movzx eax, byte [eax + 1]
test eax, eax
jbe 0x348ada9c
mov ecx, dword [esp + 0x134]
shr ecx, 0x10
lea edi, [ebp + 2]
cmp cl, byte [edi]
je 0x348ada98
add ebx, 1
add edi, 8
cmp ebx, eax
jb 0x348ada8a
mov edi, dword [esp + 0x1c]
cmp ebx, eax
jae case.0x348adb43.8
mov edx, dword [edi + 0x18]
push 0x101
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.3489d111
test ebx, ebx
mov dword [esp + 0x1c], eax
jbe 0x348adae6
mov edi, ebx
nop
lea eax, [esp + 0x128]
push eax
push ebp
push esi
call fcn.348b84da
add esi, eax
add ebp, 8
sub edi, 1
jne 0x348adac2
lea ecx, [esp + 0x122]
cmp esi, ecx
jae 0x348adb24
mov al, byte [esi]
test al, al
je 0x348adaf0
cmp al, 0xff
jne 0x348adb24
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [edx], 0
mov dword [eax], 1
mov eax, 0x3ec
pop ebp
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.348c86f8
add esp, 0x120
ret 0x10
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + ebx*8 + 0x1c]
mov edi, dword [esp + 0x134]
add eax, 0xffffffff
shr edi, 0x18
cmp eax, 9
ja case.0x348adb43.8
jmp dword [eax*4 + 0x348adc80]
lea eax, [esi + 1]
lea edx, [esp + 0x128]
cmp eax, edx
jae case.0x348adb43.1
xor byte [eax], 0x80
lea eax, [esi + 1]
lea ecx, [esp + 0x128]
cmp eax, ecx
jae case.0x348adb43.8
mov ecx, 1
cmp dword [esp + 0x13c], ecx
jb case.0x348adb43.8
mov dl, byte [eax]
xor dl, byte [esi]
mov eax, dword [esp + 0x18]
xor dl, 0x7f
mov byte [eax], dl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [edx], ecx
mov edx, ecx
mov dword [eax], edx
mov dword [esp + 0x10], ecx
xor eax, eax
jmp 0x348adb09
mov al, byte [esi]
xor al, 0x7f
xor byte [esi + 1], 0x80
jmp 0x348adbcc
mov cl, byte [esi + 1]
mov dl, byte [esi]
mov al, cl
and al, 0x80
neg al
sbb al, al
and al, 1
not dl
add al, 0xff
xor dl, al
and dl, 0x80
xor dl, cl
mov byte [esi + 1], dl
mov ecx, edi
lea edx, [esp + 0x28]
sub ecx, edx
lea ecx, [ecx + esi + 1]
cmp ecx, 0xfa
jae case.0x348adb43.8
cmp dword [esp + 0x13c], edi
jb case.0x348adb43.8
test edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [edx + edi]
mov edx, dword [esp + 0x14]
mov dword [edx], edi
jbe 0x348adc15
lea esp, [esp]
mov dl, byte [esi + 1]
add esi, 1
sub edi, 1
sub ecx, 1
xor dl, al
test edi, edi
mov byte [ecx], dl
ja 0x348adc01
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov dword [eax], edx
xor eax, eax
jmp 0x348adb09
cmp dword [esp + 0x1c], 0xff
jae case.0x348adb43.8
mov ax, word [ebp + 6]
movzx ecx, byte [ebp + 5]
mov edx, dword [esp + 0x14]
shr ax, 0xf
movzx eax, ax
push eax
mov eax, dword [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push esi
push ecx
call fcn.348b829e
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov dword [eax], edx
xor eax, eax
jmp 0x348adb09
mov dword [ecx], ebx
xor eax, eax
jmp 0x348adb0a