Function at 0x356c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov eax, dword [0x10376020]
xor eax, ebp
mov dword [esp + 0x1c8], eax
cmp dword [ebp + 0xc], 0
je 0x356d4f
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.002d79d0
mov ebx, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
xor eax, eax
mov cl, byte [esi + eax]
xor byte [esp + eax + 0x1a0], cl
inc eax
cmp eax, 0x20
jne 0x356c8c
lea eax, [esp + 0x70]
push 0x130
push 0xff
push eax
call fcn.002a95c0
add esp, 0xc
push 1
call fcn.0039f7b0
add esp, 4
test eax, eax
je 0x356d65
mov esi, eax
add eax, 0x120
mov dword [esp + 8], eax
cmp dword [esi + 0x120], 0xfff
mov ecx, dword [ebp + 0xc]
mov edx, ebx
ja 0x356e22
mov eax, 0xc0ffee
xor eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
jne 0x356e22
cmp dword [esi + 0x128], edx
jne 0x356e22
mov ebx, 0x10000
cmp ecx, ebx
cmovb ebx, ecx
lea eax, [esp + 0x1a0]
push 0x20
push eax
push ebx
mov dword [esp + 0x18], edi
push edi
push esi
mov edi, ecx
call fcn.0035fb00
add esp, 0x14
test eax, eax
je 0x356ef6
mov eax, dword [esp + 8]
inc dword [eax]
sub edi, ebx
jne 0x356eaa
lea eax, [esp + 0x70]
cmp esi, eax
je 0x356e97
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.002a5ceb
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x130
call fcn.0038ab10
add esp, 4
test eax, eax
je 0x356eed
mov esi, eax
push 0x102346d0
push eax
push 1
call fcn.0039f850
add esp, 0xc
test eax, eax
je 0x356eed
xor eax, eax
mov dword [esi + 0x124], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
pxor xmm0, xmm0
lea eax, [esp + 0x10]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
push 0x30
push edi
call fcn.0039fe30
add esp, 8
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push edi
push esi
call fcn.0035f920
add esp, 0x10
test eax, eax
je 0x356ef6
lea eax, [esi + 0x120]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov edx, ebx
mov dword [esi + 0x128], ebx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x356ce5
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x40]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov edi, 0x30
push edi
push eax
call fcn.0039fe30
add esp, 8
mov ecx, esi
lea edx, [esp + 0x40]
push edi
call fcn.0035f9e0
add esp, 4
test eax, eax
je 0x356ef6
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], ebx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x356d08
push 0x118
push eax
call fcn.0038ac10
add esp, 8
jmp 0x356d4f
add dword [esp + 0xc], ebx
mov ecx, 0x10000
cmp edi, ecx
mov ebx, 0x10000
cmovb ebx, edi
push 0
lea ecx, [esp + 0x1a4]
push ecx
push ebx
push dword [esp + 0x18]
push esi
call fcn.0035fb00
add esp, 0x14
test eax, eax
je 0x356ef6
add dword [esp + 0xc], ebx
mov eax, dword [esp + 8]
inc dword [eax]
sub edi, ebx
je 0x356d43
jmp 0x356eae
lea esi, [esp + 0x70]
jmp 0x356d94
call fcn.002ba1de
int3