Function at 0x5da990
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.005dc4c0
mov eax, dword [0x6b8dd8]
xor eax, esp
mov dword [esp + 0x340], eax
cmp dword [ebp + 0x20], 0x100000
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x40], eax
mov esi, 0x28
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x38], eax
mov edi, 0x40
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x18], 8
mov byte [esp + 0x13], 1
jae 0x5db1d3
push ecx
call fcn.004e5750
push eax
call fcn.004de2f0
add esp, 8
cmp eax, 0x2a0
jg 0x5daad5
je 0x5daaa3
cmp eax, 4
je 0x5daa63
cmp eax, edi
jne 0x5daae2
lea eax, [esp + 0xa0]
push eax
call fcn.004f99d0
add esp, 4
test eax, eax
jle 0x5db1d3
mov dword [esp + 0x34], 0x5db370
lea ecx, [edi - 0x2c]
mov dword [esp + 0x14], 0x4f9a10
jmp 0x5dab90
lea eax, [esp + 0xa0]
push eax
call fcn.004edc70
add esp, 4
test eax, eax
jle 0x5db1d3
mov esi, 0x30
mov dword [esp + 0x34], 0x5db2f0
mov dword [esp + 0x14], 0x4edcb0
mov ecx, 0x10
mov dword [esp + 0x58], esi
mov byte [esp + 0x13], 0
jmp 0x5dab90
lea eax, [esp + 0xa0]
push eax
call fcn.004fb3a0
add esp, 4
test eax, eax
jle 0x5db1d3
mov dword [esp + 0x34], 0x5db410
mov ecx, 0x20
mov dword [esp + 0x14], 0x4fb400
jmp 0x5dab90
sub eax, 0x2a1
je 0x5dab52
dec eax
je 0x5dab36
dec eax
je 0x5dab07
test ebx, ebx
je 0x5db1d3
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xa0]
push eax
call fcn.004fb050
add esp, 4
test eax, eax
jle 0x5db1d3
mov dword [esp + 0x34], 0x5db410
mov ecx, 0x1c
mov dword [esp + 0x14], 0x4fb400
jmp 0x5dab90
lea eax, [esp + 0xa0]
push eax
call fcn.004fcf80
add esp, 4
test eax, eax
jle 0x5db1d3
mov ecx, edi
jmp 0x5dab6f
lea eax, [esp + 0xa0]
push eax
call fcn.004fc600
add esp, 4
test eax, eax
jle 0x5db1d3
mov ecx, 0x30
mov edi, 0x80
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], 0x4fd030
mov dword [esp + 0x34], 0x5db500
cmp byte [ebp + 0x2c], 0
mov ebx, 0xd
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], ebx
je 0x5dabb9
mov ebx, dword [ebp + 0x28]
add ebx, 0xb
mov dword [esp + 0x28], 2
add ebx, esi
mov dword [esp + 0x4c], ebx
jmp 0x5dabca
lea eax, [edi + 0xff]
xor edx, edx
add eax, ecx
div edi
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
mov esi, ebx
sub esi, ecx
dec eax
mov ecx, dword [esp + 0x18]
xor edx, edx
add ecx, esi
xor ebx, ebx
add ecx, edi
add esi, dword [ebp + 0x1c]
add eax, ecx
mov dword [esp + 0x20], ebx
div edi
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, esi
div edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], edx
add eax, esi
xor edx, edx
div edi
cmp byte [ebp + 0x2c], cl
mov edx, dword [esp + 0x28]
setne cl
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
add ecx, edx
cmp eax, ecx
jbe 0x5dac34
sub eax, edx
mov ebx, eax
mov dword [esp + 0x40], eax
imul ebx, edi
mov dword [esp + 0x20], ebx
cmp byte [ebp + 0x2c], 0
lea eax, [esi*8]
mov dword [esp + 0x30], eax
jne 0x5dacf8
lea eax, [eax + edi*8]
push edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1cc]
push 0
push eax
call fcn.005f3cf0
mov eax, dword [ebp + 0x28]
add esp, 0xc
cmp eax, 0x80
ja 0x5db1d3
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x1d0]
push eax
call fcn.005f31f0
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x5dacdd
cmp edi, 0x10
jb 0x5dacc7
movdqa xmm1, xmmword [str.6666666666666666cryptoevpp_lib.c]
mov eax, edi
and eax, 0xf
mov edx, edi
sub edx, eax
lea eax, [esp + 0x1c8]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
add ecx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x10], xmm0
cmp ecx, edx
jb 0x5dacb0
cmp ecx, edi
jae 0x5dacdd
jmp 0x5dacd0
xor byte [esp + ecx + 0x1c8], 0x36
inc ecx
cmp ecx, edi
jb 0x5dacd0
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c8]
push eax
lea eax, [esp + 0xa4]
push eax
call esi
add esp, 8
jmp 0x5dacfc
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x13], 0
je 0x5dad52
mov eax, dword [esp + 0x18]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.005f3cf0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x18]
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 0x5dad9b
push dword [esp + 0x18]
lea eax, [esp + 0x17c]
push 0
push eax
call fcn.005f3cf0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x18]
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 ebx, ebx
je 0x5daec5
cmp byte [ebp + 0x2c], 0
je 0x5dae47
mov esi, dword [esp + 0x4c]
cmp esi, edi
jbe 0x5db1d3
push dword [esp + 0x44]
lea eax, [esp + 0xa4]
sub esi, edi
push eax
mov dword [esp + 0x34], esi
call dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
add eax, edi
push esi
push eax
lea eax, [esp + 0x258]
push eax
call fcn.005f31f0
mov eax, edi
sub eax, esi
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x264]
add eax, esi
push eax
call fcn.005f31f0
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0xc4]
push eax
call dword [esp + 0x3c]
xor edx, edx
mov eax, ebx
div edi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x5daec5
mov esi, dword [esp + 0x38]
lea ebx, [eax - 1]
sub esi, dword [esp + 0x2c]
add esi, edi
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x1c]
add esp, 8
add esi, edi
dec ebx
jne 0x5dae30
jmp 0x5daec5
mov ecx, dword [esp + 0x44]
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, [edi - 0xd]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x25d]
movq qword [esp + 0x250], xmm0
push eax
call fcn.005f31f0
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0xb0]
push eax
call esi
xor edx, edx
mov eax, ebx
div edi
add esp, 0x14
cmp eax, 1
jbe 0x5daec5
mov esi, dword [esp + 0x38]
lea ebx, [eax - 1]
add esi, 0xfffffff3
add esi, edi
lea ecx, [ecx]
lea eax, [esp + 0xa0]
push esi
push eax
call dword [esp + 0x1c]
add esp, 8
add esi, edi
dec ebx
jne 0x5daeb0
push 0x40
lea eax, [esp + 0x18c]
push 0
push eax
call fcn.005f3cf0
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x80], eax
cmp ecx, eax
ja 0x5db13b
mov eax, ecx
xor esi, esi
xor eax, dword [esp + 0x6c]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, ecx
xor eax, dword [esp + 0x60]
neg dl
mov dword [esp + 0x84], edx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [esp + 0x2c], ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movdqa xmmword [esp + 0x90], xmm0
test edi, edi
je 0x5db083
mov eax, dword [esp + 0x3c]
lea ebx, [esp + 0x178]
shr eax, 0x1f
not cl
mov dword [esp + 0x7c], eax
or cl, dl
movzx eax, dl
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x27], cl
mov ecx, dword [esp + 0x3c]
neg ecx
lea eax, [eax + 1]
mov dword [esp + 0x30], ecx
shr eax, 0x1f
mov dword [esp + 0x74], eax
mov eax, edi
sub eax, dword [esp + 0x18]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
sub eax, edi
add eax, ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x13], 0
cmp ebx, edx
jae 0x5dafb7
mov eax, dword [esp + 0x44]
jmp 0x5dafc6
mov eax, dword [ebp + 0x20]
add eax, edx
cmp ebx, eax
jae 0x5dafcd
mov eax, dword [esp + 0x38]
sub eax, edx
mov al, byte [eax + ebx]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x7c]
mov edx, esi
shr ecx, 0x1f
inc ebx
xor cl, al
shr edx, 0x1f
xor al, dl
mov dword [esp + 0x20], ebx
or cl, al
mov edi, dword [esp + 0x54]
xor cl, dl
dec cl
movzx eax, cl
mov ecx, esi
and eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
not eax
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
and bl, byte [esp + 0x13]
and al, 0x80
or bl, al
mov eax, dword [esp + 0x3c]
inc eax
sub ecx, eax
mov eax, dword [esp + 0x74]
shr ecx, 0x1f
xor cl, al
xor al, dl
or cl, al
xor cl, dl
dec cl
and cl, byte [esp + 0x84]
not cl
and cl, byte [esp + 0x27]
and bl, cl
cmp esi, dword [esp + 0x8c]
jb 0x5db062
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
movzx eax, al
mov dword [esp + 0x50], eax
not eax
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
and bl, cl
mov eax, dword [esp + 0x50]
and al, byte [edx]
or bl, al
mov ecx, dword [esp + 0x30]
inc dword [esp + 0x28]
inc ecx
mov byte [esp + esi + 0x2c8], bl
inc esi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
cmp esi, edi
jb 0x5dafa4
lea eax, [esp + 0x2c8]
push eax
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0x1c]
lea eax, [esp + 0x2d0]
push eax
lea eax, [esp + 0xac]
push eax
call dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
add esp, 0x10
xor eax, eax
test esi, esi
je 0x5db125
cmp esi, 0x10
jb 0x5db0fa
movdqa xmm2, xmmword [esp + 0x90]
mov ecx, esi
and ecx, 0xf
mov edx, esi
sub edx, ecx
nop
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 0x5db0d0
cmp eax, esi
jae 0x5db125
mov edx, dword [esp + 0x2c]
jmp 0x5db110
mov cl, byte [esp + eax + 0x2c8]
and cl, dl
or byte [esp + eax + 0x188], cl
inc eax
cmp eax, esi
jb 0x5db110
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x80]
jbe 0x5daef2
call fcn.004e0cb0
mov esi, eax
test esi, esi
je 0x5db1ca
push 0
push dword [esp + 0x8c]
call fcn.004e5750
add esp, 4
push eax
push esi
call fcn.004e0910
add esp, 0xc
test eax, eax
jle 0x5db1ca
cmp byte [ebp + 0x2c], 0
je 0x5db1ea
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x1c8]
push edi
push 0x5c
push eax
call fcn.005f3cf0
push dword [ebp + 0x28]
push dword [esp + 0x6c]
push esi
call fcn.004e0ac0
add esp, 0x18
test eax, eax
jle 0x5db1ca
push edi
lea eax, [esp + 0x1cc]
push eax
push esi
call fcn.004e0ac0
add esp, 0xc
test eax, eax
jle 0x5db1ca
push dword [esp + 0x1c]
lea eax, [esp + 0x18c]
push eax
push esi
call fcn.004e0ac0
add esp, 0xc
test eax, eax
jg 0x5db274
push esi
call fcn.004e0c90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edi, edi
je 0x5db23d
cmp edi, 0x10
jb 0x5db227
movdqa xmm1, xmmword [str.jjjjjjjjjjjjjjjj_]
mov eax, edi
and eax, 0xf
mov edx, edi
sub edx, eax
lea eax, [esp + 0x1c8]
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
add ecx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax - 0x10], xmm0
cmp ecx, edx
jb 0x5db210
cmp ecx, edi
jae 0x5db23d
jmp 0x5db230
xor byte [esp + ecx + 0x1c8], 0x6a
inc ecx
cmp ecx, edi
jb 0x5db230
push edi
lea eax, [esp + 0x1cc]
push eax
push esi
call fcn.004e0ac0
add esp, 0xc
test eax, eax
jle 0x5db1ca
push dword [esp + 0x1c]
lea eax, [esp + 0x18c]
push eax
push esi
call fcn.004e0ac0
add esp, 0xc
test eax, eax
jle 0x5db1ca
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x68]
push esi
call fcn.004e07b0
add esp, 0xc
test eax, eax
je 0x5db298
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x5db298
mov eax, dword [esp + 0x70]
mov dword [ecx], eax
push esi
call fcn.004e0c90
mov ecx, dword [esp + 0x350]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret