Function at 0x751f2b94
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
call fcn.751f4005
mov eax, dword [ebp + 8]
push eax
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
sar edi, 2
push esi
lea ebx, [edi + 6]
call sub.ntdll.dll_memcpy
mov ecx, dword [ebp + 8]
and edi, 2
mov eax, ebx
add edi, 3
add esi, ecx
mov ecx, dword [ebp - 8]
shl eax, 4
shl ebx, 5
mov dword [ebp - 0xc], edi
lea edi, [eax + ecx + 0x10]
add esp, 0xc
mov dword [ecx + 0x1d4], ebx
mov dword [ebp - 0x10], edi
mov dword [ecx + 0x1d0], eax
mov bl, 1
cmp esi, edi
jae 0x751f2d0f
cmp byte [0x751f9384], 0
lea edi, [esi - 4]
jne 0x751f7866
movzx edx, byte [edi]
movzx eax, byte [edx + 0x751f2800]
movzx ecx, byte [edi + 1]
movzx edx, byte [edi + 2]
mov byte [ebp - 4], al
mov al, byte [ecx + 0x751f2800]
movzx ecx, byte [edx + 0x751f2800]
movzx edx, byte [edi + 3]
mov byte [ebp - 2], cl
movzx ecx, byte [edx + 0x751f2800]
mov byte [ebp - 3], al
mov byte [ebp - 1], cl
mov dl, byte [ebp - 2]
mov cl, byte [ebp - 4]
mov edi, dword [ebp + 8]
xor al, bl
mov byte [esi + 1], dl
mov byte [esi + 3], cl
mov byte [esi], al
mov al, byte [ebp - 1]
mov edx, esi
sub edx, edi
mov byte [esi + 2], al
mov eax, dword [edx]
xor dword [esi], eax
mov cl, bl
and cl, 0x80
add esi, 4
neg cl
sbb cl, cl
and cl, 0x1b
add bl, bl
xor bl, cl
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x751f2c95
mov eax, 4
sub eax, edi
mov edx, dword [eax + esi - 4]
xor edx, dword [esi - 4]
add esi, 4
sub ecx, 1
mov dword [esi - 4], edx
jne 0x751f2c83
cmp edi, 0x20
jne 0x751f2d01
cmp byte [0x751f9384], 0
lea ecx, [esi - 4]
jne 0x751f7878
movzx eax, byte [ecx]
movzx edx, byte [eax + 0x751f2800]
mov byte [esi], dl
movzx eax, byte [ecx + 1]
movzx edx, byte [eax + 0x751f2800]
mov byte [esi + 1], dl
movzx eax, byte [ecx + 2]
movzx edx, byte [eax + 0x751f2800]
mov byte [esi + 2], dl
movzx eax, byte [ecx + 3]
mov cl, byte [eax + 0x751f2800]
mov byte [esi + 3], cl
mov edx, dword [esi - 0x20]
xor dword [esi], edx
mov eax, dword [esi - 0x1c]
xor eax, dword [esi]
add esi, 4
mov dword [esi], eax
mov ecx, dword [esi - 0x1c]
xor ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi - 0x18]
xor eax, ecx
mov dword [esi + 8], eax
add esi, 0xc
mov edi, dword [ebp - 0x10]
cmp esi, edi
jb 0x751f2bfb
mov ecx, dword [ebp - 8]
lea ebx, [ecx + 0x20]
mov esi, edi
cmp edi, ebx
jbe 0x751f2df7
sub esi, 0x20
cmp byte [0x751f9384], 0
jne 0x751f7884
movzx ecx, byte [esi + 3]
mov eax, dword [ecx*4 + 0x751f3c00]
movzx edx, byte [esi + 2]
xor eax, dword [edx*4 + 0x751f3800]
movzx ecx, byte [esi + 1]
xor eax, dword [ecx*4 + 0x751f3400]
movzx edx, byte [esi]
xor eax, dword [edx*4 + 0x751f3000]
mov dword [edi], eax
movzx eax, byte [esi + 7]
mov edx, dword [eax*4 + 0x751f3c00]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x751f3800]
movzx eax, byte [esi + 5]
xor edx, dword [eax*4 + 0x751f3400]
movzx ecx, byte [esi + 4]
xor edx, dword [ecx*4 + 0x751f3000]
mov dword [edi + 4], edx
movzx edx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
mov ecx, dword [edx*4 + 0x751f3c00]
xor ecx, dword [eax*4 + 0x751f3800]
movzx edx, byte [esi + 9]
xor ecx, dword [edx*4 + 0x751f3400]
movzx eax, byte [esi + 8]
xor ecx, dword [eax*4 + 0x751f3000]
mov dword [edi + 8], ecx
movzx ecx, byte [esi + 0xf]
movzx edx, byte [esi + 0xe]
mov eax, dword [ecx*4 + 0x751f3c00]
xor eax, dword [edx*4 + 0x751f3800]
movzx ecx, byte [esi + 0xd]
movzx edx, byte [esi + 0xc]
xor eax, dword [ecx*4 + 0x751f3400]
xor eax, dword [edx*4 + 0x751f3000]
mov dword [edi + 0xc], eax
add esi, 0x10
add edi, 0x10
cmp esi, ebx
ja 0x751f2d1c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov edx, dword [ecx + 4]
mov dword [edi + 4], edx
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 4]
mov ecx, edi
call fcn.751f7361
mov al, byte [ebp - 3]
jmp 0x751f2c41
mov edx, esi
call fcn.751f7361
jmp 0x751f2cdf
mov edx, edi
mov ecx, esi
call fcn.751f7378
jmp 0x751f2de6