Function at 0x3e5130
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x110
mov esi, edx
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
shld ecx, eax, 1
lea edx, [eax + eax]
shl eax, 7
movups xmm0, xmmword [esi + eax - 0x10]
movups xmmword [esp + 0xf0], xmm0
movups xmm0, xmmword [esi + eax - 0x20]
movups xmmword [esp + 0xe0], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x30]
movups xmmword [esp + 0xd0], xmm1
movups xmmword [esp + 0xc0], xmm0
mov dword [esp + 0x8c], edx
mov eax, edx
mov dword [esp + 0x90], ecx
or eax, ecx
je 0x3e570c
movups xmm2, xmmword [esp + 0xc0]
movups xmm1, xmmword [esp + 0xd0]
movups xmm4, xmmword [esp + 0xe0]
xor edx, edx
movups xmm3, xmmword [esp + 0xf0]
xor ecx, ecx
nop dword [eax + eax]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
movups xmm0, xmmword [esi]
xorps xmm0, xmm2
movups xmmword [esp + 0xc0], xmm0
movups xmm0, xmmword [esi + 0x10]
xorps xmm0, xmm1
movups xmmword [esp + 0xd0], xmm0
movups xmm0, xmmword [esi + 0x20]
xorps xmm0, xmm4
movups xmmword [esp + 0xe0], xmm0
mov dword [esp + 0xa0], esi
movups xmm0, xmmword [esi + 0x30]
xorps xmm0, xmm3
movups xmmword [esp + 0xf0], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [esp + 0x7c], xmm0
movups xmm0, xmmword [esp + 0xd0]
movups xmmword [esp + 0x5c], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp + 0x6c], xmm0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb0], eax
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x34], 0xa
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x20], ebp
nop word [eax + eax]
mov ebp, dword [esp]
lea eax, [ecx + ebp]
rol eax, 7
xor eax, ebx
mov dword [esp + 0x100], eax
lea ebx, [eax + ebp]
rol ebx, 9
xor ebx, edx
mov dword [esp + 0xa4], ebx
lea edx, [ebx + eax]
rol edx, 0xd
xor edx, ecx
mov dword [esp + 0xac], edx
lea eax, [edx + ebx]
rol eax, 0x12
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + edx]
mov dword [esp + 0x24], edx
rol ebx, 7
xor ebx, dword [esp + 8]
mov dword [esp + 8], ebx
add edx, ebx
rol edx, 9
xor edx, edi
mov dword [esp + 0xa8], edx
lea esi, [edx + ebx]
rol esi, 0xd
xor esi, ecx
lea ecx, [esi + edx]
rol ecx, 0x12
mov edi, ecx
xor eax, ebp
mov dword [esp], eax
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
lea eax, [ecx + edx]
rol eax, 7
xor eax, dword [esp + 4]
mov dword [esp + 4], eax
add edx, eax
rol edx, 9
xor edx, dword [esp + 0x18]
add eax, edx
rol eax, 0xd
xor eax, ecx
mov dword [esp + 0xc], eax
add eax, edx
rol eax, 0x12
mov ecx, eax
xor edi, dword [esp + 0x24]
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0xb0]
mov edi, dword [esp + 0x14]
lea eax, [edi + ebx]
rol eax, 7
xor eax, dword [esp + 0x1c]
add ebx, eax
rol ebx, 9
xor ebx, dword [esp + 0x20]
lea ebp, [ebx + eax]
rol ebp, 0xd
xor ebp, edi
lea edi, [ebx + ebp]
rol edi, 0x12
mov dword [esp + 0x38], edi
xor ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp]
lea edi, [eax + ecx]
rol edi, 7
xor edi, esi
lea esi, [edi + ecx]
rol esi, 9
xor esi, edx
mov dword [esp + 0x10], edi
lea edx, [esi + edi]
rol edx, 0xd
xor edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
add esi, edx
rol esi, 0x12
mov eax, dword [esp + 0xb0]
xor dword [esp + 0x38], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x100]
lea edx, [ecx + eax]
rol edx, 7
xor edx, dword [esp + 0xc]
lea eax, [edx + ecx]
rol eax, 9
xor eax, ebx
mov dword [esp + 0xc], edx
lea ecx, [eax + edx]
rol ecx, 0xd
xor ecx, dword [esp + 0x100]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x20], eax
add ecx, eax
rol ecx, 0x12
xor esi, dword [esp]
mov dword [esp], esi
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x3c]
lea eax, [esi + edi]
rol eax, 7
xor eax, ebp
lea edx, [eax + esi]
mov ebx, esi
rol edx, 9
xor edx, dword [esp + 0xa4]
mov dword [esp + 0x14], eax
add eax, edx
rol eax, 0xd
xor eax, edi
mov dword [esp + 8], eax
lea ebp, [eax + edx]
rol ebp, 0x12
xor ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x38]
lea ecx, [esi + eax]
rol ecx, 7
xor ecx, dword [esp + 0xac]
lea edi, [ecx + esi]
rol edi, 9
xor edi, dword [esp + 0xa8]
lea eax, [edi + ecx]
rol eax, 0xd
xor eax, dword [esp + 4]
mov dword [esp + 4], eax
add eax, edi
rol eax, 0x12
xor ebp, ebx
mov dword [esp + 0x3c], ebp
xor eax, esi
mov ebx, dword [esp + 0x100]
mov dword [esp + 0xb0], eax
mov ebp, dword [esp + 0x34]
add ebp, 0xfffffffe
mov dword [esp + 0x34], ebp
cmp ebp, 2
ja 0x3e52e0
mov eax, dword [esp]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov esi, dword [esp + 0xc]
mov dword [esp + 0x64], esi
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x88], ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x58], ebp
movd xmm4, ebp
movd xmm1, eax
movd xmm2, dword [esp + 0x10]
movd xmm3, dword [esp]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x68], ebp
movd xmm5, ebp
movd xmm0, esi
movd xmm6, dword [esp + 0x24]
movd xmm7, ebx
punpckldq xmm1, xmm4
movd xmm4, dword [esp + 0x14]
punpckldq xmm3, xmm2
movd xmm2, dword [esp + 0x3c]
punpcklqdq xmm3, xmm1
movdqu xmm1, xmmword [esp + 0xc0]
paddd xmm1, xmm3
movdqa xmm3, xmm1
movdqu xmmword [esp + 0x100], xmm1
movss xmm1, dword [esp + 8]
movups xmmword [esp + 0x24], xmm1
punpckldq xmm0, xmm5
movd xmm1, edx
punpckldq xmm7, xmm6
movd xmm5, dword [esp + 0xb0]
punpcklqdq xmm7, xmm0
movdqu xmm0, xmmword [esp + 0xd0]
paddd xmm7, xmm0
movdqu xmmword [esp + 0x3c], xmm7
movd xmm0, dword [esp + 4]
punpckldq xmm2, xmm4
movd xmm4, edi
movdqu xmm6, xmmword [esp + 0x24]
punpckldq xmm1, xmm6
movd xmm6, ecx
movdqu xmmword [esp + 0xc0], xmm3
movdqu xmmword [esp + 0xd0], xmm7
punpcklqdq xmm1, xmm2
movdqu xmm2, xmmword [esp + 0xe0]
paddd xmm2, xmm1
movdqu xmmword [esp + 0x24], xmm2
mov esi, dword [esp + 0xa0]
add esi, 0x40
punpckldq xmm0, xmm5
movdqu xmm1, xmmword [esp + 0xf0]
movdqu xmmword [esp + 0xe0], xmm2
punpckldq xmm6, xmm4
punpcklqdq xmm6, xmm0
paddd xmm6, xmm1
movdqu xmmword [esp + 0xb0], xmm6
movdqu xmmword [esp + 0xf0], xmm6
push 0x40
lea eax, [esp + 0x50]
push eax
call fcn.00359a90
movups xmm4, xmmword [esp + 0x2c]
movups xmm3, xmmword [esp + 0xb8]
movups xmm2, xmmword [esp + 0x108]
add esp, 8
mov edx, dword [esp + 0x9c]
mov eax, edx
shr eax, 1
test dl, 1
mov ecx, 0
cmovne ecx, dword [esp + 0x124]
add ecx, eax
shl ecx, 6
movups xmm0, xmmword [esp + 0xf0]
mov eax, dword [esp + 0x94]
movups xmmword [eax + ecx + 0x30], xmm0
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [eax + ecx + 0x20], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmm1, xmmword [esp + 0xd0]
movups xmmword [eax + ecx + 0x10], xmm1
movups xmm1, xmmword [esp + 0x3c]
movups xmmword [eax + ecx], xmm0
add edx, 1
mov ecx, dword [esp + 0x98]
adc ecx, 0
cmp edx, dword [esp + 0x8c]
mov eax, ecx
sbb eax, dword [esp + 0x90]
jb 0x3e51d0
lea eax, [esp + 0xc0]
push 0x40
push eax
call fcn.00359a90
add esp, 0x118
pop esi
pop edi
pop ebx
pop ebp
ret