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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, 0xe
mov byte [ebp - 0x29], 0x18
mov bh, al
mov byte [ebp - 0x50], 0x7a
xor al, byte [ebp - 0x50]
mov ah, 0x1f
mov byte [ebp - 0x2a], bh
mov dh, ah
mov bh, byte [ebp - 0x29]
mov dl, 0x14
xor bh, byte [ebp - 0x50]
mov bl, 0x25
mov byte [ebp - 0x29], bh
mov cl, 8
mov byte [ebp - 0x4f], bh
mov ch, 9
mov bh, byte [ebp - 0x2a]
mov byte [ebp - 0x4e], al
mov al, byte [ebp - 0x50]
xor dl, al
mov byte [ebp - 0x46], 0
xor bl, al
mov byte [ebp - 0x4d], dl
xor cl, al
mov byte [ebp - 0x4c], bl
xor ah, al
mov byte [ebp - 0x4b], cl
xor ch, al
mov byte [ebp - 0x4a], ah
xor dh, al
mov byte [ebp - 0x49], ch
xor bh, al
mov byte [ebp - 0x48], dh
cmp byte [ebp - 0x29], 0
mov byte [ebp - 0x47], bh
mov byte [ebp - 0x46], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x10019eb7
xor ecx, ecx
jmp 0x10019ec9
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019ec0
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004e90
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10019f08
mov eax, dword [ecx]
jmp 0x10019f0a
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.10004f90
mov ecx, dword [esi]
call fcn.1000e840
mov dword [esi + 4], eax
mov bl, 0x2f
mov byte [ebp - 0x3c], 0x4a
mov dh, bl
mov al, 0x28
mov byte [ebp - 0x2a], dh
xor al, byte [ebp - 0x3c]
mov cl, 0x2b
xor cl, byte [ebp - 0x3c]
mov dl, 0x39
mov byte [ebp - 0x3b], al
mov bh, dl
mov al, byte [ebp - 0x2a]
mov ah, 0x15
mov byte [ebp - 0x3a], cl
mov ch, 0x38
mov cl, byte [ebp - 0x3c]
xor al, cl
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x33], al
xor dl, cl
mov byte [ebp - 0x39], dl
xor dh, cl
mov byte [ebp - 0x35], dh
xor bl, cl
mov edx, esp
mov byte [ebp - 0x29], 0x3e
mov al, byte [ebp - 0x29]
xor ah, cl
mov byte [ebp - 0x38], bl
xor ch, cl
mov byte [ebp - 0x37], ah
xor bh, cl
mov byte [ebp - 0x36], ch
xor al, cl
mov byte [ebp - 0x34], bh
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10019fac
mov eax, dword [edx]
jmp 0x10019fae
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x10019fbb
xor ecx, ecx
jmp 0x10019fca
lea ecx, [ebp - 0x3b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019fc1
sub ecx, edi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi]
call fcn.1000e840
movaps xmm0, xmmword [0x1004a500]
add esp, 0x18
mov dword [esi + 8], eax
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x10019ff4
sub esp, 0x18
mov byte [ebp - 0x30], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1001a030
mov eax, dword [edx]
jmp 0x1001a032
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3f], 0
jne 0x1001a03f
xor ecx, ecx
jmp 0x1001a04e
lea ecx, [ebp - 0x3f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a045
sub ecx, edi
push ecx
lea eax, [ebp - 0x3f]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi + 8]
call fcn.1000e840
mov dword [esi + 0xc], eax
mov cl, 0x39
mov byte [ebp - 0x3c], 0x4d
mov al, 0x2f
xor al, byte [ebp - 0x3c]
mov dh, 0x28
mov byte [ebp - 0x3b], al
mov dl, 0x23
mov byte [ebp - 0x29], cl
mov bl, 0x12
xor cl, byte [ebp - 0x3c]
mov ah, 0x3d
mov byte [ebp - 0x3a], cl
mov ch, 0x3f
mov cl, byte [ebp - 0x3c]
mov bh, 0x3e
mov byte [ebp - 0x2a], dh
xor dl, cl
mov al, byte [ebp - 0x2a]
xor dh, cl
mov byte [ebp - 0x39], dl
xor al, cl
mov byte [ebp - 0x33], al
xor bl, cl
mov al, byte [ebp - 0x29]
xor ah, cl
mov byte [ebp - 0x35], dh
xor ch, cl
mov edx, esp
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x38], bl
xor bh, cl
mov byte [ebp - 0x37], ah
xor al, cl
mov byte [ebp - 0x36], ch
mov byte [ebp - 0x34], bh
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1001a0ec
mov eax, dword [edx]
jmp 0x1001a0ee
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3b], 0
jne 0x1001a0fb
xor ecx, ecx
jmp 0x1001a10a
lea ecx, [ebp - 0x3b]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a101
sub ecx, edi
push ecx
lea eax, [ebp - 0x3b]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi + 8]
call fcn.1000e840
movaps xmm0, xmmword [0x1004a630]
add esp, 0x18
mov dword [esi + 0x14], eax
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xf
jb 0x1001a135
sub esp, 0x18
mov byte [ebp - 0x30], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1001a171
mov eax, dword [edx]
jmp 0x1001a173
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x3f], 0
jne 0x1001a180
xor ecx, ecx
jmp 0x1001a18f
lea ecx, [ebp - 0x3f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a186
sub ecx, edi
push ecx
lea eax, [ebp - 0x3f]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi + 8]
call fcn.1000e840
mov edi, dword [esi + 8]
add esp, 0x18
mov dword [esi + 0x10], eax
test edi, edi
je 0x1001a1c6
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001a1c6
push eax
mov ecx, edi
call dword [0x10049fe4]
mov ch, 0x3c
mov byte [ebp - 0x32], 0
mov dl, 0x52
mov byte [ebp - 0x38], ch
xor dl, ch
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x35], dl
sub esp, 0x18
mov edx, esp
mov al, 0x5e
mov cl, 0x48
mov bl, 0x63
mov ah, 8
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x34], bl
xor ah, ch
mov byte [ebp - 0x33], ah
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1001a221
mov eax, dword [edx]
jmp 0x1001a223
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1001a230
xor ecx, ecx
jmp 0x1001a23f
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a236
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi]
call fcn.1000e840
mov ch, 0x58
mov dword [esi + 0x18], eax
mov dl, 0x36
mov byte [ebp - 0x32], 0
xor dl, ch
mov byte [ebp - 0x38], ch
mov byte [ebp - 0x35], dl
mov al, 0x3a
mov edx, esp
mov byte [ebp - 0x32], 0
mov cl, 0x2c
mov bl, 7
mov ah, 0x6d
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x34], bl
xor ah, ch
mov byte [ebp - 0x33], ah
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1001a2ad
mov eax, dword [edx]
jmp 0x1001a2af
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1001a2bc
xor ecx, ecx
jmp 0x1001a2cb
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a2c2
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi]
call fcn.1000e840
mov ch, 0xd
mov dword [esi + 0x1c], eax
mov dl, 0x63
mov byte [ebp - 0x32], 0
xor dl, ch
mov byte [ebp - 0x38], ch
mov byte [ebp - 0x35], dl
mov al, 0x6f
mov edx, esp
mov byte [ebp - 0x32], 0
mov cl, 0x79
mov bl, 0x52
mov ah, 0x3b
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
mov byte [ebp - 0x36], cl
xor bl, ch
mov byte [ebp - 0x34], bl
xor ah, ch
mov byte [ebp - 0x33], ah
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1001a339
mov eax, dword [edx]
jmp 0x1001a33b
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x37], 0
jne 0x1001a348
xor ecx, ecx
jmp 0x1001a359
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a350
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi]
call fcn.1000e840
mov ch, 0x32
mov dword [esi + 0x20], eax
mov dl, 0x5c
mov byte [ebp - 0x32], 0
xor dl, ch
mov byte [ebp - 0x38], ch
mov byte [ebp - 0x35], dl
mov al, 0x50
mov edx, esp
mov byte [ebp - 0x32], 0
mov cl, 0x46
mov bl, 0x6d
mov ah, 5
xor al, ch
mov byte [ebp - 0x37], al
xor cl, ch
xor bl, ch
mov byte [ebp - 0x36], cl
xor ah, ch
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], ah
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x37], 0
jne 0x1001a3bc
xor ecx, ecx
jmp 0x1001a3cb
lea ecx, [ebp - 0x37]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a3c2
sub ecx, edi
push ecx
lea eax, [ebp - 0x37]
mov ecx, edx
push eax
call fcn.10004e90
mov ecx, dword [esi]
call fcn.1000e840
mov dword [esi + 0x24], eax
add esp, 0x18
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1001a3f6
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100406c0
mov esp, ebp
pop ebp
ret