Function at 0x10004350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x1000f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x144
mov dword [ebp - 0x154], eax
xor esi, esi
lea eax, [ebp - 0x148]
mov dword [ebp - 0x158], ecx
push esi
push eax
mov edi, edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x1000469f
test edi, edi
jle 0x1000469f
lea eax, [edi + 4]
cmp dword [ebx], eax
jge 0x100043c3
lea eax, [edi + 0x14]
pop edi
mov dword [ebx], eax
mov eax, 0x1004
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x150], 2
mov dword [ebp - 0x14c], 2
test eax, eax
je 0x100043e3
movups xmm0, xmmword [eax]
jmp 0x100043e6
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x150]
push eax
movups xmmword [ebp - 0x148], xmm0
call fcn.10002400
add esp, 4
test eax, eax
jne 0x100046a4
cmp dword [ebp - 0x150], 1
mov dword [ebp - 0x118], esi
je 0x10004424
movups xmm0, xmmword [ebp - 0x148]
movups xmmword [ebp - 0x138], xmm0
mov edx, dword [ebp - 0x158]
lea ecx, [ebp - 0x150]
push ebx
push dword [ebp - 0x154]
push edi
call fcn.10001aa0
add esp, 0xc
test eax, eax
jne 0x100046a4
mov eax, dword [ebp - 0x150]
mov edi, dword [ebx]
dec eax
add edi, dword [ebp - 0x154]
cmp eax, 3
ja case.default.0x10004460
jmp dword [eax*4 + 0x100046b8]
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x10004488
xor esi, esi
xor eax, eax
add dword [ebx], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov esi, 0x10
cmp eax, esi
je 0x100044a9
add dword [ebx], esi
mov eax, 0x1005
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x114]
mov dword [edi], eax
mov edx, edi
mov eax, dword [ebp - 0x124]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
call fcn.100034f0
push dword [ebp - 0x14c]
mov ecx, edi
call fcn.10001020
add esp, 4
cmp eax, 0xfffffffd
jne 0x10004506
add dword [ebx], esi
mov eax, 0x1003
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
je case.default.0x10004460
sub esi, eax
xor eax, eax
add dword [ebx], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x10004471
mov esi, 0x10
cmp eax, esi
jne 0x10004491
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x114]
mov dword [edi], eax
mov edx, edi
mov eax, dword [ebp - 0x124]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [edi + 0xc], eax
call fcn.100034f0
mov eax, dword [ebp - 0x138]
xor dword [edi], eax
mov eax, dword [ebp - 0x134]
xor dword [edi + 4], eax
mov eax, dword [ebp - 0x130]
xor dword [edi + 8], eax
mov eax, dword [ebp - 0x12c]
xor dword [edi + 0xc], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x12c], eax
jmp 0x100044d9
mov esi, dword [ebp - 0x118]
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x114]
call fcn.100026c0
xor edx, edx
test esi, esi
je 0x10004605
lea eax, [ebp - 0x138]
sub edi, eax
nop
lea ecx, [ebp - 0x138]
add ecx, edx
inc edx
mov al, byte [ecx + 0x10]
xor al, byte [ecx]
mov byte [edi + ecx], al
cmp edx, esi
jb 0x100045f0
pop edi
xor eax, eax
add dword [ebx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x118]
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x114]
call fcn.100026c0
mov eax, dword [ebp - 0x128]
xor dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x124]
xor dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x120]
xor dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x11c]
xor dword [ebp - 0x12c], eax
lea eax, [ebp - 0x138]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
add dword [ebx], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
add dword [ebx], esi
mov eax, 0x1001
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret
mov eax, 0x1001
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a2a2
mov esp, ebp
pop ebp
ret