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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], 4
shl ecx, 4
lea ebx, [edi + 0xc]
sub esi, edi
lea eax, [ecx + eax + 0x14]
mov dword [ebp - 4], eax
push dword [esi + ebx]
sub dword [ebp - 4], 4
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 4]
xor eax, dword [ecx]
mov dword [ebx], eax
sub ebx, 4
dec dword [ebp + 8]
jne 0x4043e4
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
jle 0x404599
push 2
lea ecx, [ebp - 0x30]
pop eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], eax
lea ecx, [eax + 1]
xor edx, edx
and ecx, 3
mov ecx, dword [edi + ecx*4]
shr ecx, 0x18
movzx esi, byte [ecx + 0x4185b8]
mov ecx, eax
and ecx, 3
mov dl, byte [edi + ecx*4 + 2]
lea ecx, [eax - 1]
and ecx, 3
movzx ebx, byte [edx + 0x4185b8]
xor edx, edx
mov dword [ebp - 0x20], ebx
mov dl, byte [edi + ecx*4 + 1]
lea ecx, [eax - 2]
and ecx, 3
movzx edx, byte [edx + 0x4185b8]
mov ecx, dword [edi + ecx*4]
mov dword [ebp + 0xc], edx
and ecx, 0xff
movzx ecx, byte [ecx + 0x4185b8]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
dec ecx
cmp dword [ebp - 0xc], ecx
jge 0x404543
mov eax, ebx
xor eax, esi
push eax
call fcn.00404375
movzx eax, al
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor eax, ebx
push eax
call fcn.00404375
movzx edi, al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edi
xor eax, dword [ebp + 0xc]
push eax
call fcn.00404375
movzx eax, al
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor eax, esi
push eax
call fcn.00404375
movzx eax, al
mov dword [ebp - 0x2c], eax
mov eax, edi
xor eax, dword [ebp - 0x18]
push eax
call fcn.00404375
movzx eax, al
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
xor eax, edi
push eax
call fcn.00404375
movzx edi, al
mov eax, edi
xor eax, dword [ebp - 0x14]
push eax
call fcn.00404375
movzx ecx, al
mov eax, ecx
xor ecx, edi
xor eax, dword [ebp - 0x14]
mov edi, ecx
xor edi, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x2c]
mov edx, eax
xor eax, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x18]
xor edi, dword [ebp + 8]
xor eax, dword [ebp + 8]
xor ecx, dword [ebp + 0xc]
xor edx, dword [ebp + 8]
xor edi, dword [ebp + 0xc]
xor eax, ebx
xor ecx, ebx
xor edx, dword [ebp + 0xc]
xor edi, esi
xor eax, esi
xor ecx, esi
xor edx, ebx
add esp, 0x1c
shl edx, 8
or edx, edi
mov edi, dword [ebp + 0x10]
shl edx, 8
or edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
jmp 0x404558
shl esi, 8
or esi, ebx
mov ecx, dword [ebp - 8]
shl esi, 8
or esi, edx
shl esi, 8
or esi, dword [ebp + 8]
mov dword [ecx], esi
sub dword [ebp - 8], 4
dec eax
mov dword [ebp - 0x24], eax
lea ecx, [eax + 2]
test ecx, ecx
ja 0x40441a
lea ecx, [ebp - 0x3c]
push 4
lea eax, [edi + 0xc]
sub ecx, edi
pop edx
sub dword [ebp - 4], 4
mov esi, dword [ecx + eax]
mov ebx, dword [ebp - 4]
xor esi, dword [ebx]
mov dword [eax], esi
sub eax, 4
dec edx
jne 0x404576
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jl 0x40440e
push 4
pop esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi], eax
add edi, 4
dec esi
jne 0x40459c
pop edi
pop esi
pop ebx
leave
ret