Function at 0x418348
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x124
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [esp + 0x150]
push edi
mov edi, dword [esp + 0x144]
push 0x58
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x8c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], 0
call sub.VCRUNTIME140.dll_memset
push 0x50
lea edx, [esp + 0xf0]
push 0
push edx
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [esp + 0x160]
add esp, 0x18
cmp ebx, 0x3a
mov dword [esi], 0
ja case.default.0x41827e
test ebx, ebx
jne 0x4180ee
lea edi, [esp + 0xe0]
mov esi, dword [ebp + 0x2c]
push 0x58
lea eax, [esp + 0x8c]
push 0
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0
call sub.VCRUNTIME140.dll_memset
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x9c]
push edx
push 0x58
mov eax, edx
push eax
push 0x220014
mov dword [esp + 0xac], esi
call fcn.004175d0
movzx eax, ax
add esp, 0x24
test al, al
jne 0x418578
mov cl, byte [ebp]
and cl, 0x10
neg cl
lea ebp, [ebx + 8]
lea edx, [ebx - 8]
sbb ecx, ecx
and ecx, 0x14
shr ebp, 4
add ecx, 0x22000c
add ebp, 1
test dl, 0xf
mov dword [esp + 0x20], ecx
je 0x41816e
cmp ebx, 0x3a
jne 0x418171
sub ebp, 1
cmp ebp, 4
ja case.default.0x41827e
mov eax, dword [esp + 0x13c]
cmp eax, 0x33
jne 0x418190
mov dword [esp + 0x18], 2
jmp 0x4181a1
cmp eax, 1
mov dword [esp + 0x18], 3
je 0x4181a1
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x18]
shl eax, 4
add eax, 8
mov esi, ebp
mov dword [esp + 0x7c], eax
shl esi, 4
push 2
lea eax, [esp + 0x36]
add esi, 8
push eax
mov dword [esp + 0x30], esi
mov byte [esp + 0x34], 8
call fcn.00417350
mov cl, byte [esp + 0x13c]
movzx eax, byte [edi]
mov dl, byte [esp + 0x140]
mov byte [esp + 0x34], cl
movzx ecx, byte [edi + 1]
mov byte [esp + 0x35], dl
movzx edx, byte [edi + 2]
mov byte [esp + 0x36], al
movzx eax, byte [edi + 3]
mov byte [esp + 0x37], cl
push 2
lea ecx, [esp + 0x3e]
push ecx
mov byte [esp + 0x40], dl
mov byte [esp + 0x41], al
call fcn.00417350
cmp ebx, 4
lea eax, [esp + 0x3c]
jbe 0x41823a
lea edx, [ebx - 4]
push edx
add edi, 4
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, esi
sub eax, ebx
sub eax, 0xf
add esp, 0xc
test eax, eax
jle 0x418244
push eax
lea ecx, [esp + ebx + 0x3c]
push ecx
jmp 0x41823f
lea edx, [esi - 0x13]
push edx
push eax
call fcn.00417350
cmp ebx, 4
mov cl, byte [esp + esi + 0x28]
mov byte [esp + 0x84], cl
jbe 0x41825c
sub bl, 4
movzx eax, bl
jmp 0x41825e
xor eax, eax
mov byte [esp + esi + 0x29], al
mov dl, byte [esp + 0x3a]
mov byte [esp + esi + 0x2a], dl
mov al, byte [esp + 0x3b]
add ebp, 0xffffffff
cmp ebp, 3
mov byte [esp + esi + 0x2b], al
ja case.default.0x41827e
jmp dword [ebp*4 + 0x418594]
jmp 0x41828f
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x30]
lea ecx, [esp + 0x64]
push ecx
push edx
call fcn.00416b50
add esp, 8
xor eax, eax
jmp 0x4182b0
movzx ecx, byte [esp + eax + 0x54]
movzx edx, byte [esp + eax + 0x55]
xor byte [esp + eax + 0x64], cl
xor byte [esp + eax + 0x65], dl
movzx ecx, byte [esp + eax + 0x56]
movzx edx, byte [esp + eax + 0x57]
xor byte [esp + eax + 0x66], cl
xor byte [esp + eax + 0x67], dl
add eax, 4
cmp eax, 0x10
jb 0x4182b0
jmp 0x4182e6
jmp 0x4182ec
mov edi, dword [esp + 0x14]
jmp 0x4182f6
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00416b50
add esp, 8
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x44]
movzx ecx, byte [esp + eax + 0x45]
xor byte [esp + eax + 0x54], dl
xor byte [esp + eax + 0x55], cl
movzx edx, byte [esp + eax + 0x46]
movzx ecx, byte [esp + eax + 0x47]
xor byte [esp + eax + 0x56], dl
xor byte [esp + eax + 0x57], cl
add eax, 4
cmp eax, 0x10
jb 0x418310
jmp 0x418346
jmp 0x41834c
mov edi, dword [esp + 0x14]
jmp 0x418356
mov eax, dword [edi + 0x30]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.00416b50
add esp, 8
xor eax, eax
lea esp, [esp]
movzx ecx, byte [esp + eax + 0x34]
movzx edx, byte [esp + eax + 0x35]
xor byte [esp + eax + 0x44], cl
xor byte [esp + eax + 0x45], dl
movzx ecx, byte [esp + eax + 0x36]
movzx edx, byte [esp + eax + 0x37]
xor byte [esp + eax + 0x46], cl
xor byte [esp + eax + 0x47], dl
add eax, 4
cmp eax, 0x10
jb 0x418370
jmp 0x4183a6
jmp 0x4183ac
mov edi, dword [esp + 0x14]
jmp 0x4183b6
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00416b50
add esp, 8
jmp 0x4183d1
lea edx, [esp + 0x2c]
push edx
call fcn.00424030
mov ebp, dword [esp + 0x84]
add esp, 4
test ebp, ebp
lea ecx, [esp + 0x24]
jne 0x418446
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push 0x58
push ecx
push edx
call fcn.004175d0
push 0x58
movzx esi, ax
lea eax, [esp + 0xa4]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x2c]
lea edx, [esp + 0x40]
push edx
push ebp
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb8], ecx
push 0x58
mov ecx, eax
push ecx
push 0x220018
call fcn.004175d0
add esp, 0x3c
mov ax, si
jmp 0x418578
mov esi, dword [esp + 0x7c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x24]
push esi
lea eax, [esp + 0xe8]
push eax
push 0x58
push ecx
push edx
call fcn.004175d0
movzx ebx, ax
add esp, 0x18
test bl, bl
je 0x4184b3
push 0x58
lea eax, [esp + 0x8c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x2c]
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xa0], ecx
push 0x58
mov ecx, eax
push ecx
push 0x220018
call fcn.004175d0
add esp, 0x24
mov ax, bx
jmp 0x418578
cmp dword [esp + 0x10], esi
je 0x4184ce
mov edx, dword [edi + 0x2c]
push edx
call fcn.00417940
add esp, 4
mov ax, 0x1d0d
jmp 0x418578
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0xec]
push eax
call fcn.00417c10
movzx ebx, ax
add esp, 0x10
test bl, bl
jne 0x418540
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x150]
mov dword [ecx], esi
lea edi, [esp + 0xe2]
xor ecx, ecx
mov eax, ebp
sub edi, ebp
test esi, esi
jbe 0x418527
mov dl, byte [edi + eax]
mov byte [eax], dl
add ecx, 1
add eax, 1
sub esi, 1
cmp ecx, 4
jb 0x418510
push esi
lea eax, [esp + 0xec]
push eax
add ebp, 4
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [esp + 0x20]
add esp, 0xc
push 0x58
lea ecx, [esp + 0x8c]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [edi + 0x2c]
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], edx
push 0x58
mov edx, ecx
push edx
jmp 0x41849e
mov ax, 0x1d10
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052bfb9
add esp, 0x124
ret