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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov ecx, edx
shr ecx, 4
mov eax, dword [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 0x28], ecx
add eax, ecx
mov dword [esp + 0xc], eax
mov esi, dword [ebx + 0x54]
mov ecx, esi
adc ecx, 0
cmp edx, 0x10
setae al
mov dword [esp + 0x24], ecx
test ecx, ecx
sete cl
and cl, al
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov edi, dword [ebp + 0xc]
cmp cl, 1
jne 0x644ab5
cmp dword [ebx + 0x10], 0
je 0x644ab5
mov ecx, dword [esp + 0xc]
bsr edx, ecx
xor eax, eax
cmp ecx, 2
cmovb edx, eax
mov ecx, ebx
call fcn.006444d0
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x644bcb
mov eax, dword [ebx + 0x50]
inc eax
lea ecx, [ebx + 0x78]
lea edx, [ebx + 0x88]
push edx
push dword [ebx + 0x40]
push ecx
push eax
push dword [ebx + 0xc]
push dword [esp + 0x3c]
push dword [ebp + 0x10]
push edi
call dword [ebx + 0x10]
add esp, 0x20
jmp 0x644ad1
mov ecx, edx
test cl, 1
mov dword [esp + 4], eax
jne 0x6449e0
mov ecx, ebx
xor edx, edx
call fcn.006444d0
test eax, eax
jne 0x644a12
jmp 0x644bd3
xor edx, edx
mov ecx, eax
mov eax, esi
nop word cs:[eax + eax]
mov ebx, eax
shld ebx, ecx, 0x1f
shr eax, 1
inc edx
test cl, 2
mov ecx, ebx
je 0x6449f0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.006444d0
test eax, eax
je 0x644bd3
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, dword [ebx + 0x7c]
mov dword [ebx + 0x7c], edx
movd xmm1, edx
xor ecx, dword [ebx + 0x78]
mov dword [ebx + 0x78], ecx
movd xmm0, ecx
mov ecx, dword [eax + 0xc]
xor ecx, dword [ebx + 0x84]
mov eax, dword [eax + 8]
xor eax, dword [ebx + 0x80]
mov dword [ebx + 0x84], ecx
movd xmm2, ecx
mov dword [ebx + 0x80], eax
movd xmm3, eax
movups xmm4, xmmword [edi]
movaps xmmword [esp + 0x10], xmm4
punpckldq xmm0, xmm1
add edi, 0x10
punpckldq xmm3, xmm2
punpcklqdq xmm0, xmm3
pxor xmm0, xmmword [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm0
push dword [ebx + 0xc]
lea eax, [esp + 0x14]
push eax
push eax
call dword [ebx + 4]
add esp, 0xc
movups xmm0, xmmword [ebx + 0x78]
xorps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
movups xmm1, xmmword [ebx + 0x88]
xorps xmm1, xmm0
movups xmmword [ebx + 0x88], xmm1
movaps xmm0, xmmword [esp + 0x10]
mov eax, dword [esp + 8]
movups xmmword [eax], xmm0
add eax, 0x10
mov dword [esp + 8], eax
mov edx, dword [esp + 4]
mov eax, edx
add eax, 1
adc esi, 0
cmp dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
sbb ecx, esi
jae 0x6449c0
mov esi, dword [ebp + 0x14]
mov ecx, esi
and ecx, 0xf
je 0x644bb8
lea eax, [ebx + 0x78]
movups xmm0, xmmword [ebx + 0x78]
movups xmm1, xmmword [ebx + 0x20]
xorps xmm1, xmm0
movups xmmword [ebx + 0x78], xmm1
lea edx, [esp + 0x10]
push dword [ebx + 8]
push edx
push eax
mov dword [esp + 0x10], ecx
call dword [ebx]
add esp, 0xc
and esi, 3
xor eax, eax
cmp dword [esp + 4], 4
mov ebx, dword [esp + 8]
jb 0x644b59
mov ecx, dword [esp + 4]
sub ecx, esi
xor eax, eax
nop dword [eax + eax]
movzx edx, byte [esp + eax + 0x10]
xor dl, byte [edi + eax]
mov byte [ebx + eax], dl
movzx edx, byte [esp + eax + 0x11]
xor dl, byte [edi + eax + 1]
mov byte [ebx + eax + 1], dl
movzx edx, byte [esp + eax + 0x12]
xor dl, byte [edi + eax + 2]
mov byte [ebx + eax + 2], dl
movzx edx, byte [esp + eax + 0x13]
xor dl, byte [edi + eax + 3]
mov byte [ebx + eax + 3], dl
add eax, 4
cmp ecx, eax
jne 0x644b20
test esi, esi
je 0x644b7f
mov ecx, dword [esp + 8]
add ecx, eax
lea edx, [esp + eax]
add edx, 0x10
add edi, eax
xor eax, eax
nop dword [eax]
movzx ebx, byte [edx + eax]
xor bl, byte [edi + eax]
mov byte [ecx + eax], bl
inc eax
cmp esi, eax
jne 0x644b70
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov esi, dword [esp + 4]
push esi
push dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.007de188
add esp, 0xc
mov byte [esp + esi + 0x10], pe_nt_image_headers32
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebx + 0x88]
xorps xmm0, xmmword [esp + 0x10]
movups xmmword [ebx + 0x88], xmm0
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x54], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x644bcb