Function at 0x539300
Capabilities:
Authenticate hmac
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x344
call fcn.0053f970
mov eax, dword [0x600f80]
xor eax, esp
mov dword [esp + 0x340], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esp + 0x60], eax
mov ebx, 0x40
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x20], 8
mov byte [esp + 0x1b], 1
cmp edi, 0x100000
jb 0x53938b
push str.data_plus_mac_plus_padding_size___10241024
push 0x1d7
push str.._ssl_s3_cbc.c
call fcn.004a8140
add esp, 0xc
push dword [esp + 0x54]
call fcn.004c4120
push eax
call fcn.004c3d30
add esp, 8
cmp eax, 0x2a0
jg 0x53943b
je 0x539414
cmp eax, 4
je 0x5393df
cmp eax, 0x40
jne 0x539448
lea eax, [esp + 0xa0]
push eax
call fcn.004ea5b0
mov dword [esp + 0x34], 0x539dd0
mov eax, 0x14
mov dword [esp + 0x20], 0x4ea5f0
jmp 0x5394ea
lea eax, [esp + 0xa0]
push eax
call fcn.004e8540
mov edx, 0x30
mov dword [esp + 0x34], 0x539d50
mov dword [esp + 0x20], 0x4daa80
mov eax, 0x10
mov dword [esp + 0x54], edx
mov byte [esp + 0x1f], 0
jmp 0x5394ef
lea eax, [esp + 0xa0]
push eax
call fcn.004ebf60
mov dword [esp + 0x34], 0x539e70
mov eax, 0x20
mov dword [esp + 0x20], 0x4ebfc0
jmp 0x5394ea
sub eax, 0x2a1
je 0x5394b7
dec eax
je 0x5394a6
dec eax
je 0x539482
push 0x5e2490
push 0x20d
push str.._ssl_s3_cbc.c
call fcn.004a8140
add esp, 0xc
test esi, esi
je 0x539b50
mov dword [esi], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xa0]
push eax
call fcn.004ebc20
mov dword [esp + 0x34], 0x539e70
mov eax, 0x1c
mov dword [esp + 0x20], 0x4ebfc0
jmp 0x5394ea
lea eax, [esp + 0xa0]
push eax
call fcn.004ed7e0
mov eax, ebx
jmp 0x5394c9
lea eax, [esp + 0xa0]
push eax
call fcn.004ed1b0
mov eax, 0x30
mov ebx, 0x80
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x50], ebx
mov dword [esp + 0x20], 0x4ed890
mov dword [esp + 0x34], 0x539f60
mov edx, 0x28
add esp, 4
mov dword [esp + 0x28], eax
cmp byte [ebp + 0x2c], 0
mov ecx, 0xd
mov dword [esp + 0x40], ecx
je 0x539511
mov ecx, dword [ebp + 0x28]
add ecx, 0xb
add ecx, edx
mov dword [esp + 0x40], ecx
xor edx, edx
mov esi, ecx
cmp byte [ebp + 0x2c], dl
sete dl
sub esi, eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
dec eax
add eax, esi
add esi, dword [ebp + 0x1c]
add eax, ebx
lea edx, [edx*4 + 2]
add eax, edi
mov dword [esp + 0x38], edx
xor edx, edx
xor edi, edi
div ebx
xor edx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, esi
div ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], edx
add eax, esi
xor edx, edx
div ebx
cmp byte [ebp + 0x2c], cl
mov edx, dword [esp + 0x38]
setne cl
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
add ecx, edx
cmp eax, ecx
jbe 0x53958b
sub eax, edx
mov edi, eax
mov dword [esp + 0x48], eax
imul edi, ebx
mov dword [esp + 0x2c], edi
cmp byte [ebp + 0x2c], 0
lea eax, [esi*8]
mov dword [esp + 0x24], eax
jne 0x539658
lea eax, [eax + ebx*8]
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1cc]
push 0
push eax
call fcn.00540250
mov esi, dword [ebp + 0x28]
add esp, 0xc
cmp esi, 0x80
jbe 0x5395dc
push str.mac_secret_length___sizeof_hmac_pad_
push 0x266
push str.._ssl_s3_cbc.c
call fcn.004a8140
add esp, 0xc
push esi
push dword [esp + 0x5c]
lea eax, [esp + 0x1d0]
push eax
call fcn.005406f0
add esp, 0xc
xor ecx, ecx
test ebx, ebx
je 0x53963d
cmp ebx, 0x10
jb 0x53962b
movdqa xmm1, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
mov eax, ebx
and eax, 0xf
mov edx, ebx
sub edx, eax
lea eax, [esp + 0x1c8]
movdqu xmm0, xmmword [eax]
add ecx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x10], xmm0
cmp ecx, edx
jb 0x539614
cmp ecx, ebx
jae 0x53963d
nop
xor byte [esp + ecx + 0x1c8], 0x36
inc ecx
cmp ecx, ebx
jb 0x539630
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0xa4]
push eax
call esi
add esp, 8
jmp 0x53965c
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x1b], 0
je 0x5396b2
mov eax, dword [esp + 0x20]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.00540250
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x174], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x175], al
mov eax, ecx
shr eax, 8
mov byte [esp + edx + 0x176], al
mov byte [esp + edx + 0x177], cl
jmp 0x5396fb
push dword [esp + 0x20]
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.00540250
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [esp + edx + 0x173], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + edx + 0x172], al
mov eax, ecx
shr eax, 8
mov byte [esp + edx + 0x171], al
mov byte [esp + edx + 0x170], cl
test edi, edi
je 0x539829
cmp byte [ebp + 0x2c], 0
je 0x5397aa
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xa0]
push dword [esp + 0x3c]
sub esi, ebx
push eax
mov dword [esp + 0x2c], esi
call dword [esp + 0x24]
mov eax, dword [esp + 0x44]
add eax, ebx
push esi
push eax
lea eax, [esp + 0x258]
push eax
call fcn.005406f0
mov eax, ebx
sub eax, esi
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0x264]
add eax, esi
push eax
call fcn.005406f0
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0xc4]
push eax
call dword [esp + 0x44]
xor edx, edx
mov eax, edi
div ebx
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x539829
mov esi, dword [esp + 0x34]
lea edi, [eax - 1]
sub esi, dword [esp + 0x24]
add esi, ebx
jmp 0x539790
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x24]
add esp, 8
add esi, ebx
dec edi
jne 0x539790
jmp 0x539825
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [esp + 0x250], eax
mov al, byte [ecx + 0xc]
mov byte [esp + 0x254], al
lea eax, [ebx - 0xd]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x25d]
movq qword [esp + 0x250], xmm0
push eax
call fcn.005406f0
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0xb0]
push eax
call esi
xor edx, edx
mov eax, edi
div ebx
add esp, 0x14
cmp eax, 1
jbe 0x539829
mov esi, dword [esp + 0x34]
lea edi, [eax - 1]
add esi, 0xfffffff3
add esi, ebx
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x24]
add esp, 8
add esi, ebx
dec edi
jne 0x539810
mov edi, dword [esp + 0x2c]
push 0x40
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.00540250
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0x48]
add eax, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
cmp ecx, eax
ja 0x539a18
jmp 0x539860
mov edx, ecx
xor ecx, dword [esp + 0x70]
xor edx, dword [esp + 0x74]
dec ecx
sar ecx, 0x1f
dec edx
movsx eax, cl
sar edx, 0x1f
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x90], xmm0
test ebx, ebx
je 0x539965
mov esi, dword [esp + 0x44]
mov ch, cl
not ch
neg esi
mov al, ch
or al, dl
mov byte [esp + 0x1b], al
mov eax, ebx
sub eax, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
sub eax, ebx
lea eax, [esp + eax + 0x178]
mov dword [esp + 0x2c], eax
lea esp, [esp]
mov eax, dword [esp + 0x40]
xor cl, cl
cmp edi, eax
jae 0x5398e0
mov eax, dword [esp + 0x3c]
jmp 0x5398ef
add eax, dword [ebp + 0x20]
cmp edi, eax
jae 0x5398f2
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x40]
mov cl, byte [eax + edi]
mov eax, esi
inc edi
not eax
sar eax, 0x1f
and al, dl
mov dl, al
and al, 0x80
not dl
and dl, cl
or dl, al
lea eax, [esi - 1]
not eax
sar eax, 0x1f
and al, byte [esp + 0x38]
not al
and dl, al
mov eax, dword [esp + 0x44]
and dl, byte [esp + 0x1b]
add eax, esi
cmp eax, dword [esp + 0x64]
jb 0x539938
mov al, byte [esp + 0x24]
mov cl, ch
and cl, dl
mov edx, dword [esp + 0x2c]
and al, byte [edx]
or cl, al
mov dl, cl
inc dword [esp + 0x2c]
lea eax, [esp + 0x2c8]
add eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x4c]
mov byte [eax + esi], dl
inc esi
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
add eax, esi
cmp eax, ebx
jb 0x5398d0
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x24]
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0xac]
push eax
call dword [esp + 0x40]
add esp, 0x10
xor eax, eax
test esi, esi
je 0x539a05
cmp esi, 0x10
jb 0x5399da
movdqa xmm2, xmmword [esp + 0x90]
mov ecx, esi
and ecx, 0xf
mov edx, esi
sub edx, ecx
lea ecx, [ecx]
movdqu xmm1, xmmword [esp + eax + 0x2c8]
movdqu xmm0, xmmword [esp + eax + 0x188]
pand xmm1, xmm2
por xmm1, xmm0
movdqu xmmword [esp + eax + 0x188], xmm1
add eax, 0x10
cmp eax, edx
jb 0x5399b0
cmp eax, esi
jae 0x539a05
mov edx, dword [esp + 0x24]
jmp 0x5399f0
mov cl, byte [esp + eax + 0x2c8]
and cl, dl
or byte [esp + eax + 0x188], cl
inc eax
cmp eax, esi
jb 0x5399f0
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
cmp ecx, dword [esp + 0x6c]
jbe 0x539860
lea eax, [esp + 0x78]
push eax
call fcn.004b38a0
mov eax, dword [esp + 0x58]
push 0
push dword [eax]
lea eax, [esp + 0x84]
push eax
call fcn.004b3490
add esp, 0x10
cmp byte [ebp + 0x2c], 0
je 0x539a9c
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x1c8]
push edi
push 0x5c
push eax
call fcn.00540250
push dword [ebp + 0x28]
lea eax, [esp + 0x88]
push dword [esp + 0x68]
push eax
call fcn.004b3630
push edi
lea eax, [esp + 0x1e4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.004b3630
push esi
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.004b3630
add esp, 0x30
jmp 0x539b1c
xor ecx, ecx
test ebx, ebx
je 0x539aed
cmp ebx, 0x10
jb 0x539ad7
movdqa xmm1, xmmword [0x5a8300]
mov eax, ebx
and eax, 0xf
mov edx, ebx
sub edx, eax
lea eax, [esp + 0x1c8]
nop
movdqu xmm0, xmmword [eax]
add ecx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x10], xmm0
cmp ecx, edx
jb 0x539ac0
cmp ecx, ebx
jae 0x539aed
jmp 0x539ae0
xor byte [esp + ecx + 0x1c8], 0x6a
inc ecx
cmp ecx, ebx
jb 0x539ae0
push ebx
lea eax, [esp + 0x1cc]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004b3630
push esi
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004b3630
add esp, 0x18
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x80]
push eax
call fcn.004b33c0
mov ecx, dword [esp + 0x6c]
add esp, 0xc
test ecx, ecx
je 0x539b43
mov eax, dword [esp + 0x5c]
mov dword [ecx], eax
lea eax, [esp + 0x78]
push eax
call fcn.004b3640
add esp, 4
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053cd12
mov esp, ebp
pop ebp
ret