Function at 0x674e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, edx
mov edi, dword [esp + 0x28]
mov eax, dword [edx]
lea eax, [eax*4 + 4]
test edi, edi
je 0x674fc5
mov dword [esp], eax
mov dword [esp + 0xc], esi
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
lea eax, [ebx + edi]
mov dword [esp + 8], eax
push 0x1000
push 0
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
cmp edi, 0x14
jl 0x674fde
add edi, ebx
add edi, 0xfffffff1
mov ecx, dword [ebx]
mov eax, ebx
nop word [eax + eax]
mov edx, dword [ebx + 4]
movzx esi, cl
inc dword [ebp + esi*4]
movzx esi, ch
inc dword [ebp + esi*4 + 0x400]
mov esi, ecx
shr esi, 0xe
and esi, 0x3fc
inc dword [ebp + esi + 0x800]
shr ecx, 0x18
inc dword [ebp + ecx*4 + 0xc00]
mov ecx, dword [ebx + 8]
movzx esi, dl
inc dword [ebp + esi*4]
movzx esi, dh
inc dword [ebp + esi*4 + 0x400]
mov esi, edx
shr esi, 0xe
and esi, 0x3fc
inc dword [ebp + esi + 0x800]
shr edx, 0x18
inc dword [ebp + edx*4 + 0xc00]
mov edx, dword [ebx + 0xc]
movzx esi, cl
inc dword [ebp + esi*4]
movzx esi, ch
inc dword [ebp + esi*4 + 0x400]
mov esi, ecx
shr esi, 0xe
and esi, 0x3fc
inc dword [ebp + esi + 0x800]
shr ecx, 0x18
inc dword [ebp + ecx*4 + 0xc00]
mov ecx, dword [ebx + 0x10]
movzx esi, dl
inc dword [ebp + esi*4]
movzx esi, dh
inc dword [ebp + esi*4 + 0x400]
mov esi, edx
shr esi, 0xe
and esi, 0x3fc
inc dword [ebp + esi + 0x800]
shr edx, 0x18
inc dword [ebp + edx*4 + 0xc00]
lea edx, [ebx + 0x10]
add ebx, 0x14
add eax, 0x10
cmp ebx, edi
mov ebx, edx
jb 0x674ef0
jmp 0x674fe2
push eax
push 0
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esi], 0
xor eax, eax
jmp 0x6751bb
mov eax, ebx
mov edx, ebx
mov ecx, dword [esp + 8]
cmp edx, ecx
jae 0x675046
mov edi, ecx
sub edi, eax
not eax
add eax, ecx
mov esi, edi
mov ecx, edx
and esi, 3
je 0x67500b
mov ecx, edx
nop dword [eax]
movzx ebx, byte [ecx]
inc ecx
inc dword [ebp + ebx*4]
dec esi
jne 0x675000
cmp eax, 3
jb 0x675046
add edx, edi
nop word cs:[eax + eax]
movzx eax, byte [ecx]
inc dword [ebp + eax*4]
movzx eax, byte [ecx + 1]
inc dword [ebp + eax*4]
movzx eax, byte [ecx + 2]
inc dword [ebp + eax*4]
movzx eax, byte [ecx + 3]
inc dword [ebp + eax*4]
add ecx, 4
cmp ecx, edx
jne 0x675020
mov eax, dword [esp + 0x2c]
pxor xmm1, xmm1
xor ecx, ecx
movdqa xmm0, xmmword [0x8d7590]
pxor xmm2, xmm2
nop dword [eax]
movdqu xmm3, xmmword [ebp + ecx*4 + 0x400]
movdqu xmm4, xmmword [ebp + ecx*4 + 0x410]
movdqu xmm5, xmmword [ebp + ecx*4 + 0x800]
paddd xmm5, xmm3
movdqu xmm6, xmmword [ebp + ecx*4 + 0x810]
paddd xmm6, xmm4
movdqu xmm3, xmmword [ebp + ecx*4 + 0xc00]
movdqu xmm7, xmmword [ebp + ecx*4 + 0xc10]
movdqu xmm4, xmmword [ebp + ecx*4]
paddd xmm4, xmm3
paddd xmm4, xmm5
movdqu xmm3, xmmword [ebp + ecx*4 + 0x10]
paddd xmm3, xmm7
paddd xmm3, xmm6
movdqu xmmword [ebp + ecx*4], xmm4
movdqu xmmword [ebp + ecx*4 + 0x10], xmm3
movdqa xmm5, xmm4
pxor xmm5, xmm0
movdqa xmm6, xmm1
pxor xmm6, xmm0
pcmpgtd xmm5, xmm6
pand xmm4, xmm5
pandn xmm5, xmm1
movdqa xmm1, xmm5
por xmm1, xmm4
movdqa xmm4, xmm3
pxor xmm4, xmm0
movdqa xmm5, xmm2
pxor xmm5, xmm0
pcmpgtd xmm4, xmm5
pand xmm3, xmm4
pandn xmm4, xmm2
movdqa xmm2, xmm4
por xmm2, xmm3
add ecx, 8
cmp ecx, 0x100
jne 0x675060
movdqa xmm4, xmm2
pxor xmm4, xmm0
movdqa xmm3, xmm1
pxor xmm3, xmm0
pcmpgtd xmm3, xmm4
pand xmm1, xmm3
pandn xmm3, xmm2
por xmm3, xmm1
pshufd xmm2, xmm3, 0xee
movdqa xmm1, xmm3
pxor xmm1, xmm0
movdqa xmm4, xmm2
pxor xmm4, xmm0
pcmpgtd xmm1, xmm4
pand xmm3, xmm1
pandn xmm1, xmm2
por xmm1, xmm3
pshufd xmm2, xmm1, 0x55
movdqa xmm3, xmm1
pxor xmm3, xmm0
pxor xmm0, xmm2
pcmpgtd xmm3, xmm0
pand xmm1, xmm3
pandn xmm3, xmm2
por xmm3, xmm1
movd esi, xmm3
mov ecx, 0x100
mov edx, dword [esp + 0xc]
cmp dword [ebp + ecx*4 - 4], 0
lea ecx, [ecx - 1]
je 0x675190
test eax, eax
je 0x6751a7
mov eax, 0xffffffd0
cmp ecx, dword [edx]
ja 0x6751bb
mov dword [edx], ecx
push dword [esp]
push ebp
push dword [esp + 0xc]
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret