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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x88
mov eax, dword [esp + 0x9c]
lea edx, [eax + eax]
add edx, edx
sub edx, eax
lea eax, [eax + edx*4]
mov edx, dword [eax*8 + 0x78ecf0]
mov dword [esp + 0x68], edx
mov edx, dword [eax*8 + 0x78ecf4]
mov dword [esp + 0x7c], edx
mov edx, dword [eax*8 + 0x78ece8]
mov dword [esp + 4], edx
mov edx, dword [eax*8 + 0x78ecec]
mov dword [esp + 0x60], edx
mov ebp, dword [eax*8 + 0x78ecf8]
mov edx, dword [eax*8 + 0x78ecfc]
mov dword [esp + 0x80], edx
mov ebx, dword [eax*8 + 0x78ed04]
mov edx, dword [eax*8 + 0x78ed08]
mov dword [esp + 0x58], edx
mov ecx, dword [eax*8 + 0x78ed10]
mov esi, dword [eax*8 + 0x78ed14]
mov edx, dword [eax*8 + 0x78ed18]
mov dword [esp + 0x64], edx
mov eax, dword [eax*8 + 0x78ed1c]
mov dword [esp + 0x14], eax
mov eax, 0x51eb851f
imul ebp
sar edx, 5
sar ebp, 0x1f
sub edx, ebp
mov dword [esp + 0x84], edx
mov eax, 0x51eb851f
mov edx, dword [esp + 0x80]
imul edx
sar edx, 5
mov eax, dword [esp + 0x80]
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x5c], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea edi, [edx + eax*8]
add edi, edi
add edi, edi
neg edi
add edi, dword [esp + 0x80]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [esp], edx
mov dword [esp + 0x18], edx
mov eax, 0x51eb851f
imul ecx
mov ebp, edx
sar ebp, 4
sar ecx, 0x1f
sub ebp, ecx
sub ebx, dword [esp + 0x80]
shl edi, 8
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x80], edx
cmp esi, ebx
jge 0x41df2a
mov eax, 0
mov dword [esp + 0x6c], eax
jl 0x41df35
xor eax, eax
mov dword [esp + 0x80], eax
lea esi, [esi + esi - 0x64]
test esi, esi
jne 0x41df42
mov esi, 0x64
mov ecx, dword [esp + 0x68]
lea edi, [ecx + ecx]
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x7c]
lea ecx, [ecx + ecx]
mov dword [esp + 0x10], ecx
lea ecx, [ebp + ebp]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0046009c
pop ecx
mov edi, eax
mov ecx, 0x10001
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x58]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 4]
cmp ecx, eax
jge 0x41e2a7
mov ecx, dword [esp + 0x68]
lea eax, [ecx + ecx]
add eax, eax
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x64]
lea eax, [ecx + eax]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
lea eax, [eax + eax]
add eax, eax
add eax, ecx
mov dword [esp + 0x78], eax
mov eax, esi
cdq
mov ecx, dword [esp + 0x84]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x84], ecx
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ebx
mov esi, dword [esp]
mov ebp, dword [esp + 4]
jmp 0x41dff3
mov esi, dword [esp + 0x18]
add esi, esi
add esi, esi
imul esi, ebp
mov eax, dword [esp + 0x64]
lea ecx, [eax + esi]
mov edx, dword [esp + 0x74]
push edx
push ecx
call dword [0x5b2480]
add esp, 8
mov eax, dword [esp + 0x78]
lea ecx, [esi + eax]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x7c]
add edx, edx
add edx, edx
push edx
push ecx
call dword [0x5b2480]
add esp, 8
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
cmp eax, edx
jge 0x41e296
lea ecx, [ebp + ebp]
shl ecx, 8
add ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x48]
imul ecx
mov ebx, dword [esp + 0x54]
push ebx
mov edi, dword [esp + 0x54]
push edi
push edx
push eax
call fcn.004608f0
mov edi, dword [esp + 0x6c]
add eax, edi
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x5c]
imul ebx, edi
mov dword [esp + 0x58], ebx
mov ecx, eax
shr ecx, 8
imul ecx, edi
add ecx, ebx
add ecx, dword [esp + 0x84]
mov dword [esp + 0x3c], ecx
movzx eax, al
mov edx, eax
shl edx, 0x10
add edx, eax
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x34]
add ebx, ebx
add ebx, ebx
add ebx, dword [esp + 0x44]
mov dword [esp + 0x20], ebx
lea edx, [ebp + ebp + 1]
shl edx, 8
add edx, dword [esp + 0x80]
mov eax, dword [esp + 0x48]
imul edx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.004608f0
mov edx, dword [esp + 0x6c]
add eax, edx
mov ecx, eax
shr ecx, 8
imul edi, ecx
mov edx, dword [esp + 0x58]
add edx, edi
add edx, dword [esp + 0x84]
mov dword [esp + 0x2c], edx
movzx eax, al
mov edi, eax
shl edi, 0x10
add edi, eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x4c]
add ebx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], eax
add esi, dword [esp + 0x70]
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
lea ebx, [0x7a6be0]
mov eax, 0xff00ff
movd mm4, eax
punpckldq mm4, mm4
pxor mm7, mm7
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
movd mm6, eax
punpckldq mm6, mm6
mov eax, dword [ebx + ecx*4]
mov edx, dword [esp + 0x3c]
movd mm5, eax
shr eax, 8
punpcklbw mm5, mm7
punpcklwd mm5, mm5
punpckldq mm5, mm5
shl eax, 2
add edx, eax
movd mm0, dword [esi + edx]
movd mm2, dword [esi + edx + 4]
add edx, dword [esp + 0x28]
movd mm1, dword [esi + edx]
movd mm3, dword [esi + edx + 4]
punpcklbw mm2, mm7
pmullw mm2, mm5
punpcklbw mm3, mm7
pmullw mm3, mm5
pxor mm5, mm4
paddusw mm5, qword [esp + 8]
punpcklbw mm1, mm7
pmullw mm1, mm5
punpcklbw mm0, mm7
pmullw mm0, mm5
paddusw mm1, mm3
psrlw mm1, 8
pmullw mm1, mm6
paddusw mm0, mm2
psrlw mm0, 8
movq mm5, mm4
psubw mm5, mm6
paddusw mm5, qword [esp + 8]
pmullw mm0, mm5
paddusw mm0, mm1
psrlw mm0, 8
packuswb mm0, mm7
movd dword [edi], mm0
add edi, 4
inc ecx
cmp ecx, dword [esp + 0x10]
jne 0x41e13d
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
movd mm6, eax
punpckldq mm6, mm6
mov eax, dword [ebx + ecx*4]
mov edx, dword [esp + 0x2c]
movd mm5, eax
shr eax, 8
punpcklbw mm5, mm7
punpcklwd mm5, mm5
punpckldq mm5, mm5
shl eax, 2
add edx, eax
movd mm0, dword [esi + edx]
movd mm2, dword [esi + edx + 4]
add edx, dword [esp + 0x28]
movd mm1, dword [esi + edx]
movd mm3, dword [esi + edx + 4]
punpcklbw mm2, mm7
pmullw mm2, mm5
punpcklbw mm3, mm7
pmullw mm3, mm5
pxor mm5, mm4
paddusw mm5, qword [esp + 8]
punpcklbw mm1, mm7
pmullw mm1, mm5
punpcklbw mm0, mm7
pmullw mm0, mm5
paddusw mm1, mm3
psrlw mm1, 8
pmullw mm1, mm6
paddusw mm0, mm2
psrlw mm0, 8
movq mm5, mm4
psubw mm5, mm6
paddusw mm5, qword [esp + 8]
pmullw mm0, mm5
paddusw mm0, mm1
psrlw mm0, 8
packuswb mm0, mm7
movd dword [edi], mm0
add edi, 4
inc ecx
cmp ecx, dword [esp + 0x10]
jne 0x41e1da
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edx, esi
add edx, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x18]
movq mm1, qword [esi + eax*8]
movq mm2, qword [edx + eax*8]
pavgb mm1, mm2
pshufw mm5, mm1, 0xe
pavgb mm1, mm5
movd dword [edi + eax*4], mm1
inc eax
cmp eax, ecx
jne 0x41e279
emms
inc ebp
mov eax, dword [esp + 0x60]
cmp ebp, eax
jl 0x41dfef
mov edi, dword [esp + 0x44]
test edi, edi
je 0x41e2b2
push edi
call fcn.004602ff
pop ecx
add esp, 0x88
pop ebx
pop ebp
pop esi
pop edi
ret