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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebx]
mov dword [ebp - 0x20], ebx
cmp ebx, 0x10
jb 0x42fa87
pop edi
mov eax, 0xffffffa4
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x42fcda
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], ecx
nop
dec eax
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x42fcb5
mov esi, dword [ebp + 0xc]
push 0x48b690
push 0x48b890
push 0x48b790
mov eax, dword [esi]
xor eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [esi + 0xc]
xor esi, dword [edi + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str.cw
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 8]
mov dword [ebp - 0x10], esi
call fcn.0042f120
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0042efb0
mov eax, dword [edi + 0x14]
lea edx, [ebp - 8]
xor dword [ebp - 4], eax
lea ecx, [ebp - 4]
mov eax, dword [edi + 0x18]
lea esi, [ebx + 2]
xor dword [ebp - 8], eax
mov eax, dword [edi + 0x1c]
xor dword [ebp - 0xc], eax
mov eax, dword [edi + 0x20]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x48b790
push str.cw
push 0x48b690
push 0x48b890
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042f120
movzx eax, byte [edi]
add esp, 0x38
mov dword [ebp - 0x28], eax
cmp eax, esi
jbe 0x42fc54
lea eax, [edi + 0x30]
mov dword [ebp - 0x24], eax
lea ebx, [edi + 0x2c]
lea eax, [edi + 0x28]
mov dword [ebp - 0x18], eax
lea eax, [edi + 0x24]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0042efb0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x48b690
push 0x48b890
mov eax, dword [edx]
add edx, 0x10
xor dword [ebp - 4], eax
mov eax, dword [ecx]
add ecx, 0x10
xor dword [ebp - 8], eax
mov eax, dword [ebx]
xor dword [ebp - 0xc], eax
mov eax, dword [edi]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x48b790
push str.cw
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.0042f120
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0042efb0
mov edx, dword [ebp - 0x14]
lea ebx, [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
lea edi, [edi + 0x20]
push 0x48b790
push str.cw
mov eax, dword [edx]
add esi, 2
xor dword [ebp - 4], eax
add edx, 0x10
mov eax, dword [ecx]
add ecx, 0x10
xor dword [ebp - 8], eax
mov eax, dword [ebx - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [edi - 0x10]
xor dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x48b690
push 0x48b890
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.0042f120
add esp, 0x40
cmp esi, dword [ebp - 0x28]
jl 0x42fb77
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shl esi, 4
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 4]
xor esi, dword [eax + edi + 4]
xor edx, dword [eax + edi + 8]
xor ecx, dword [eax + edi + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x18]
xor eax, dword [esi + edi + 0x10]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x28]
mov dword [edi], esi
mov esi, edi
mov edi, dword [ebp - 0x1c]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov edx, 1
mov dword [esi + 0xc], eax
sub edx, ecx
lea eax, [ecx + 0xf]
add byte [eax], 1
jne 0x42fcaf
dec eax
lea ecx, [edx + eax]
test ecx, ecx
jg 0x42fca2
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov al, byte [ebx + esi]
inc ebx
movzx ecx, byte [ecx + edx]
and ebx, 0xf
xor al, cl
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0x14]
mov byte [edx], al
inc edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x18], edx
test eax, eax
jne 0x42faa0
pop esi
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret