Function at 0x54b090
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], 0
test edi, edi
je 0x54b0e7
cmp edi, dword [ebx]
je 0x54b0e3
test eax, eax
je 0x54b366
test esi, esi
js 0x54b366
mov dword [ebx], edi
jmp 0x54b0f1
mov edi, dword [ebx]
test edi, edi
je 0x54b366
push edi
call fcn.0055b0e0
add esp, 4
test al, 2
jne 0x54b366
cmp dword [ebp - 0x128], 0
je 0x54b307
push edi
mov dword [ebp - 0x134], 1
call fcn.0051a940
add esp, 4
cmp eax, 0x90
jg 0x54b366
cmp eax, esi
jge 0x54b18e
push dword [ebp - 0x130]
push edi
push dword [ebx + 4]
call fcn.00520700
add esp, 0xc
test eax, eax
je 0x54b366
push esi
push dword [ebp - 0x128]
push dword [ebx + 4]
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x54b366
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebx + 4]
call fcn.00520660
add esp, 0xc
test eax, eax
je 0x54b366
mov esi, dword [ebp - 0x12c]
jmp 0x54b1b6
cmp esi, 0x90
ja 0x54b366
push esi
push dword [ebp - 0x128]
lea eax, [ebp - 0x94]
push eax
call fcn.005e0280
add esp, 0xc
mov dword [ebp - 0x12c], esi
cmp esi, 0x90
je 0x54b1d9
mov eax, 0x90
sub eax, esi
push eax
lea eax, [ebp - 0x94]
add eax, esi
push 0
push eax
call fcn.005e1780
add esp, 0xc
movaps xmm1, xmmword [0x62df80]
xor ecx, ecx
movups xmm0, xmmword [ebp + ecx - 0x94]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x124], xmm0
movups xmm0, xmmword [ebp + ecx - 0x84]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x114], xmm0
add ecx, 0x20
cmp ecx, 0x80
jl 0x54b1e2
cmp ecx, 0x90
jge 0x54b239
nop dword [eax]
mov al, byte [ebp + ecx - 0x94]
xor al, 0x36
mov byte [ebp + ecx - 0x124], al
inc ecx
cmp ecx, 0x90
jl 0x54b220
mov esi, dword [ebp - 0x130]
push esi
push edi
push dword [ebx + 8]
call fcn.00520700
add esp, 0xc
test eax, eax
je 0x54b32c
push edi
call fcn.0051a940
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebx + 8]
call fcn.005208b0
add esp, 0x10
test eax, eax
je 0x54b32c
movaps xmm1, xmmword [0x62e7a0]
xor ecx, ecx
nop
movups xmm0, xmmword [ebp + ecx - 0x94]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x124], xmm0
movups xmm0, xmmword [ebp + ecx - 0x84]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x114], xmm0
add ecx, 0x20
cmp ecx, 0x80
jl 0x54b280
cmp ecx, 0x90
jge 0x54b2d9
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x94]
xor al, 0x5c
mov byte [ebp + ecx - 0x124], al
inc ecx
cmp ecx, 0x90
jl 0x54b2c0
push esi
push edi
push dword [ebx + 0xc]
call fcn.00520700
add esp, 0xc
test eax, eax
je 0x54b32c
push edi
call fcn.0051a940
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebx + 0xc]
call fcn.005208b0
add esp, 0x10
test eax, eax
je 0x54b32c
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.005208f0
xor ebx, ebx
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebx, ecx
cmp dword [ebp - 0x134], 0
je 0x54b353
jmp 0x54b32e
xor ebx, ebx
lea eax, [ebp - 0x94]
push 0x90
push eax
call fcn.00537800
lea eax, [ebp - 0x124]
push 0x90
push eax
call fcn.00537800
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret