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

Disassembly:
mov eax, 0x14
call fcn.5907e4c0
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov edi, dword [esp + 0x30]
mov ecx, eax
ror ecx, 8
mov esi, dword [edi]
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
mov edx, dword [ebx + 8]
or ecx, eax
mov eax, dword [ebx + 4]
xor ecx, esi
mov esi, eax
ror esi, 8
and esi, 0xff00ff00
mov ebx, dword [ebx + 0xc]
rol eax, 8
and eax, 0xff00ff
mov dword [esp + 0x20], ecx
or esi, eax
mov eax, dword [edi + 4]
xor esi, eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
mov dword [esp + 0x14], esi
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov edx, dword [edi + 8]
xor eax, edx
mov edx, ebx
ror edx, 8
and edx, 0xff00ff00
mov dword [esp + 0x18], eax
rol ebx, 8
and ebx, 0xff00ff
or edx, ebx
mov ebx, dword [edi + 0xc]
xor edx, ebx
xor ebx, ebx
mov dword [esp + 0x28], edx
xor edx, edx
mov dl, byte [esp + 0x2a]
mov bl, ah
mov edx, dword [edx*4 + 0x59158bd8]
mov eax, dword [ebx*4 + 0x59158fd8]
xor edx, eax
mov eax, ecx
shr eax, 0x18
mov ebx, dword [eax*4 + 0x591587d8]
mov eax, esi
and eax, 0xff
xor edx, ebx
shr esi, 0x18
mov ebx, dword [eax*4 + 0x591593d8]
mov eax, dword [edi + 0x10]
xor edx, ebx
xor ebx, ebx
mov bl, byte [esp + 0x22]
xor edx, eax
xor eax, eax
mov dword [esp + 0x1c], edx
mov al, byte [esp + 0x29]
mov ebp, dword [ebx*4 + 0x59158bd8]
mov ebx, dword [esi*4 + 0x591587d8]
mov esi, dword [esp + 0x18]
mov eax, dword [eax*4 + 0x59158fd8]
and esi, 0xff
xor eax, ebp
xor eax, ebx
mov ebx, dword [esi*4 + 0x591593d8]
mov esi, dword [edi + 0x14]
xor eax, ebx
xor eax, esi
xor ebx, ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov al, byte [esp + 0x16]
mov bl, ch
mov ecx, dword [esp + 0x18]
mov eax, dword [eax*4 + 0x59158bd8]
mov ebp, dword [ebx*4 + 0x59158fd8]
shr ecx, 0x18
xor eax, ebp
mov ebp, dword [ecx*4 + 0x591587d8]
mov ecx, dword [esp + 0x28]
and ecx, 0xff
xor eax, ebp
mov ebp, dword [edi + 0x18]
mov esi, dword [ecx*4 + 0x591593d8]
xor ecx, ecx
mov cl, byte [esp + 0x15]
xor eax, esi
xor eax, ebp
mov ebx, dword [ecx*4 + 0x59158fd8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
xor eax, eax
mov al, byte [esp + 0x1a]
shr ecx, 0x18
mov eax, dword [eax*4 + 0x59158bd8]
mov ebp, dword [ecx*4 + 0x591587d8]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
xor eax, ebx
xor eax, ebp
mov ebp, dword [edi + 0x1c]
mov esi, dword [ecx*4 + 0x591593d8]
xor eax, esi
lea esi, [edi + 0x20]
mov edi, dword [edi + 0xf0]
xor eax, ebp
sar edi, 1
dec edi
mov dword [esp + 0x28], eax
je 0x59126bac
xor ecx, ecx
xor eax, eax
mov cl, byte [esp + 0x31]
mov al, byte [esp + 0x2a]
mov ebx, dword [ecx*4 + 0x59158fd8]
mov eax, dword [eax*4 + 0x59158bd8]
mov ecx, edx
xor eax, ebx
shr ecx, 0x18
mov ebx, dword [ecx*4 + 0x591587d8]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
xor eax, ebx
mov ebx, dword [ecx*4 + 0x591593d8]
mov ecx, dword [esi]
xor eax, ebx
xor ebx, ebx
mov bl, byte [esp + 0x1e]
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov cl, byte [esp + 0x29]
mov ebp, dword [ebx*4 + 0x59158bd8]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ecx*4 + 0x59158fd8]
shr ebx, 0x18
xor ecx, ebp
mov ebp, dword [ebx*4 + 0x591587d8]
mov ebx, dword [esp + 0x30]
and ebx, 0xff
xor ecx, ebp
mov ebp, dword [ebx*4 + 0x591593d8]
mov ebx, dword [esi + 4]
xor ecx, ebp
mov ebp, dword [esi + 8]
xor ecx, ebx
xor ebx, ebx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
mov bl, dh
mov ecx, dword [ecx*4 + 0x59158bd8]
mov edx, dword [ebx*4 + 0x59158fd8]
xor ecx, edx
mov edx, dword [esp + 0x30]
shr edx, 0x18
mov ebx, dword [edx*4 + 0x591587d8]
mov edx, dword [esp + 0x28]
and edx, 0xff
xor ecx, ebx
mov ebx, dword [edx*4 + 0x591593d8]
xor edx, edx
mov dl, byte [esp + 0x11]
xor ecx, ebx
xor ecx, ebp
mov ebx, dword [edx*4 + 0x59158fd8]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov cl, byte [esp + 0x32]
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x59158bd8]
xor ecx, ebx
mov ebx, dword [edx*4 + 0x591587d8]
mov edx, dword [esp + 0x1c]
xor ecx, ebx
and edx, 0xff
mov ebx, dword [edx*4 + 0x591593d8]
mov edx, dword [esi + 0xc]
xor ecx, ebx
xor ebx, ebx
xor ecx, edx
xor edx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0x2a]
mov bl, ch
mov edx, dword [edx*4 + 0x59158bd8]
mov ebp, dword [ebx*4 + 0x59158fd8]
xor edx, ebp
mov ebx, eax
shr ebx, 0x18
add esi, 0x20
mov ebp, dword [ebx*4 + 0x591587d8]
mov ebx, dword [esp + 0x14]
and ebx, 0xff
xor edx, ebp
mov ebp, dword [ebx*4 + 0x591593d8]
mov ebx, dword [esi - 0x10]
xor edx, ebp
xor edx, ebx
xor ebx, ebx
mov bl, byte [esp + 0x22]
mov dword [esp + 0x1c], edx
xor edx, edx
mov dl, byte [esp + 0x29]
mov ebp, dword [ebx*4 + 0x59158bd8]
mov ebx, dword [esp + 0x14]
mov edx, dword [edx*4 + 0x59158fd8]
shr ebx, 0x18
xor edx, ebp
mov ebp, dword [ebx*4 + 0x591587d8]
mov ebx, ecx
and ebx, 0xff
xor edx, ebp
shr ecx, 0x18
mov ebp, dword [ebx*4 + 0x591593d8]
mov ebx, dword [esi - 0xc]
xor edx, ebp
xor edx, ebx
xor ebx, ebx
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [esp + 0x16]
mov bl, ah
and eax, 0xff
mov ebp, dword [ebx*4 + 0x59158fd8]
mov ebx, dword [ecx*4 + 0x591587d8]
mov edx, dword [edx*4 + 0x59158bd8]
mov ecx, dword [esp + 0x28]
xor edx, ebp
mov ebp, dword [esi - 8]
and ecx, 0xff
xor edx, ebx
mov ebx, dword [ecx*4 + 0x591593d8]
xor ecx, ecx
mov cl, byte [esp + 0x15]
xor edx, ebx
xor edx, ebp
mov ebp, dword [eax*4 + 0x591593d8]
mov ebx, dword [ecx*4 + 0x59158fd8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
xor edx, edx
mov dl, byte [esp + 0x1a]
shr ecx, 0x18
mov edx, dword [edx*4 + 0x59158bd8]
xor edx, ebx
mov ebx, dword [ecx*4 + 0x591587d8]
xor edx, ebx
mov ebx, dword [esi - 4]
xor edx, ebp
xor edx, ebx
dec edi
mov eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
jne 0x5912696e
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esp + 0x2a]
mov ebp, dword [esp + 0x2c]
mov bl, byte [ecx + 0x591597d8]
mov ecx, edx
shr ecx, 0x18
mov edi, ebx
xor ebx, ebx
mov bh, byte [ecx + 0x591597d8]
xor ecx, ecx
mov cl, byte [esp + 0x31]
xor edi, ebx
xor ebx, ebx
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esp + 0x10]
shl edi, 8
xor edi, ebx
and ecx, 0xff
xor ebx, ebx
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esi]
shl edi, 8
xor edi, ebx
xor ebx, ebx
xor edi, ecx
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [ebp], ecx
xor ecx, ecx
mov cl, byte [esp + 0x1e]
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esp + 0x10]
mov edi, ebx
xor ebx, ebx
shr ecx, 0x18
mov bh, byte [ecx + 0x591597d8]
xor ecx, ecx
xor edi, ebx
mov cl, ah
xor ebx, ebx
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esp + 0x30]
shl edi, 8
xor edi, ebx
and ecx, 0xff
xor ebx, ebx
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esi + 4]
shl edi, 8
xor edi, ebx
xor ebx, ebx
xor edi, ecx
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [ebp + 4], ecx
xor ecx, ecx
mov cl, byte [esp + 0x12]
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esp + 0x30]
mov edi, ebx
xor ebx, ebx
shr ecx, 0x18
mov bh, byte [ecx + 0x591597d8]
xor ecx, ecx
xor edi, ebx
mov cl, dh
xor ebx, ebx
mov bl, byte [ecx + 0x591597d8]
mov ecx, eax
shl edi, 8
xor edi, ebx
shl edi, 8
and ecx, 0xff
xor ebx, ebx
shr eax, 0x18
mov bl, byte [ecx + 0x591597d8]
mov ecx, dword [esi + 8]
xor edi, ebx
xor ebx, ebx
xor edi, ecx
and edx, 0xff
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
mov dword [ebp + 8], ecx
xor ecx, ecx
mov cl, byte [esp + 0x32]
mov bl, byte [ecx + 0x591597d8]
xor ecx, ecx
mov ch, byte [eax + 0x591597d8]
mov edi, ebx
xor eax, eax
xor edi, ecx
mov al, byte [esp + 0x11]
xor ecx, ecx
shl edi, 8
mov cl, byte [eax + 0x591597d8]
xor eax, eax
mov al, byte [edx + 0x591597d8]
xor edi, ecx
mov ecx, dword [esi + 0xc]
shl edi, 8
xor edi, eax
xor edi, ecx
mov ecx, edi
ror ecx, 8
and ecx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ecx, edi
pop edi
mov dword [ebp + 0xc], ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret